public class CreateThingRequest extends AmazonWebServiceRequest implements java.io.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(java.lang.Object obj) |
AttributePayload |
getAttributePayload()
The attribute payload, which consists of up to three name/value pairs in
a JSON document.
|
java.lang.String |
getBillingGroupName()
The name of the billing group the thing will be added to.
|
java.lang.String |
getThingName()
The name of the thing to create.
|
java.lang.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(java.lang.String billingGroupName)
The name of the billing group the thing will be added to.
|
void |
setThingName(java.lang.String thingName)
The name of the thing to create.
|
void |
setThingTypeName(java.lang.String thingTypeName)
The name of the thing type associated with the new thing.
|
java.lang.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(java.lang.String billingGroupName)
The name of the billing group the thing will be added to.
|
CreateThingRequest |
withThingName(java.lang.String thingName)
The name of the thing to create.
|
CreateThingRequest |
withThingTypeName(java.lang.String thingTypeName)
The name of the thing type associated with the new thing.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getThingName()
The name of the thing to create.
You can't change a thing's name after you create it. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the thing to create.
You can't change a thing's name after you create it. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.
public void setThingName(java.lang.String thingName)
The name of the thing to create.
You can't change a thing's name after you create it. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingName
- The name of the thing to create.
You can't change a thing's name after you create it. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.
public CreateThingRequest withThingName(java.lang.String thingName)
The name of the thing to create.
You can't change a thing's name after you create it. To change a thing's name, you must create a new thing, give it the new name, and then delete the old 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 to create.
You can't change a thing's name after you create it. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.
public java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.