Class PublishMessageRequest


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20181201")
    public class PublishMessageRequest
    extends BmcRequest<MessageDetails>

    Example: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.63.0/ons/PublishMessageExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use PublishMessageRequest.

    • Constructor Detail

      • PublishMessageRequest

        public PublishMessageRequest()
    • Method Detail

      • getTopicId

        public String getTopicId()
        The OCID of the topic.
      • getMessageDetails

        public MessageDetails getMessageDetails()
        The message to publish.
      • getOpcRequestId

        public String getOpcRequestId()
        The unique Oracle-assigned identifier for the request.

        If you need to contact Oracle about a particular request, please provide the request ID.

      • getMessageType

        public PublishMessageRequest.MessageType getMessageType()
        Deprecated. Support for JSON is deprecated.

        You can send a JSON payload even when transmitting the payload as a raw string. Configure your receiving system to read the raw payload as JSON format.

        Type of message body in the request. For messageType of JSON, a default key-value pair is required. Example: {"default": "Alarm breached", "Email": "Alarm breached: "}.

      • builder

        public static PublishMessageRequest.Builder builder()
        Return a new builder for this request object.
        Returns:
        builder for the request object
      • equals

        public boolean equals​(Object o)
        Description copied from class: BmcRequest
        Uses getInvocationCallback and getRetryConfiguration to determine if passed request is equal to ‘this’.
        Overrides:
        equals in class BmcRequest<MessageDetails>