Class SubscribeToIoTCoreRequest
- java.lang.Object
-
- software.amazon.awssdk.aws.greengrass.model.SubscribeToIoTCoreRequest
-
- All Implemented Interfaces:
EventStreamJsonMessage
public class SubscribeToIoTCoreRequest extends Object implements EventStreamJsonMessage
-
-
Field Summary
Fields Modifier and Type Field Description static String
APPLICATION_MODEL_TYPE
static SubscribeToIoTCoreRequest
VOID
-
Constructor Summary
Constructors Constructor Description SubscribeToIoTCoreRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object rhs)
String
getApplicationModelType()
Returns the named model type.QOS
getQos()
String
getQosAsString()
The MQTT QoS to use.String
getTopicName()
The topic to which to subscribe.int
hashCode()
void
setQos(String qos)
The MQTT QoS to use.void
setQos(QOS qos)
The MQTT QoS to use.void
setTopicName(String topicName)
The topic to which to subscribe.SubscribeToIoTCoreRequest
withQos(String qos)
The MQTT QoS to use.SubscribeToIoTCoreRequest
withQos(QOS qos)
The MQTT QoS to use.SubscribeToIoTCoreRequest
withTopicName(String topicName)
The topic to which to subscribe.-
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 SubscribeToIoTCoreRequest VOID
-
-
Method Detail
-
getTopicName
public String getTopicName()
The topic to which to subscribe. Supports MQTT wildcards.
-
setTopicName
public void setTopicName(String topicName)
The topic to which to subscribe. Supports MQTT wildcards.
-
withTopicName
public SubscribeToIoTCoreRequest withTopicName(String topicName)
The topic to which to subscribe. Supports MQTT wildcards.
-
getQos
public QOS getQos()
-
getQosAsString
public String getQosAsString()
The MQTT QoS to use.
-
setQos
public void setQos(String qos)
The MQTT QoS to use.
-
withQos
public SubscribeToIoTCoreRequest withQos(String qos)
The MQTT QoS to use.
-
setQos
public void setQos(QOS qos)
The MQTT QoS to use.
-
withQos
public SubscribeToIoTCoreRequest withQos(QOS qos)
The MQTT QoS to use.
-
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
-
-