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