com.amazonaws.services.dynamodb.model
Class AttributeValue

java.lang.Object
  extended by com.amazonaws.services.dynamodb.model.AttributeValue

public class AttributeValue
extends Object

AttributeValue can be String , Number , Binary , StringSet , NumberSet , BinarySet .


Constructor Summary
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.
 
Method Summary
 boolean equals(Object obj)
           
 ByteBuffer getB()
          Binary attributes are sequences of unsigned bytes.
 List<ByteBuffer> getBS()
          A set of binary attributes.
 String getN()
          Numbers are positive or negative exact-value decimals and integers.
 List<String> getNS()
          A set of numbers.
 String getS()
          Strings are Unicode with UTF-8 binary encoding.
 List<String> getSS()
          A set of strings.
 int hashCode()
           
 void setB(ByteBuffer b)
          Binary attributes are sequences of unsigned bytes.
 void setBS(Collection<ByteBuffer> bS)
          A set of binary attributes.
 void setN(String n)
          Numbers are positive or negative exact-value decimals and integers.
 void setNS(Collection<String> nS)
          A set of numbers.
 void setS(String s)
          Strings are Unicode with UTF-8 binary encoding.
 void setSS(Collection<String> sS)
          A set of strings.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AttributeValue withB(ByteBuffer b)
          Binary attributes are sequences of unsigned bytes.
 AttributeValue withBS(ByteBuffer... bS)
          A set of binary attributes.
 AttributeValue withBS(Collection<ByteBuffer> bS)
          A set of binary attributes.
 AttributeValue withN(String n)
          Numbers are positive or negative exact-value decimals and integers.
 AttributeValue withNS(Collection<String> nS)
          A set of numbers.
 AttributeValue withNS(String... nS)
          A set of numbers.
 AttributeValue withS(String s)
          Strings are Unicode with UTF-8 binary encoding.
 AttributeValue withSS(Collection<String> sS)
          A set of strings.
 AttributeValue withSS(String... sS)
          A set of strings.
 
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(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 - Strings are Unicode with UTF-8 binary encoding. The maximum size is limited by the size of the primary key (1024 bytes as a range part of a key or 2048 bytes as a single part hash key) or the item size (64k).

AttributeValue

public AttributeValue(List<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 set of strings.
Method Detail

getS

public String getS()
Strings are Unicode with UTF-8 binary encoding. The maximum size is limited by the size of the primary key (1024 bytes as a range part of a key or 2048 bytes as a single part hash key) or the item size (64k).

Returns:
Strings are Unicode with UTF-8 binary encoding. The maximum size is limited by the size of the primary key (1024 bytes as a range part of a key or 2048 bytes as a single part hash key) or the item size (64k).

setS

public void setS(String s)
Strings are Unicode with UTF-8 binary encoding. The maximum size is limited by the size of the primary key (1024 bytes as a range part of a key or 2048 bytes as a single part hash key) or the item size (64k).

Parameters:
s - Strings are Unicode with UTF-8 binary encoding. The maximum size is limited by the size of the primary key (1024 bytes as a range part of a key or 2048 bytes as a single part hash key) or the item size (64k).

withS

public AttributeValue withS(String s)
Strings are Unicode with UTF-8 binary encoding. The maximum size is limited by the size of the primary key (1024 bytes as a range part of a key or 2048 bytes as a single part hash key) or the item size (64k).

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

Parameters:
s - Strings are Unicode with UTF-8 binary encoding. The maximum size is limited by the size of the primary key (1024 bytes as a range part of a key or 2048 bytes as a single part hash key) or the item size (64k).
Returns:
A reference to this updated object so that method calls can be chained together.

getN

public String getN()
Numbers are positive or negative exact-value decimals and integers. A number can have up to 38 digits precision and can be between 10^-128 to 10^+126.

Returns:
Numbers are positive or negative exact-value decimals and integers. A number can have up to 38 digits precision and can be between 10^-128 to 10^+126.

setN

public void setN(String n)
Numbers are positive or negative exact-value decimals and integers. A number can have up to 38 digits precision and can be between 10^-128 to 10^+126.

Parameters:
n - Numbers are positive or negative exact-value decimals and integers. A number can have up to 38 digits precision and can be between 10^-128 to 10^+126.

withN

public AttributeValue withN(String n)
Numbers are positive or negative exact-value decimals and integers. A number can have up to 38 digits precision and can be between 10^-128 to 10^+126.

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

Parameters:
n - Numbers are positive or negative exact-value decimals and integers. A number can have up to 38 digits precision and can be between 10^-128 to 10^+126.
Returns:
A reference to this updated object so that method calls can be chained together.

getB

public ByteBuffer getB()
Binary attributes are sequences of unsigned bytes.

Returns:
Binary attributes are sequences of unsigned bytes.

setB

public void setB(ByteBuffer b)
Binary attributes are sequences of unsigned bytes.

Parameters:
b - Binary attributes are sequences of unsigned bytes.

withB

public AttributeValue withB(ByteBuffer b)
Binary attributes are sequences of unsigned bytes.

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

Parameters:
b - Binary attributes are sequences of unsigned bytes.
Returns:
A reference to this updated object so that method calls can be chained together.

getSS

public List<String> getSS()
A set of strings.

Returns:
A set of strings.

setSS

public void setSS(Collection<String> sS)
A set of strings.

Parameters:
sS - A set of strings.

withSS

public AttributeValue withSS(String... sS)
A set of strings.

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

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

withSS

public AttributeValue withSS(Collection<String> sS)
A set of strings.

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

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

getNS

public List<String> getNS()
A set of numbers.

Returns:
A set of numbers.

setNS

public void setNS(Collection<String> nS)
A set of numbers.

Parameters:
nS - A set of numbers.

withNS

public AttributeValue withNS(String... nS)
A set of numbers.

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

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

withNS

public AttributeValue withNS(Collection<String> nS)
A set of numbers.

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

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

getBS

public List<ByteBuffer> getBS()
A set of binary attributes.

Returns:
A set of binary attributes.

setBS

public void setBS(Collection<ByteBuffer> bS)
A set of binary attributes.

Parameters:
bS - A set of binary attributes.

withBS

public AttributeValue withBS(ByteBuffer... bS)
A set of binary attributes.

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

Parameters:
bS - A set of binary attributes.
Returns:
A reference to this updated object so that method calls can be chained together.

withBS

public AttributeValue withBS(Collection<ByteBuffer> bS)
A set of binary attributes.

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

Parameters:
bS - A set of binary attributes.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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