public class CreateThingRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
The input for the CreateThing operation.
Modifier and Type | Field and Description |
---|---|
private AttributePayload |
attributePayload
The attribute payload, which consists of up to 3 name/value pairs in a
JSON document (for example, {\"attributes\":{\"string1\":\"string2\"}}).
|
private java.lang.String |
thingName
The name of the thing.
|
NOOP
Constructor and Description |
---|
CreateThingRequest() |
Modifier and Type | Method and Description |
---|---|
CreateThingRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
AttributePayload |
getAttributePayload()
The attribute payload, which consists of up to 3 name/value pairs in a
JSON document (for example, {\"attributes\":{\"string1\":\"string2\"}}).
|
java.lang.String |
getThingName()
The name of the thing.
|
int |
hashCode() |
void |
setAttributePayload(AttributePayload attributePayload)
The attribute payload, which consists of up to 3 name/value pairs in a
JSON document (for example, {\"attributes\":{\"string1\":\"string2\"}}).
|
void |
setThingName(java.lang.String thingName)
The name of the thing.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateThingRequest |
withAttributePayload(AttributePayload attributePayload)
The attribute payload, which consists of up to 3 name/value pairs in a
JSON document (for example, {\"attributes\":{\"string1\":\"string2\"}}).
|
CreateThingRequest |
withThingName(java.lang.String thingName)
The name of the thing.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String thingName
The name of the thing.
private AttributePayload attributePayload
The attribute payload, which consists of up to 3 name/value pairs in a JSON document (for example, {\"attributes\":{\"string1\":\"string2\"}}).
public void setThingName(java.lang.String thingName)
The name of the thing.
thingName
- The name of the thing.public java.lang.String getThingName()
The name of the thing.
public CreateThingRequest withThingName(java.lang.String thingName)
The name of the thing.
thingName
- The name of the thing.public void setAttributePayload(AttributePayload attributePayload)
The attribute payload, which consists of up to 3 name/value pairs in a JSON document (for example, {\"attributes\":{\"string1\":\"string2\"}}).
attributePayload
- The attribute payload, which consists of up to 3 name/value pairs
in a JSON document (for example,
{\"attributes\":{\"string1\":\"string2\"}}).public AttributePayload getAttributePayload()
The attribute payload, which consists of up to 3 name/value pairs in a JSON document (for example, {\"attributes\":{\"string1\":\"string2\"}}).
public CreateThingRequest withAttributePayload(AttributePayload attributePayload)
The attribute payload, which consists of up to 3 name/value pairs in a JSON document (for example, {\"attributes\":{\"string1\":\"string2\"}}).
attributePayload
- The attribute payload, which consists of up to 3 name/value pairs
in a JSON document (for example,
{\"attributes\":{\"string1\":\"string2\"}}).public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateThingRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()