Interface Notification
- All Known Implementing Classes:
- NotificationImpl
public interface Notification
Interface for defining OCI logging module.
- 
Method SummaryModifier and TypeMethodDescriptioncom.oracle.bmc.ons.responses.CreateSubscriptionResponsecreateSubscription(String compartmentId, String topicId, String protocol, String endpoint) Create a Notification subscription in a Topic.com.oracle.bmc.ons.responses.CreateTopicResponsecreateTopic(String topicName, String compartmentId) Create an OCI Notification Topic.com.oracle.bmc.ons.NotificationControlPlaneDirect instance of OCI Java SDK NotificationControlPlane Client.com.oracle.bmc.ons.NotificationDataPlaneDirect instance of OCI Java SDK NotificationDataPlane Client.getSubscription(String subscriptionId) Get the Subscription Resource JSON as a String.listSubscriptions(String topicId, String compartmentId) List subscriptions in a Topic as a JSON String.com.oracle.bmc.ons.responses.PublishMessageResponsepublishMessage(String topicId, String title, String message) Publish a message to a Topic.
- 
Method Details- 
getNotificationDataPlaneClientcom.oracle.bmc.ons.NotificationDataPlane getNotificationDataPlaneClient()Direct instance of OCI Java SDK NotificationDataPlane Client.- Returns:
- NotificationDataPlane
 
- 
getNotificationControlPlaneClientcom.oracle.bmc.ons.NotificationControlPlane getNotificationControlPlaneClient()Direct instance of OCI Java SDK NotificationControlPlane Client.- Returns:
- NotificationControlPlane
 
- 
publishMessagecom.oracle.bmc.ons.responses.PublishMessageResponse publishMessage(String topicId, String title, String message) Publish a message to a Topic.- Parameters:
- topicId- OCID of the topic
- title- Message title
- message- Message content
- Returns:
- PublishMessageResponse
 
- 
createSubscriptioncom.oracle.bmc.ons.responses.CreateSubscriptionResponse createSubscription(String compartmentId, String topicId, String protocol, String endpoint) Create a Notification subscription in a Topic.- Parameters:
- compartmentId- Compartment OCID where the Subscription needs to be created
- topicId- Topic OCID where the Subscription needs to be created
- protocol- Subscription type. Ex: EMAIL
- endpoint- Subscription endpoint. Ex: Email ID in case of EMAIL as protocol
- Returns:
- CreateSubscriptionResponse
 
- 
getSubscriptionGet the Subscription Resource JSON as a String.- Parameters:
- subscriptionId- OCID of the subscription
- Returns:
- String
 
- 
listSubscriptionsList subscriptions in a Topic as a JSON String.- Parameters:
- topicId- Topic OCID where to list the Subscriptions
- compartmentId- Compartment OCID where the topic is present
- Returns:
- String
 
- 
createTopiccom.oracle.bmc.ons.responses.CreateTopicResponse createTopic(String topicName, String compartmentId) Create an OCI Notification Topic.- Parameters:
- topicName- Name of the Topic to be created
- compartmentId- Compartment OCID where the Topic needs to be created
- Returns:
- CreateTopicResponse
 
 
-