Cloneable
, ReadLimitInfo
, ToCopyableBuilder<UpdateThingRequest.Builder,UpdateThingRequest>
@Generated("software.amazon.awssdk:codegen") public class UpdateThingRequest extends AmazonWebServiceRequest implements ToCopyableBuilder<UpdateThingRequest.Builder,UpdateThingRequest>
The input for the UpdateThing operation.
Modifier and Type | Class | Description |
---|---|---|
static interface |
UpdateThingRequest.Builder |
NOOP
Modifier and Type | Method | Description |
---|---|---|
AttributePayload |
attributePayload() |
A list of thing attributes, a JSON string containing name-value pairs.
|
static UpdateThingRequest.Builder |
builder() |
|
boolean |
equals(Object obj) |
|
Long |
expectedVersion() |
The expected version of the thing record in the registry.
|
int |
hashCode() |
|
Boolean |
removeThingType() |
Remove a thing type association.
|
static Class<? extends UpdateThingRequest.Builder> |
serializableBuilderClass() |
|
String |
thingName() |
The name of the thing to update.
|
String |
thingTypeName() |
The name of the thing type.
|
UpdateThingRequest.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
clone, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout
public String thingName()
The name of the thing to update.
public String thingTypeName()
The name of the thing type.
public 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.
{\"attributes\":{\"name1\":\"value2\"}}
This data is used to add new attributes or update existing attributes.
public 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
.
UpdateThing
request is
rejected with a VersionConflictException
.public Boolean removeThingType()
Remove a thing type association. If true, the assocation is removed.
public UpdateThingRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<UpdateThingRequest.Builder,UpdateThingRequest>
public static UpdateThingRequest.Builder builder()
public static Class<? extends UpdateThingRequest.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.