com.amazonaws.services.dynamodb.model
Class ExpectedAttributeValue

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

public class ExpectedAttributeValue
extends Object

Allows you to provide an attribute name, and whether or not Amazon DynamoDB should check to see if the attribute value already exists; or if the attribute value exists and has a particular value before changing it.


Constructor Summary
ExpectedAttributeValue()
          Default constructor for a new ExpectedAttributeValue object.
ExpectedAttributeValue(AttributeValue value)
          Constructs a new ExpectedAttributeValue object.
ExpectedAttributeValue(Boolean exists)
          Constructs a new ExpectedAttributeValue object.
 
Method Summary
 boolean equals(Object obj)
           
 Boolean getExists()
          Specify whether or not a value already exists for the attribute name-value pair.
 AttributeValue getValue()
          Specify whether or not a value already exists and has a specific content for the attribute name-value pair.
 int hashCode()
           
 Boolean isExists()
          Specify whether or not a value already exists for the attribute name-value pair.
 void setExists(Boolean exists)
          Specify whether or not a value already exists for the attribute name-value pair.
 void setValue(AttributeValue value)
          Specify whether or not a value already exists and has a specific content for the attribute name-value pair.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ExpectedAttributeValue withExists(Boolean exists)
          Specify whether or not a value already exists for the attribute name-value pair.
 ExpectedAttributeValue withValue(AttributeValue value)
          Specify whether or not a value already exists and has a specific content for the attribute name-value pair.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExpectedAttributeValue

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


ExpectedAttributeValue

public ExpectedAttributeValue(AttributeValue value)
Constructs a new ExpectedAttributeValue object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
value - Specify whether or not a value already exists and has a specific content for the attribute name-value pair.

ExpectedAttributeValue

public ExpectedAttributeValue(Boolean exists)
Constructs a new ExpectedAttributeValue object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
exists - Specify whether or not a value already exists for the attribute name-value pair.
Method Detail

getValue

public AttributeValue getValue()
Specify whether or not a value already exists and has a specific content for the attribute name-value pair.

Returns:
Specify whether or not a value already exists and has a specific content for the attribute name-value pair.

setValue

public void setValue(AttributeValue value)
Specify whether or not a value already exists and has a specific content for the attribute name-value pair.

Parameters:
value - Specify whether or not a value already exists and has a specific content for the attribute name-value pair.

withValue

public ExpectedAttributeValue withValue(AttributeValue value)
Specify whether or not a value already exists and has a specific content for the attribute name-value pair.

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

Parameters:
value - Specify whether or not a value already exists and has a specific content for the attribute name-value pair.
Returns:
A reference to this updated object so that method calls can be chained together.

isExists

public Boolean isExists()
Specify whether or not a value already exists for the attribute name-value pair.

Returns:
Specify whether or not a value already exists for the attribute name-value pair.

setExists

public void setExists(Boolean exists)
Specify whether or not a value already exists for the attribute name-value pair.

Parameters:
exists - Specify whether or not a value already exists for the attribute name-value pair.

withExists

public ExpectedAttributeValue withExists(Boolean exists)
Specify whether or not a value already exists for the attribute name-value pair.

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

Parameters:
exists - Specify whether or not a value already exists for the attribute name-value pair.
Returns:
A reference to this updated object so that method calls can be chained together.

getExists

public Boolean getExists()
Specify whether or not a value already exists for the attribute name-value pair.

Returns:
Specify whether or not a value already exists for the attribute name-value pair.

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.