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, StringSet, NumberSet.


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)
           
 String getN()
          AttributeValue can be String, Number, StringSet, NumberSet.
 List<String> getNS()
          AttributeValue can be String, Number, StringSet, NumberSet.
 String getS()
          AttributeValue can be String, Number, StringSet, NumberSet.
 List<String> getSS()
          AttributeValue can be String, Number, StringSet, NumberSet.
 int hashCode()
           
 void setN(String n)
          AttributeValue can be String, Number, StringSet, NumberSet.
 void setNS(Collection<String> nS)
          AttributeValue can be String, Number, StringSet, NumberSet.
 void setS(String s)
          AttributeValue can be String, Number, StringSet, NumberSet.
 void setSS(Collection<String> sS)
          AttributeValue can be String, Number, StringSet, NumberSet.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AttributeValue withN(String n)
          AttributeValue can be String, Number, StringSet, NumberSet.
 AttributeValue withNS(Collection<String> nS)
          AttributeValue can be String, Number, StringSet, NumberSet.
 AttributeValue withNS(String... nS)
          AttributeValue can be String, Number, StringSet, NumberSet.
 AttributeValue withS(String s)
          AttributeValue can be String, Number, StringSet, NumberSet.
 AttributeValue withSS(Collection<String> sS)
          AttributeValue can be String, Number, StringSet, NumberSet.
 AttributeValue withSS(String... sS)
          AttributeValue can be String, Number, StringSet, NumberSet.
 
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 - AttributeValue can be String, Number, StringSet, NumberSet. 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 - AttributeValue can be String, Number, StringSet, NumberSet. A Set of Strings.
Method Detail

getS

public String getS()
AttributeValue can be String, Number, StringSet, NumberSet. 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:
AttributeValue can be String, Number, StringSet, NumberSet. 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)
AttributeValue can be String, Number, StringSet, NumberSet. 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 - AttributeValue can be String, Number, StringSet, NumberSet. 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)
AttributeValue can be String, Number, StringSet, NumberSet. 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 - AttributeValue can be String, Number, StringSet, NumberSet. 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()
AttributeValue can be String, Number, StringSet, NumberSet. 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:
AttributeValue can be String, Number, StringSet, NumberSet. 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)
AttributeValue can be String, Number, StringSet, NumberSet. 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 - AttributeValue can be String, Number, StringSet, NumberSet. 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)
AttributeValue can be String, Number, StringSet, NumberSet. 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 - AttributeValue can be String, Number, StringSet, NumberSet. 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.

getSS

public List<String> getSS()
AttributeValue can be String, Number, StringSet, NumberSet. A Set of Strings.

Returns:
AttributeValue can be String, Number, StringSet, NumberSet. A Set of Strings.

setSS

public void setSS(Collection<String> sS)
AttributeValue can be String, Number, StringSet, NumberSet. A Set of Strings.

Parameters:
sS - AttributeValue can be String, Number, StringSet, NumberSet. A Set of Strings.

withSS

public AttributeValue withSS(String... sS)
AttributeValue can be String, Number, StringSet, NumberSet. A Set of Strings.

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

Parameters:
sS - AttributeValue can be String, Number, StringSet, NumberSet. 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)
AttributeValue can be String, Number, StringSet, NumberSet. A Set of Strings.

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

Parameters:
sS - AttributeValue can be String, Number, StringSet, NumberSet. A Set of Strings.
Returns:
A reference to this updated object so that method calls can be chained together.

getNS

public List<String> getNS()
AttributeValue can be String, Number, StringSet, NumberSet. A Set of Numbers.

Returns:
AttributeValue can be String, Number, StringSet, NumberSet. A Set of Numbers.

setNS

public void setNS(Collection<String> nS)
AttributeValue can be String, Number, StringSet, NumberSet. A Set of Numbers.

Parameters:
nS - AttributeValue can be String, Number, StringSet, NumberSet. A Set of Numbers.

withNS

public AttributeValue withNS(String... nS)
AttributeValue can be String, Number, StringSet, NumberSet. A Set of Numbers.

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

Parameters:
nS - AttributeValue can be String, Number, StringSet, NumberSet. 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)
AttributeValue can be String, Number, StringSet, NumberSet. A Set of Numbers.

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

Parameters:
nS - AttributeValue can be String, Number, StringSet, NumberSet. A Set of Numbers.
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.