@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Subscription extends Object implements Serializable, Cloneable, StructuredPojo
| Constructor and Description |
|---|
Subscription() |
| Modifier and Type | Method and Description |
|---|---|
Subscription |
clone() |
boolean |
equals(Object obj) |
String |
getId()
A descriptive or arbitrary ID for the subscription.
|
String |
getSource()
The source of the subscription.
|
String |
getSubject()
The MQTT topic used to route the message.
|
String |
getTarget()
Where the message is sent to.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setId(String id)
A descriptive or arbitrary ID for the subscription.
|
void |
setSource(String source)
The source of the subscription.
|
void |
setSubject(String subject)
The MQTT topic used to route the message.
|
void |
setTarget(String target)
Where the message is sent to.
|
String |
toString()
Returns a string representation of this object.
|
Subscription |
withId(String id)
A descriptive or arbitrary ID for the subscription.
|
Subscription |
withSource(String source)
The source of the subscription.
|
Subscription |
withSubject(String subject)
The MQTT topic used to route the message.
|
Subscription |
withTarget(String target)
Where the message is sent to.
|
public void setId(String id)
id - A descriptive or arbitrary ID for the subscription. This value must be unique within the subscription
definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.public String getId()
public Subscription withId(String id)
id - A descriptive or arbitrary ID for the subscription. This value must be unique within the subscription
definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.public void setSource(String source)
source - The source of the subscription. Can be a thing ARN, a Lambda function ARN, a connector ARN, 'cloud' (which
represents the AWS IoT cloud), or 'GGShadowService'.public String getSource()
public Subscription withSource(String source)
source - The source of the subscription. Can be a thing ARN, a Lambda function ARN, a connector ARN, 'cloud' (which
represents the AWS IoT cloud), or 'GGShadowService'.public void setSubject(String subject)
subject - The MQTT topic used to route the message.public String getSubject()
public Subscription withSubject(String subject)
subject - The MQTT topic used to route the message.public void setTarget(String target)
target - Where the message is sent to. Can be a thing ARN, a Lambda function ARN, a connector ARN, 'cloud' (which
represents the AWS IoT cloud), or 'GGShadowService'.public String getTarget()
public Subscription withTarget(String target)
target - Where the message is sent to. Can be a thing ARN, a Lambda function ARN, a connector ARN, 'cloud' (which
represents the AWS IoT cloud), or 'GGShadowService'.public String toString()
toString in class ObjectObject.toString()public Subscription clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.