public class AttributeDefinition
extends java.lang.Object
implements java.io.Serializable
Represents an attribute for describing the key schema for the table and indexes.
| Constructor and Description |
|---|
AttributeDefinition()
Default constructor for AttributeDefinition object.
|
AttributeDefinition(java.lang.String attributeName,
ScalarAttributeType attributeType)
Constructs a new AttributeDefinition object.
|
AttributeDefinition(java.lang.String attributeName,
java.lang.String attributeType)
Constructs a new AttributeDefinition object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttributeName()
A name for the attribute.
|
java.lang.String |
getAttributeType()
The data type for the attribute, where:
|
int |
hashCode() |
void |
setAttributeName(java.lang.String attributeName)
A name for the attribute.
|
void |
setAttributeType(ScalarAttributeType attributeType)
The data type for the attribute, where:
|
void |
setAttributeType(java.lang.String attributeType)
The data type for the attribute, where:
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttributeDefinition |
withAttributeName(java.lang.String attributeName)
A name for the attribute.
|
AttributeDefinition |
withAttributeType(ScalarAttributeType attributeType)
The data type for the attribute, where:
|
AttributeDefinition |
withAttributeType(java.lang.String attributeType)
The data type for the attribute, where:
|
public AttributeDefinition()
public AttributeDefinition(java.lang.String attributeName,
java.lang.String attributeType)
attributeName - A name for the attribute.
attributeType - The data type for the attribute, where:
S - the attribute is of type String
N - the attribute is of type Number
B - the attribute is of type Binary
public AttributeDefinition(java.lang.String attributeName,
ScalarAttributeType attributeType)
attributeName - A name for the attribute.
attributeType - The data type for the attribute, where:
S - the attribute is of type String
N - the attribute is of type Number
B - the attribute is of type Binary
public java.lang.String getAttributeName()
A name for the attribute.
Constraints:
Length: 1 - 255
A name for the attribute.
public void setAttributeName(java.lang.String attributeName)
A name for the attribute.
Constraints:
Length: 1 - 255
attributeName - A name for the attribute.
public AttributeDefinition withAttributeName(java.lang.String attributeName)
A name for the attribute.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
attributeName - A name for the attribute.
public java.lang.String getAttributeType()
The data type for the attribute, where:
S - the attribute is of type String
N - the attribute is of type Number
B - the attribute is of type Binary
Constraints:
Allowed Values: S, N, B
The data type for the attribute, where:
S - the attribute is of type String
N - the attribute is of type Number
B - the attribute is of type Binary
ScalarAttributeTypepublic void setAttributeType(java.lang.String attributeType)
The data type for the attribute, where:
S - the attribute is of type String
N - the attribute is of type Number
B - the attribute is of type Binary
Constraints:
Allowed Values: S, N, B
attributeType - The data type for the attribute, where:
S - the attribute is of type String
N - the attribute is of type Number
B - the attribute is of type Binary
ScalarAttributeTypepublic AttributeDefinition withAttributeType(java.lang.String attributeType)
The data type for the attribute, where:
S - the attribute is of type String
N - the attribute is of type Number
B - the attribute is of type Binary
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: S, N, B
attributeType - The data type for the attribute, where:
S - the attribute is of type String
N - the attribute is of type Number
B - the attribute is of type Binary
ScalarAttributeTypepublic void setAttributeType(ScalarAttributeType attributeType)
The data type for the attribute, where:
S - the attribute is of type String
N - the attribute is of type Number
B - the attribute is of type Binary
Constraints:
Allowed Values: S, N, B
attributeType - The data type for the attribute, where:
S - the attribute is of type String
N - the attribute is of type Number
B - the attribute is of type Binary
ScalarAttributeTypepublic AttributeDefinition withAttributeType(ScalarAttributeType attributeType)
The data type for the attribute, where:
S - the attribute is of type String
N - the attribute is of type Number
B - the attribute is of type Binary
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: S, N, B
attributeType - The data type for the attribute, where:
S - the attribute is of type String
N - the attribute is of type Number
B - the attribute is of type Binary
ScalarAttributeTypepublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.