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
 boolean equals(java.lang.Object obj)
           
 java.nio.ByteBuffer getB()
          A Binary data type
 java.util.List<java.nio.ByteBuffer> getBS()
          A Binary set data type
 java.lang.String getN()
          A Number data type
 java.util.List<java.lang.String> getNS()
          Number set data type
 java.lang.String getS()
          A String data type
 java.util.List<java.lang.String> getSS()
          A String set data type
 int hashCode()
           
 void setB(java.nio.ByteBuffer b)
          A Binary data type
 void setBS(java.util.Collection<java.nio.ByteBuffer> bS)
          A Binary set data type
 void setN(java.lang.String n)
          A Number data type
 void setNS(java.util.Collection<java.lang.String> nS)
          Number set data type
 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 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 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 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.

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.