@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateThingRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The input for the UpdateThing operation.
NOOP
Constructor and Description |
---|
UpdateThingRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateThingRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
AttributePayload |
getAttributePayload()
A list of thing attributes, a JSON string containing name-value pairs.
|
Long |
getExpectedVersion()
The expected version of the thing record in the registry.
|
Boolean |
getRemoveThingType()
Remove a thing type association.
|
String |
getThingName()
The name of the thing to update.
|
String |
getThingTypeName()
The name of the thing type.
|
int |
hashCode() |
Boolean |
isRemoveThingType()
Remove a thing type association.
|
void |
setAttributePayload(AttributePayload attributePayload)
A list of thing attributes, a JSON string containing name-value pairs.
|
void |
setExpectedVersion(Long expectedVersion)
The expected version of the thing record in the registry.
|
void |
setRemoveThingType(Boolean removeThingType)
Remove a thing type association.
|
void |
setThingName(String thingName)
The name of the thing to update.
|
void |
setThingTypeName(String thingTypeName)
The name of the thing type.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
UpdateThingRequest |
withAttributePayload(AttributePayload attributePayload)
A list of thing attributes, a JSON string containing name-value pairs.
|
UpdateThingRequest |
withExpectedVersion(Long expectedVersion)
The expected version of the thing record in the registry.
|
UpdateThingRequest |
withRemoveThingType(Boolean removeThingType)
Remove a thing type association.
|
UpdateThingRequest |
withThingName(String thingName)
The name of the thing to update.
|
UpdateThingRequest |
withThingTypeName(String thingTypeName)
The name of the thing type.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setThingName(String thingName)
The name of the thing to update.
thingName
- The name of the thing to update.public String getThingName()
The name of the thing to update.
public UpdateThingRequest withThingName(String thingName)
The name of the thing to update.
thingName
- The name of the thing to update.public void setThingTypeName(String thingTypeName)
The name of the thing type.
thingTypeName
- The name of the thing type.public String getThingTypeName()
The name of the thing type.
public UpdateThingRequest withThingTypeName(String thingTypeName)
The name of the thing type.
thingTypeName
- The name of the thing type.public void setAttributePayload(AttributePayload attributePayload)
A list of thing attributes, a JSON string containing name-value pairs. For example:
{\"attributes\":{\"name1\":\"value2\"}}
This data is used to add new attributes or update existing attributes.
attributePayload
- A list of thing attributes, a JSON string containing name-value pairs. For example:
{\"attributes\":{\"name1\":\"value2\"}}
This data is used to add new attributes or update existing attributes.
public AttributePayload getAttributePayload()
A list of thing attributes, a JSON string containing name-value pairs. For example:
{\"attributes\":{\"name1\":\"value2\"}}
This data is used to add new attributes or update existing attributes.
{\"attributes\":{\"name1\":\"value2\"}}
This data is used to add new attributes or update existing attributes.
public UpdateThingRequest withAttributePayload(AttributePayload attributePayload)
A list of thing attributes, a JSON string containing name-value pairs. For example:
{\"attributes\":{\"name1\":\"value2\"}}
This data is used to add new attributes or update existing attributes.
attributePayload
- A list of thing attributes, a JSON string containing name-value pairs. For example:
{\"attributes\":{\"name1\":\"value2\"}}
This data is used to add new attributes or update existing attributes.
public void setExpectedVersion(Long expectedVersion)
The expected version of the thing record in the registry. If the version of the record in the registry does not
match the expected version specified in the request, the UpdateThing
request is rejected with a
VersionConflictException
.
expectedVersion
- The expected version of the thing record in the registry. If the version of the record in the registry
does not match the expected version specified in the request, the UpdateThing
request is
rejected with a VersionConflictException
.public Long getExpectedVersion()
The expected version of the thing record in the registry. If the version of the record in the registry does not
match the expected version specified in the request, the UpdateThing
request is rejected with a
VersionConflictException
.
UpdateThing
request is
rejected with a VersionConflictException
.public UpdateThingRequest withExpectedVersion(Long expectedVersion)
The expected version of the thing record in the registry. If the version of the record in the registry does not
match the expected version specified in the request, the UpdateThing
request is rejected with a
VersionConflictException
.
expectedVersion
- The expected version of the thing record in the registry. If the version of the record in the registry
does not match the expected version specified in the request, the UpdateThing
request is
rejected with a VersionConflictException
.public void setRemoveThingType(Boolean removeThingType)
Remove a thing type association. If true, the assocation is removed.
removeThingType
- Remove a thing type association. If true, the assocation is removed.public Boolean getRemoveThingType()
Remove a thing type association. If true, the assocation is removed.
public UpdateThingRequest withRemoveThingType(Boolean removeThingType)
Remove a thing type association. If true, the assocation is removed.
removeThingType
- Remove a thing type association. If true, the assocation is removed.public Boolean isRemoveThingType()
Remove a thing type association. If true, the assocation is removed.
public String toString()
toString
in class Object
Object.toString()
public UpdateThingRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.