com.amazonaws.services.dynamodbv2.model
Class AttributeValue

java.lang.Object
  extended by com.amazonaws.services.dynamodbv2.model.AttributeValue
All Implemented Interfaces:
java.io.Serializable

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.

See Also:
Serialized Form

Constructor Summary
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.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeValue

public AttributeValue()
Default constructor for a new AttributeValue object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


AttributeValue

public AttributeValue(java.lang.String s)
Constructs a new AttributeValue object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
s - A String data type

AttributeValue

public AttributeValue(java.util.List<java.lang.String> sS)
Constructs a new AttributeValue object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
sS - A String set data type
Method Detail

getS

public java.lang.String getS()
A String data type

Returns:
A String data type

setS

public void setS(java.lang.String s)
A String data type

Parameters:
s - A String data type

withS

public AttributeValue withS(java.lang.String s)
A String data type

Returns a reference to this object so that method calls can be chained together.

Parameters:
s - A String data type
Returns:
A reference to this updated object so that method calls can be chained together.

getN

public java.lang.String getN()
A Number data type

Returns:
A Number data type

setN

public void setN(java.lang.String n)
A Number data type

Parameters:
n - A Number data type

withN

public AttributeValue withN(java.lang.String n)
A Number data type

Returns a reference to this object so that method calls can be chained together.

Parameters:
n - A Number data type
Returns:
A reference to this updated object so that method calls can be chained together.

getB

public java.nio.ByteBuffer getB()
A Binary data type

Returns:
A Binary data type

setB

public void setB(java.nio.ByteBuffer b)
A Binary data type

Parameters:
b - A Binary data type

withB

public AttributeValue withB(java.nio.ByteBuffer b)
A Binary data type

Returns a reference to this object so that method calls can be chained together.

Parameters:
b - A Binary data type
Returns:
A reference to this updated object so that method calls can be chained together.

getSS

public java.util.List<java.lang.String> getSS()
A String set data type

Returns:
A String set data type

setSS

public void setSS(java.util.Collection<java.lang.String> sS)
A String set data type

Parameters:
sS - A String set data type

withSS

public AttributeValue withSS(java.lang.String... sS)
A String set data type

Returns a reference to this object so that method calls can be chained together.

Parameters:
sS - A String set data type
Returns:
A reference to this updated object so that method calls can be chained together.

withSS

public AttributeValue withSS(java.util.Collection<java.lang.String> sS)
A String set data type

Returns a reference to this object so that method calls can be chained together.

Parameters:
sS - A String set data type
Returns:
A reference to this updated object so that method calls can be chained together.

getNS

public java.util.List<java.lang.String> getNS()
Number set data type

Returns:
Number set data type

setNS

public void setNS(java.util.Collection<java.lang.String> nS)
Number set data type

Parameters:
nS - Number set data type

withNS

public AttributeValue withNS(java.lang.String... nS)
Number set data type

Returns a reference to this object so that method calls can be chained together.

Parameters:
nS - Number set data type
Returns:
A reference to this updated object so that method calls can be chained together.

withNS

public AttributeValue withNS(java.util.Collection<java.lang.String> nS)
Number set data type

Returns a reference to this object so that method calls can be chained together.

Parameters:
nS - Number set data type
Returns:
A reference to this updated object so that method calls can be chained together.

getBS

public java.util.List<java.nio.ByteBuffer> getBS()
A Binary set data type

Returns:
A Binary set data type

setBS

public void setBS(java.util.Collection<java.nio.ByteBuffer> bS)
A Binary set data type

Parameters:
bS - A Binary set data type

withBS

public AttributeValue withBS(java.nio.ByteBuffer... bS)
A Binary set data type

Returns a reference to this object so that method calls can be chained together.

Parameters:
bS - A Binary set data type
Returns:
A reference to this updated object so that method calls can be chained together.

withBS

public AttributeValue withBS(java.util.Collection<java.nio.ByteBuffer> bS)
A Binary set data type

Returns a reference to this object so that method calls can be chained together.

Parameters:
bS - A Binary set data type
Returns:
A reference to this updated object so that method calls can be chained together.

getM

public java.util.Map<java.lang.String,AttributeValue> getM()
Returns the value of the M property for this object.

Returns:
The value of the M property for this object.

setM

public void setM(java.util.Map<java.lang.String,AttributeValue> m)
Sets the value of the M property for this object.

Parameters:
m - The new value for the M property for this object.

withM

public AttributeValue withM(java.util.Map<java.lang.String,AttributeValue> m)
Sets the value of the M property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
m - The new value for the M property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

addMEntry

public AttributeValue addMEntry(java.lang.String key,
                                AttributeValue value)
Sets the value of the M property for this object.

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.

Parameters:
key - The key of the entry to be added into M.
value - The corresponding value of the entry to be added into M.

clearMEntries

public AttributeValue clearMEntries()
Removes all the entries added into M.

Returns a reference to this object so that method calls can be chained together.


getL

public java.util.List<AttributeValue> getL()
Returns the value of the L property for this object.

Returns:
The value of the L property for this object.

setL

public void setL(java.util.Collection<AttributeValue> l)
Sets the value of the L property for this object.

Parameters:
l - The new value for the L property for this object.

withL

public AttributeValue withL(AttributeValue... l)
Sets the value of the L property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
l - The new value for the L property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

withL

public AttributeValue withL(java.util.Collection<AttributeValue> l)
Sets the value of the L property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
l - The new value for the L property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

isNULL

public java.lang.Boolean isNULL()
Returns the value of the NULL property for this object.

Returns:
The value of the NULL property for this object.

setNULL

public void setNULL(java.lang.Boolean nULL)
Sets the value of the NULL property for this object.

Parameters:
nULL - The new value for the NULL property for this object.

withNULL

public AttributeValue withNULL(java.lang.Boolean nULL)
Sets the value of the NULL property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
nULL - The new value for the NULL property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getNULL

public java.lang.Boolean getNULL()
Returns the value of the NULL property for this object.

Returns:
The value of the NULL property for this object.

isBOOL

public java.lang.Boolean isBOOL()
Returns the value of the BOOL property for this object.

Returns:
The value of the BOOL property for this object.

setBOOL

public void setBOOL(java.lang.Boolean bOOL)
Sets the value of the BOOL property for this object.

Parameters:
bOOL - The new value for the BOOL property for this object.

withBOOL

public AttributeValue withBOOL(java.lang.Boolean bOOL)
Sets the value of the BOOL property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
bOOL - The new value for the BOOL property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getBOOL

public java.lang.Boolean getBOOL()
Returns the value of the BOOL property for this object.

Returns:
The value of the BOOL property for this object.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.