public class CreateThingRequest extends AmazonWebServiceRequest implements Serializable
Creates a thing record 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 three name/value pairs in
a JSON document.
|
String |
getThingName()
The name of the thing to create.
|
String |
getThingTypeName()
The name of the thing type associated with the new thing.
|
int |
hashCode() |
void |
setAttributePayload(AttributePayload attributePayload)
The attribute payload, which consists of up to three name/value pairs in
a JSON document.
|
void |
setThingName(String thingName)
The name of the thing to create.
|
void |
setThingTypeName(String thingTypeName)
The name of the thing type associated with the new 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 three name/value pairs in
a JSON document.
|
CreateThingRequest |
withThingName(String thingName)
The name of the thing to create.
|
CreateThingRequest |
withThingTypeName(String thingTypeName)
The name of the thing type associated with the new thing.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getThingName()
The name of the thing to create.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the thing to create.
public void setThingName(String thingName)
The name of the thing to create.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingName - The name of the thing to create.
public CreateThingRequest withThingName(String thingName)
The name of the thing to create.
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 to create.
public String getThingTypeName()
The name of the thing type associated with the new thing.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the thing type associated with the new thing.
public void setThingTypeName(String thingTypeName)
The name of the thing type associated with the new thing.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingTypeName - The name of the thing type associated with the new thing.
public CreateThingRequest withThingTypeName(String thingTypeName)
The name of the thing type associated with the new thing.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingTypeName - The name of the thing type associated with the new thing.
public AttributePayload getAttributePayload()
The attribute payload, which consists of up to three name/value pairs in a JSON document. For example:
{\"attributes\":{\"string1\":\"string2\"}})
The attribute payload, which consists of up to three 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 three name/value pairs in a JSON document. For example:
{\"attributes\":{\"string1\":\"string2\"}})
attributePayload - The attribute payload, which consists of up to three 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 three 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 three name/value pairs in a JSON document. For example:
{\"attributes\":{\"string1\":\"string2\"}})
public String toString()
toString in class ObjectObject.toString()Copyright © 2017. All rights reserved.