public class CreateThingRequest extends AmazonWebServiceRequest implements Serializable
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()
The name of the thing.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
The name of the thing.
public void setThingName(String thingName)
The name of the thing.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
thingName - The name of the thing.
public CreateThingRequest withThingName(String thingName)
The name of the thing.
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()
The attribute payload, which consists of up to 3 name/value pairs in a JSON document (for example, {\"attributes\":{\"string1\":\"string2\"}}).
The attribute payload, which consists of up to 3 name/value pairs in a JSON document (for example, {\"attributes\":{\"string1\":\"string2\"}}).
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 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\"}}).
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.