Class SubscribeToTopicRequest

java.lang.Object
software.amazon.awssdk.aws.greengrass.model.SubscribeToTopicRequest
All Implemented Interfaces:
EventStreamJsonMessage

public class SubscribeToTopicRequest extends Object implements EventStreamJsonMessage
  • Field Details

  • Constructor Details

    • SubscribeToTopicRequest

      public SubscribeToTopicRequest()
  • Method Details

    • getTopic

      public String getTopic()
      The topic to subscribe to. Supports MQTT-style wildcards.
    • setTopic

      public void setTopic(String topic)
      The topic to subscribe to. Supports MQTT-style wildcards.
    • withTopic

      public SubscribeToTopicRequest withTopic(String topic)
      The topic to subscribe to. Supports MQTT-style wildcards.
    • getReceiveMode

      public ReceiveMode getReceiveMode()
    • getReceiveModeAsString

      public String getReceiveModeAsString()
      (Optional) The behavior that specifies whether the component receives messages from itself.
    • setReceiveMode

      public void setReceiveMode(String receiveMode)
      (Optional) The behavior that specifies whether the component receives messages from itself.
    • withReceiveMode

      public SubscribeToTopicRequest withReceiveMode(String receiveMode)
      (Optional) The behavior that specifies whether the component receives messages from itself.
    • setReceiveMode

      public void setReceiveMode(ReceiveMode receiveMode)
      (Optional) The behavior that specifies whether the component receives messages from itself.
    • withReceiveMode

      public SubscribeToTopicRequest withReceiveMode(ReceiveMode receiveMode)
      (Optional) The behavior that specifies whether the component receives messages from itself.
    • getApplicationModelType

      public String getApplicationModelType()
      Description copied from interface: EventStreamJsonMessage
      Returns the named model type. May be used for a header.
      Specified by:
      getApplicationModelType in interface EventStreamJsonMessage
      Returns:
      the named model type
    • equals

      public boolean equals(Object rhs)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object