public class UpdateThingRequest extends AmazonWebServiceRequest implements Serializable
Updates the data for a thing.
| Constructor and Description |
|---|
UpdateThingRequest() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getThingName()
The name of the thing to update.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the thing to update.
public void setThingName(String thingName)
The name of the thing to update.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingName - The name of the thing to update.
public UpdateThingRequest withThingName(String thingName)
The name of the thing to update.
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 update.
public String getThingTypeName()
The name of the thing type.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the thing type.
public void setThingTypeName(String thingTypeName)
The name of the thing type.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingTypeName - The name of the thing type.
public UpdateThingRequest withThingTypeName(String thingTypeName)
The name of the thing type.
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.
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.
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 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 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.
Returns a reference to this object so that method calls can be chained together.
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 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.
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 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 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.
Returns a reference to this object so that method calls can be chained together.
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 Boolean isRemoveThingType()
Remove a thing type association. If true, the assocation is removed.
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.
Remove a thing type association. If true, the assocation is removed.
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 UpdateThingRequest withRemoveThingType(Boolean removeThingType)
Remove a thing type association. If true, the assocation is removed.
Returns a reference to this object so that method calls can be chained together.
removeThingType - Remove a thing type association. If true, the assocation is removed.
public String toString()
toString in class ObjectObject.toString()Copyright © 2017. All rights reserved.