public class AttributeValue
extends java.lang.Object
implements java.io.Serializable
Represents the data for an attribute. You can set one, and only one, of the elements.
| Constructor and Description |
|---|
AttributeValue()
Default constructor for a new AttributeValue object.
|
AttributeValue(java.util.List<java.lang.String> sS)
Constructs a new AttributeValue object.
|
AttributeValue(java.lang.String s)
Constructs a new AttributeValue object.
|
| Modifier and Type | Method and Description |
|---|---|
AttributeValue |
addMEntry(java.lang.String key,
AttributeValue value)
Sets the value of the M property for this object.
|
AttributeValue |
clearMEntries()
Removes all the entries added into M.
|
boolean |
equals(java.lang.Object obj) |
java.nio.ByteBuffer |
getB()
A Binary data type
|
java.lang.Boolean |
getBOOL()
Returns the value of the BOOL property for this object.
|
java.util.List<java.nio.ByteBuffer> |
getBS()
A Binary set data type
|
java.util.List<AttributeValue> |
getL()
Returns the value of the L property for this object.
|
java.util.Map<java.lang.String,AttributeValue> |
getM()
Returns the value of the M property for this object.
|
java.lang.String |
getN()
A Number data type
|
java.util.List<java.lang.String> |
getNS()
Number set data type
|
java.lang.Boolean |
getNULL()
Returns the value of the NULL property for this object.
|
java.lang.String |
getS()
A String data type
|
java.util.List<java.lang.String> |
getSS()
A String set data type
|
int |
hashCode() |
java.lang.Boolean |
isBOOL()
Returns the value of the BOOL property for this object.
|
java.lang.Boolean |
isNULL()
Returns the value of the NULL property for this object.
|
void |
setB(java.nio.ByteBuffer b)
A Binary data type
|
void |
setBOOL(java.lang.Boolean bOOL)
Sets the value of the BOOL property for this object.
|
void |
setBS(java.util.Collection<java.nio.ByteBuffer> bS)
A Binary set data type
|
void |
setL(java.util.Collection<AttributeValue> l)
Sets the value of the L property for this object.
|
void |
setM(java.util.Map<java.lang.String,AttributeValue> m)
Sets the value of the M property for this object.
|
void |
setN(java.lang.String n)
A Number data type
|
void |
setNS(java.util.Collection<java.lang.String> nS)
Number set data type
|
void |
setNULL(java.lang.Boolean nULL)
Sets the value of the NULL property for this object.
|
void |
setS(java.lang.String s)
A String data type
|
void |
setSS(java.util.Collection<java.lang.String> sS)
A String set data type
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttributeValue |
withB(java.nio.ByteBuffer b)
A Binary data type
|
AttributeValue |
withBOOL(java.lang.Boolean bOOL)
Sets the value of the BOOL property for this object.
|
AttributeValue |
withBS(java.nio.ByteBuffer... bS)
A Binary set data type
|
AttributeValue |
withBS(java.util.Collection<java.nio.ByteBuffer> bS)
A Binary set data type
|
AttributeValue |
withL(AttributeValue... l)
Sets the value of the L property for this object.
|
AttributeValue |
withL(java.util.Collection<AttributeValue> l)
Sets the value of the L property for this object.
|
AttributeValue |
withM(java.util.Map<java.lang.String,AttributeValue> m)
Sets the value of the M property for this object.
|
AttributeValue |
withN(java.lang.String n)
A Number data type
|
AttributeValue |
withNS(java.util.Collection<java.lang.String> nS)
Number set data type
|
AttributeValue |
withNS(java.lang.String... nS)
Number set data type
|
AttributeValue |
withNULL(java.lang.Boolean nULL)
Sets the value of the NULL property for this object.
|
AttributeValue |
withS(java.lang.String s)
A String data type
|
AttributeValue |
withSS(java.util.Collection<java.lang.String> sS)
A String set data type
|
AttributeValue |
withSS(java.lang.String... sS)
A String set data type
|
public AttributeValue()
public AttributeValue(java.lang.String s)
s - A String data typepublic AttributeValue(java.util.List<java.lang.String> sS)
sS - A String set data typepublic java.lang.String getS()
public void setS(java.lang.String s)
s - A String data typepublic AttributeValue withS(java.lang.String s)
Returns a reference to this object so that method calls can be chained together.
s - A String data typepublic java.lang.String getN()
public void setN(java.lang.String n)
n - A Number data typepublic AttributeValue withN(java.lang.String n)
Returns a reference to this object so that method calls can be chained together.
n - A Number data typepublic java.nio.ByteBuffer getB()
public void setB(java.nio.ByteBuffer b)
b - A Binary data typepublic AttributeValue withB(java.nio.ByteBuffer b)
Returns a reference to this object so that method calls can be chained together.
b - A Binary data typepublic java.util.List<java.lang.String> getSS()
public void setSS(java.util.Collection<java.lang.String> sS)
sS - A String set data typepublic AttributeValue withSS(java.lang.String... sS)
Returns a reference to this object so that method calls can be chained together.
sS - A String set data typepublic AttributeValue withSS(java.util.Collection<java.lang.String> sS)
Returns a reference to this object so that method calls can be chained together.
sS - A String set data typepublic java.util.List<java.lang.String> getNS()
public void setNS(java.util.Collection<java.lang.String> nS)
nS - Number set data typepublic AttributeValue withNS(java.lang.String... nS)
Returns a reference to this object so that method calls can be chained together.
nS - Number set data typepublic AttributeValue withNS(java.util.Collection<java.lang.String> nS)
Returns a reference to this object so that method calls can be chained together.
nS - Number set data typepublic java.util.List<java.nio.ByteBuffer> getBS()
public void setBS(java.util.Collection<java.nio.ByteBuffer> bS)
bS - A Binary set data typepublic AttributeValue withBS(java.nio.ByteBuffer... bS)
Returns a reference to this object so that method calls can be chained together.
bS - A Binary set data typepublic AttributeValue withBS(java.util.Collection<java.nio.ByteBuffer> bS)
Returns a reference to this object so that method calls can be chained together.
bS - A Binary set data typepublic java.util.Map<java.lang.String,AttributeValue> getM()
public void setM(java.util.Map<java.lang.String,AttributeValue> m)
m - The new value for the M property for this object.public AttributeValue withM(java.util.Map<java.lang.String,AttributeValue> m)
Returns a reference to this object so that method calls can be chained together.
m - The new value for the M property for this object.public AttributeValue addMEntry(java.lang.String key, AttributeValue value)
The method adds a new key-value pair into M parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into M.value - The corresponding value of the entry to be added into M.public AttributeValue clearMEntries()
Returns a reference to this object so that method calls can be chained together.
public java.util.List<AttributeValue> getL()
public void setL(java.util.Collection<AttributeValue> l)
l - The new value for the L property for this object.public AttributeValue withL(AttributeValue... l)
Returns a reference to this object so that method calls can be chained together.
l - The new value for the L property for this object.public AttributeValue withL(java.util.Collection<AttributeValue> l)
Returns a reference to this object so that method calls can be chained together.
l - The new value for the L property for this object.public java.lang.Boolean isNULL()
public void setNULL(java.lang.Boolean nULL)
nULL - The new value for the NULL property for this object.public AttributeValue withNULL(java.lang.Boolean nULL)
Returns a reference to this object so that method calls can be chained together.
nULL - The new value for the NULL property for this object.public java.lang.Boolean getNULL()
public java.lang.Boolean isBOOL()
public void setBOOL(java.lang.Boolean bOOL)
bOOL - The new value for the BOOL property for this object.public AttributeValue withBOOL(java.lang.Boolean bOOL)
Returns a reference to this object so that method calls can be chained together.
bOOL - The new value for the BOOL property for this object.public java.lang.Boolean getBOOL()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object