@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PartitionKey extends Object implements Serializable, Cloneable, StructuredPojo
The partition key portion of the primary key is required and determines how Amazon Keyspaces stores the data. The partition key can be a single column, or it can be a compound value composed of two or more columns.
Constructor and Description |
---|
PartitionKey() |
Modifier and Type | Method and Description |
---|---|
PartitionKey |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name(s) of the partition key column(s).
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name(s) of the partition key column(s).
|
String |
toString()
Returns a string representation of this object.
|
PartitionKey |
withName(String name)
The name(s) of the partition key column(s).
|
public void setName(String name)
The name(s) of the partition key column(s).
name
- The name(s) of the partition key column(s).public String getName()
The name(s) of the partition key column(s).
public PartitionKey withName(String name)
The name(s) of the partition key column(s).
name
- The name(s) of the partition key column(s).public String toString()
toString
in class Object
Object.toString()
public PartitionKey clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.