public class AttributeValue extends Object implements 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(List<String> sS)
Constructs a new AttributeValue object.
|
AttributeValue(String s)
Constructs a new AttributeValue object.
|
Modifier and Type | Method and Description |
---|---|
AttributeValue |
addMEntry(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(Object obj) |
ByteBuffer |
getB()
A Binary data type
|
Boolean |
getBOOL()
Returns the value of the BOOL property for this object.
|
List<ByteBuffer> |
getBS()
A Binary set data type
|
List<AttributeValue> |
getL()
Returns the value of the L property for this object.
|
Map<String,AttributeValue> |
getM()
Returns the value of the M property for this object.
|
String |
getN()
A Number data type
|
List<String> |
getNS()
Number set data type
|
Boolean |
getNULL()
Returns the value of the NULL property for this object.
|
String |
getS()
A String data type
|
List<String> |
getSS()
A String set data type
|
int |
hashCode() |
Boolean |
isBOOL()
Returns the value of the BOOL property for this object.
|
Boolean |
isNULL()
Returns the value of the NULL property for this object.
|
void |
setB(ByteBuffer b)
A Binary data type
|
void |
setBOOL(Boolean bOOL)
Sets the value of the BOOL property for this object.
|
void |
setBS(Collection<ByteBuffer> bS)
A Binary set data type
|
void |
setL(Collection<AttributeValue> l)
Sets the value of the L property for this object.
|
void |
setM(Map<String,AttributeValue> m)
Sets the value of the M property for this object.
|
void |
setN(String n)
A Number data type
|
void |
setNS(Collection<String> nS)
Number set data type
|
void |
setNULL(Boolean nULL)
Sets the value of the NULL property for this object.
|
void |
setS(String s)
A String data type
|
void |
setSS(Collection<String> sS)
A String set data type
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttributeValue |
withB(ByteBuffer b)
A Binary data type
|
AttributeValue |
withBOOL(Boolean bOOL)
Sets the value of the BOOL property for this object.
|
AttributeValue |
withBS(ByteBuffer... bS)
A Binary set data type
|
AttributeValue |
withBS(Collection<ByteBuffer> bS)
A Binary set data type
|
AttributeValue |
withL(AttributeValue... l)
Sets the value of the L property for this object.
|
AttributeValue |
withL(Collection<AttributeValue> l)
Sets the value of the L property for this object.
|
AttributeValue |
withM(Map<String,AttributeValue> m)
Sets the value of the M property for this object.
|
AttributeValue |
withN(String n)
A Number data type
|
AttributeValue |
withNS(Collection<String> nS)
Number set data type
|
AttributeValue |
withNS(String... nS)
Number set data type
|
AttributeValue |
withNULL(Boolean nULL)
Sets the value of the NULL property for this object.
|
AttributeValue |
withS(String s)
A String data type
|
AttributeValue |
withSS(Collection<String> sS)
A String set data type
|
AttributeValue |
withSS(String... sS)
A String set data type
|
public AttributeValue()
public AttributeValue(String s)
s
- A String data typepublic String getS()
public void setS(String s)
s
- A String data typepublic AttributeValue withS(String s)
Returns a reference to this object so that method calls can be chained together.
s
- A String data typepublic String getN()
public void setN(String n)
n
- A Number data typepublic AttributeValue withN(String n)
Returns a reference to this object so that method calls can be chained together.
n
- A Number data typepublic ByteBuffer getB()
public void setB(ByteBuffer b)
b
- A Binary data typepublic AttributeValue withB(ByteBuffer b)
Returns a reference to this object so that method calls can be chained together.
b
- A Binary data typepublic void setSS(Collection<String> sS)
sS
- A String set data typepublic AttributeValue withSS(String... sS)
Returns a reference to this object so that method calls can be chained together.
sS
- A String set data typepublic AttributeValue withSS(Collection<String> sS)
Returns a reference to this object so that method calls can be chained together.
sS
- A String set data typepublic void setNS(Collection<String> nS)
nS
- Number set data typepublic AttributeValue withNS(String... nS)
Returns a reference to this object so that method calls can be chained together.
nS
- Number set data typepublic AttributeValue withNS(Collection<String> nS)
Returns a reference to this object so that method calls can be chained together.
nS
- Number set data typepublic List<ByteBuffer> getBS()
public void setBS(Collection<ByteBuffer> bS)
bS
- A Binary set data typepublic AttributeValue withBS(ByteBuffer... bS)
Returns a reference to this object so that method calls can be chained together.
bS
- A Binary set data typepublic AttributeValue withBS(Collection<ByteBuffer> bS)
Returns a reference to this object so that method calls can be chained together.
bS
- A Binary set data typepublic Map<String,AttributeValue> getM()
public void setM(Map<String,AttributeValue> m)
m
- The new value for the M property for this object.public AttributeValue withM(Map<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(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 List<AttributeValue> getL()
public void setL(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(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 Boolean isNULL()
public void setNULL(Boolean nULL)
nULL
- The new value for the NULL property for this object.public AttributeValue withNULL(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 Boolean getNULL()
public Boolean isBOOL()
public void setBOOL(Boolean bOOL)
bOOL
- The new value for the BOOL property for this object.public AttributeValue withBOOL(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 Boolean getBOOL()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.