public class CreateThingRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The input for the CreateThing operation.
NOOP
Constructor and Description |
---|
CreateThingRequest() |
Modifier and Type | Method and Description |
---|---|
CreateThingRequest |
clone() |
boolean |
equals(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\"}}).
|
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(String thingName)
The name of the thing.
|
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(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
public void setThingName(String thingName)
The name of the thing.
thingName
- The name of the thing.public String getThingName()
The name of the thing.
public CreateThingRequest withThingName(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 String toString()
toString
in class Object
Object.toString()
public CreateThingRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2016. All rights reserved.