public class CreateThingRequest extends AmazonWebServiceRequest implements Serializable
CreateThing operation.
Creates a thing in the Thing Registry.
| Constructor and Description |
|---|
CreateThingRequest() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollectorpublic String getThingName()
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
public void setThingName(String thingName)
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
thingName - The name of the thing.public CreateThingRequest withThingName(String thingName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
thingName - The name of the thing.public AttributePayload getAttributePayload()
public void setAttributePayload(AttributePayload attributePayload)
attributePayload - 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)
Returns a reference to this object so that method calls can be chained together.
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 ObjectObject.toString()Copyright © 2016. All rights reserved.