public class AttributeDefinition extends Object implements Serializable
Represents an attribute for describing the key schema for the table and indexes.
| Constructor and Description |
|---|
AttributeDefinition()
Default constructor for a new AttributeDefinition object.
|
AttributeDefinition(String attributeName,
ScalarAttributeType attributeType)
Constructs a new AttributeDefinition object.
|
AttributeDefinition(String attributeName,
String attributeType)
Constructs a new AttributeDefinition object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAttributeName()
A name for the attribute.
|
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 |
int |
hashCode() |
void |
setAttributeName(String attributeName)
A name for the attribute.
|
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 |
void |
setAttributeType(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 |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttributeDefinition |
withAttributeName(String attributeName)
A name for the attribute.
|
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 |
AttributeDefinition |
withAttributeType(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 |
public AttributeDefinition()
public AttributeDefinition(String attributeName, String attributeType)
attributeName - A name for the attribute.attributeType - The data type for the attribute, where: S - the attribute is of type StringN - the attribute is of type NumberB - the attribute is of type Binarypublic AttributeDefinition(String attributeName, ScalarAttributeType attributeType)
attributeName - A name for the attribute.attributeType - The data type for the attribute, where: S - the attribute is of type StringN - the attribute is of type NumberB - the attribute is of type Binarypublic String getAttributeName()
Constraints:
Length: 1 - 255
public void setAttributeName(String attributeName)
Constraints:
Length: 1 - 255
attributeName - A name for the attribute.public AttributeDefinition withAttributeName(String attributeName)
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 String getAttributeType()
S - the
attribute is of type StringN - the attribute is
of type NumberB - the attribute is of type
Binary
Constraints:
Allowed Values: S, N, B
S - the
attribute is of type StringN - the attribute is
of type NumberB - the attribute is of type
BinaryScalarAttributeTypepublic void setAttributeType(String attributeType)
S - the
attribute is of type StringN - the attribute is
of type NumberB - 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 StringN - the attribute is
of type NumberB - the attribute is of type
BinaryScalarAttributeTypepublic AttributeDefinition withAttributeType(String attributeType)
S - the
attribute is of type StringN - the attribute is
of type NumberB - the attribute is of type
BinaryReturns 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 StringN - the attribute is
of type NumberB - the attribute is of type
BinaryScalarAttributeTypepublic void setAttributeType(ScalarAttributeType attributeType)
S - the
attribute is of type StringN - the attribute is
of type NumberB - 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 StringN - the attribute is
of type NumberB - the attribute is of type
BinaryScalarAttributeTypepublic AttributeDefinition withAttributeType(ScalarAttributeType attributeType)
S - the
attribute is of type StringN - the attribute is
of type NumberB - the attribute is of type
BinaryReturns 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 StringN - the attribute is
of type NumberB - the attribute is of type
BinaryScalarAttributeTypepublic String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.