@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KeySchemaElement extends Object implements Serializable, Cloneable, StructuredPojo
A partition key pair consisting of a name and a type.
| Constructor and Description |
|---|
KeySchemaElement() |
| Modifier and Type | Method and Description |
|---|---|
KeySchemaElement |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of a partition key.
|
String |
getType()
The type of a partition key.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setName(String name)
The name of a partition key.
|
void |
setType(String type)
The type of a partition key.
|
String |
toString()
Returns a string representation of this object.
|
KeySchemaElement |
withName(String name)
The name of a partition key.
|
KeySchemaElement |
withType(String type)
The type of a partition key.
|
public void setName(String name)
The name of a partition key.
name - The name of a partition key.public String getName()
The name of a partition key.
public KeySchemaElement withName(String name)
The name of a partition key.
name - The name of a partition key.public void setType(String type)
The type of a partition key.
type - The type of a partition key.public String getType()
The type of a partition key.
public KeySchemaElement withType(String type)
The type of a partition key.
type - The type of a partition key.public String toString()
toString in class ObjectObject.toString()public KeySchemaElement clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.