@Immutable public final class AttributeValue extends Object
String, Boolean or Long.| Modifier and Type | Method and Description |
|---|---|
static AttributeValue |
booleanAttributeValue(boolean booleanValue)
Returns an
AttributeValue with a boolean value. |
boolean |
equals(Object obj) |
Boolean |
getBooleanValue()
Returns the
Boolean value if this is a boolean AttributeValue, otherwise null. |
Long |
getLongValue()
Returns the
Long value if this is a long AttributeValue, otherwise null. |
String |
getStringValue()
Returns the
String value if this is a string AttributeValue, otherwise null. |
int |
hashCode() |
static AttributeValue |
longAttributeValue(long longValue)
Returns an
AttributeValue with a long value. |
static AttributeValue |
stringAttributeValue(String stringValue)
Returns an
AttributeValue with a string value. |
String |
toString() |
public static AttributeValue stringAttributeValue(String stringValue)
AttributeValue with a string value.stringValue - The new value.AttributeValue with a string value.NullPointerException - if stringValue is null.public static AttributeValue booleanAttributeValue(boolean booleanValue)
AttributeValue with a boolean value.booleanValue - The new value.AttributeValue with a boolean value.public static AttributeValue longAttributeValue(long longValue)
AttributeValue with a long value.longValue - The new value.AttributeValue with a long value.@Nullable public String getStringValue()
String value if this is a string AttributeValue, otherwise null.String value if this is a string AttributeValue, otherwise null.@Nullable public Boolean getBooleanValue()
Boolean value if this is a boolean AttributeValue, otherwise null.Boolean value if this is a boolean AttributeValue, otherwise null.@Nullable public Long getLongValue()
Long value if this is a long AttributeValue, otherwise null.Long value if this is a long AttributeValue, otherwise null.