Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.dynamodbv2.model
Class AttributeValue

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

public class AttributeValue
extends Object
implements 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(List<String> sS)
          Constructs a new AttributeValue object.
AttributeValue(String s)
          Constructs a new AttributeValue object.
 
Method Summary
 boolean equals(Object obj)
           
 ByteBuffer getB()
          Represents a Binary data type
 List<ByteBuffer> getBS()
          Represents a Binary set data type
 String getN()
          Represents a Number data type
 List<String> getNS()
          Represents a Number set data type
 String getS()
          Represents a String data type
 List<String> getSS()
          Represents a String set data type
 int hashCode()
           
 void setB(ByteBuffer b)
          Represents a Binary data type
 void setBS(Collection<ByteBuffer> bS)
          Represents a Binary set data type
 void setN(String n)
          Represents a Number data type
 void setNS(Collection<String> nS)
          Represents a Number set data type
 void setS(String s)
          Represents a String data type
 void setSS(Collection<String> sS)
          Represents a String set data type
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AttributeValue withB(ByteBuffer b)
          Represents a Binary data type
 AttributeValue withBS(ByteBuffer... bS)
          Represents a Binary set data type
 AttributeValue withBS(Collection<ByteBuffer> bS)
          Represents a Binary set data type
 AttributeValue withN(String n)
          Represents a Number data type
 AttributeValue withNS(Collection<String> nS)
          Represents a Number set data type
 AttributeValue withNS(String... nS)
          Represents a Number set data type
 AttributeValue withS(String s)
          Represents a String data type
 AttributeValue withSS(Collection<String> sS)
          Represents a String set data type
 AttributeValue withSS(String... sS)
          Represents 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(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 - Represents a String data type

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 - Represents a String set data type
Method Detail

getS

public String getS()
Represents a String data type

Returns:
Represents a String data type

setS

public void setS(String s)
Represents a String data type

Parameters:
s - Represents a String data type

withS

public AttributeValue withS(String s)
Represents a String data type

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

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

getN

public String getN()
Represents a Number data type

Returns:
Represents a Number data type

setN

public void setN(String n)
Represents a Number data type

Parameters:
n - Represents a Number data type

withN

public AttributeValue withN(String n)
Represents a Number data type

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

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

getB

public ByteBuffer getB()
Represents a Binary data type

Returns:
Represents a Binary data type

setB

public void setB(ByteBuffer b)
Represents a Binary data type

Parameters:
b - Represents a Binary data type

withB

public AttributeValue withB(ByteBuffer b)
Represents a Binary data type

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

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

getSS

public List<String> getSS()
Represents a String set data type

Returns:
Represents a String set data type

setSS

public void setSS(Collection<String> sS)
Represents a String set data type

Parameters:
sS - Represents a String set data type

withSS

public AttributeValue withSS(String... sS)
Represents a String set data type

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

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

withSS

public AttributeValue withSS(Collection<String> sS)
Represents a String set data type

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

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

getNS

public List<String> getNS()
Represents a Number set data type

Returns:
Represents a Number set data type

setNS

public void setNS(Collection<String> nS)
Represents a Number set data type

Parameters:
nS - Represents a Number set data type

withNS

public AttributeValue withNS(String... nS)
Represents a Number set data type

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

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

withNS

public AttributeValue withNS(Collection<String> nS)
Represents a Number set data type

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

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

getBS

public List<ByteBuffer> getBS()
Represents a Binary set data type

Returns:
Represents a Binary set data type

setBS

public void setBS(Collection<ByteBuffer> bS)
Represents a Binary set data type

Parameters:
bS - Represents a Binary set data type

withBS

public AttributeValue withBS(ByteBuffer... bS)
Represents a Binary set data type

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

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

withBS

public AttributeValue withBS(Collection<ByteBuffer> bS)
Represents a Binary set data type

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

Parameters:
bS - Represents a Binary set data type
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.