@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttributeValue extends Object implements Serializable, Cloneable, StructuredPojo
Values for use in Player attribute type: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.
Constructor and Description |
---|
AttributeValue() |
Modifier and Type | Method and Description |
---|---|
AttributeValue |
addSDMEntry(String key,
Double value) |
AttributeValue |
clearSDMEntries()
Removes all the entries added into SDM.
|
AttributeValue |
clone() |
boolean |
equals(Object obj) |
Double |
getN()
For number values, expressed as double.
|
String |
getS()
For single string values.
|
Map<String,Double> |
getSDM()
For a map of up to 10 type:value pairs.
|
List<String> |
getSL()
For a list of up to 10 strings.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setN(Double n)
For number values, expressed as double.
|
void |
setS(String s)
For single string values.
|
void |
setSDM(Map<String,Double> sDM)
For a map of up to 10 type:value pairs.
|
void |
setSL(Collection<String> sL)
For a list of up to 10 strings.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
AttributeValue |
withN(Double n)
For number values, expressed as double.
|
AttributeValue |
withS(String s)
For single string values.
|
AttributeValue |
withSDM(Map<String,Double> sDM)
For a map of up to 10 type:value pairs.
|
AttributeValue |
withSL(Collection<String> sL)
For a list of up to 10 strings.
|
AttributeValue |
withSL(String... sL)
For a list of up to 10 strings.
|
public void setS(String s)
For single string values. Maximum string length is 100 characters.
s
- For single string values. Maximum string length is 100 characters.public String getS()
For single string values. Maximum string length is 100 characters.
public AttributeValue withS(String s)
For single string values. Maximum string length is 100 characters.
s
- For single string values. Maximum string length is 100 characters.public void setN(Double n)
For number values, expressed as double.
n
- For number values, expressed as double.public Double getN()
For number values, expressed as double.
public AttributeValue withN(Double n)
For number values, expressed as double.
n
- For number values, expressed as double.public List<String> getSL()
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.
public void setSL(Collection<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.
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.public AttributeValue withSL(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.
NOTE: This method appends the values to the existing list (if any). Use
setSL(java.util.Collection)
or withSL(java.util.Collection)
if you want to override the
existing values.
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.public AttributeValue withSL(Collection<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.
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.public Map<String,Double> getSDM()
For a map of up to 10 type:value pairs. Maximum length for each string value is 100 characters.
public void setSDM(Map<String,Double> sDM)
For a map of up to 10 type:value pairs. Maximum length for each string value is 100 characters.
sDM
- For a map of up to 10 type:value pairs. Maximum length for each string value is 100 characters.public AttributeValue withSDM(Map<String,Double> sDM)
For a map of up to 10 type:value pairs. Maximum length for each string value is 100 characters.
sDM
- For a map of up to 10 type:value pairs. Maximum length for each string value is 100 characters.public AttributeValue addSDMEntry(String key, Double value)
public AttributeValue clearSDMEntries()
public String toString()
toString
in class Object
Object.toString()
public AttributeValue clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.