Class SubscribeToTopicRequest
- java.lang.Object
-
- software.amazon.awssdk.aws.greengrass.model.SubscribeToTopicRequest
-
- All Implemented Interfaces:
EventStreamJsonMessage
public class SubscribeToTopicRequest extends Object implements EventStreamJsonMessage
-
-
Field Summary
Fields Modifier and Type Field Description static String
APPLICATION_MODEL_TYPE
static SubscribeToTopicRequest
VOID
-
Constructor Summary
Constructors Constructor Description SubscribeToTopicRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object rhs)
String
getApplicationModelType()
Returns the named model type.ReceiveMode
getReceiveMode()
String
getReceiveModeAsString()
(Optional) The behavior that specifies whether the component receives messages from itself.String
getTopic()
The topic to subscribe to.int
hashCode()
void
setReceiveMode(String receiveMode)
(Optional) The behavior that specifies whether the component receives messages from itself.void
setReceiveMode(ReceiveMode receiveMode)
(Optional) The behavior that specifies whether the component receives messages from itself.void
setTopic(String topic)
The topic to subscribe to.SubscribeToTopicRequest
withReceiveMode(String receiveMode)
(Optional) The behavior that specifies whether the component receives messages from itself.SubscribeToTopicRequest
withReceiveMode(ReceiveMode receiveMode)
(Optional) The behavior that specifies whether the component receives messages from itself.SubscribeToTopicRequest
withTopic(String topic)
The topic to subscribe to.-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage
fromJson, isVoid, postFromJson, toPayload
-
-
-
-
Field Detail
-
APPLICATION_MODEL_TYPE
public static final String APPLICATION_MODEL_TYPE
- See Also:
- Constant Field Values
-
VOID
public static final SubscribeToTopicRequest VOID
-
-
Method Detail
-
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 interfaceEventStreamJsonMessage
- Returns:
- the named model type
-
-