public class UpdateThingRequest extends AmazonWebServiceRequest implements java.io.Serializable
Updates the data for a thing.
Constructor and Description |
---|
UpdateThingRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
AttributePayload |
getAttributePayload()
A list of thing attributes, a JSON string containing name-value pairs.
|
java.lang.Long |
getExpectedVersion()
The expected version of the thing record in the registry.
|
java.lang.Boolean |
getRemoveThingType()
Remove a thing type association.
|
java.lang.String |
getThingName()
The name of the thing to update.
|
java.lang.String |
getThingTypeName()
The name of the thing type.
|
int |
hashCode() |
java.lang.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(java.lang.Long expectedVersion)
The expected version of the thing record in the registry.
|
void |
setRemoveThingType(java.lang.Boolean removeThingType)
Remove a thing type association.
|
void |
setThingName(java.lang.String thingName)
The name of the thing to update.
|
void |
setThingTypeName(java.lang.String thingTypeName)
The name of the thing type.
|
java.lang.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(java.lang.Long expectedVersion)
The expected version of the thing record in the registry.
|
UpdateThingRequest |
withRemoveThingType(java.lang.Boolean removeThingType)
Remove a thing type association.
|
UpdateThingRequest |
withThingName(java.lang.String thingName)
The name of the thing to update.
|
UpdateThingRequest |
withThingTypeName(java.lang.String thingTypeName)
The name of the thing type.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getThingName()
The name of the thing to update.
You can't change a thing's name. 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 update.
You can't change a thing's name. 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 update.
You can't change a thing's name. 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 update.
You can't change a thing's name. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.
public UpdateThingRequest withThingName(java.lang.String thingName)
The name of the thing to update.
You can't change a thing's name. 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 update.
You can't change a thing's name. 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.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the thing type.
public void setThingTypeName(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.Boolean isRemoveThingType()
Remove a thing type association. If true, the association is removed.
Remove a thing type association. If true, the association is removed.
public java.lang.Boolean getRemoveThingType()
Remove a thing type association. If true, the association is removed.
Remove a thing type association. If true, the association is removed.
public void setRemoveThingType(java.lang.Boolean removeThingType)
Remove a thing type association. If true, the association is removed.
removeThingType
- Remove a thing type association. If true, the association is removed.
public UpdateThingRequest withRemoveThingType(java.lang.Boolean removeThingType)
Remove a thing type association. If true, the association 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 association is removed.
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.