@Generated(value="software.amazon.awssdk:codegen") public final class AttributePayload extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AttributePayload.Builder,AttributePayload>
The attribute payload.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AttributePayload.Builder |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
attributes()
A JSON string containing up to three key-value pair in JSON format.
|
static AttributePayload.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAttributes()
Returns true if the Attributes property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
int |
hashCode() |
Boolean |
merge()
Specifies whether the list of attributes provided in the
AttributePayload is merged with the
attributes stored in the registry, instead of overwriting them. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends AttributePayload.Builder> |
serializableBuilderClass() |
AttributePayload.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic boolean hasAttributes()
public Map<String,String> attributes()
A JSON string containing up to three key-value pair in JSON format. For example:
{\"attributes\":{\"string1\":\"string2\"}}
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAttributes() to see if a value was sent in this field.
{\"attributes\":{\"string1\":\"string2\"}}
public Boolean merge()
Specifies whether the list of attributes provided in the AttributePayload is merged with the
attributes stored in the registry, instead of overwriting them.
To remove an attribute, call UpdateThing with an empty attribute value.
The merge attribute is only valid when calling UpdateThing or
UpdateThingGroup.
AttributePayload is merged with the
attributes stored in the registry, instead of overwriting them.
To remove an attribute, call UpdateThing with an empty attribute value.
The merge attribute is only valid when calling UpdateThing or
UpdateThingGroup.
public AttributePayload.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AttributePayload.Builder,AttributePayload>public static AttributePayload.Builder builder()
public static Class<? extends AttributePayload.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2019. All rights reserved.