public class UpdateThingRequest extends AmazonWebServiceRequest implements Serializable
UpdateThing operation.
Updates the data for a thing.
| Constructor and Description |
|---|
UpdateThingRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AttributePayload |
getAttributePayload()
The attribute payload, a JSON string containing up to three key-value
pairs (for example, {\"attributes\":{\"string1\":\"string2\"}}).
|
String |
getThingName()
The thing name.
|
int |
hashCode() |
void |
setAttributePayload(AttributePayload attributePayload)
The attribute payload, a JSON string containing up to three key-value
pairs (for example, {\"attributes\":{\"string1\":\"string2\"}}).
|
void |
setThingName(String thingName)
The thing name.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateThingRequest |
withAttributePayload(AttributePayload attributePayload)
The attribute payload, a JSON string containing up to three key-value
pairs (for example, {\"attributes\":{\"string1\":\"string2\"}}).
|
UpdateThingRequest |
withThingName(String thingName)
The thing name.
|
getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollectorpublic String getThingName()
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
public void setThingName(String thingName)
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
thingName - The thing name.public UpdateThingRequest withThingName(String thingName)
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 thing name.public AttributePayload getAttributePayload()
public void setAttributePayload(AttributePayload attributePayload)
attributePayload - The attribute payload, a JSON string containing up to three key-value
pairs (for example, {\"attributes\":{\"string1\":\"string2\"}}).public UpdateThingRequest withAttributePayload(AttributePayload attributePayload)
Returns a reference to this object so that method calls can be chained together.
attributePayload - The attribute payload, a JSON string containing up to three key-value
pairs (for example, {\"attributes\":{\"string1\":\"string2\"}}).public String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.