@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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String s()
For single string values. Maximum string length is 100 characters.
public Double n()
For number values, expressed as double.
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.
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.
public AttributeValue.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<AttributeValue.Builder,AttributeValue>
public static AttributeValue.Builder builder()
public static Class<? extends AttributeValue.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.