public class CreateThingRequest extends AmazonWebServiceRequest implements Serializable
Creates a thing record in the registry. If this call is made multiple times
using the same thing name and configuration, the call will succeed. If this
call is made with the same thing name but different configuration a
ResourceAlreadyExistsException is thrown.
This is a control plane operation. See Authorization for information about authorizing control plane actions.
| 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 |
getBillingGroupName()
The name of the billing group the thing will be added to.
|
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 |
setBillingGroupName(String billingGroupName)
The name of the billing group the thing will be added to.
|
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 |
withBillingGroupName(String billingGroupName)
The name of the billing group the thing will be added to.
|
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 getBillingGroupName()
The name of the billing group the thing will be added to.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the billing group the thing will be added to.
public void setBillingGroupName(String billingGroupName)
The name of the billing group the thing will be added to.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
billingGroupName - The name of the billing group the thing will be added to.
public CreateThingRequest withBillingGroupName(String billingGroupName)
The name of the billing group the thing will be added to.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
billingGroupName - The name of the billing group the thing will be added to.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.