@Generated(value="software.amazon.awssdk:codegen") public final class AttributeValue extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AttributeValue.Builder,AttributeValue>
Values for use in Player attribute key-value pairs. This object lets you specify an attribute value using any
of the valid data types: string, number, string array, or data map. Each AttributeValue object can use
only one of the available properties.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AttributeValue.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AttributeValue.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasSdm()
Returns true if the SDM property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
boolean |
hasSl()
Returns true if the SL property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
Double |
n()
For number values, expressed as double.
|
String |
s()
For single string values.
|
List<SdkField<?>> |
sdkFields() |
Map<String,Double> |
sdm()
For a map of up to 10 data type:value pairs.
|
static Class<? extends AttributeValue.Builder> |
serializableBuilderClass() |
List<String> |
sl()
For a list of up to 10 strings.
|
AttributeValue.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String s()
For single string values. Maximum string length is 100 characters.
public Double n()
For number values, expressed as double.
public boolean hasSl()
public List<String> sl()
For a list of up to 10 strings. Maximum length for each string is 100 characters. Duplicate values are not recognized; all occurrences of the repeated value after the first of a repeated value are ignored.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSl() to see if a value was sent in this field.
public boolean hasSdm()
public Map<String,Double> sdm()
For a map of up to 10 data type:value pairs. Maximum length for each string value is 100 characters.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSdm() to see if a value was sent in this field.
public AttributeValue.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AttributeValue.Builder,AttributeValue>public static AttributeValue.Builder builder()
public static Class<? extends AttributeValue.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.