@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PartitionKey extends Object implements Serializable, Cloneable, StructuredPojo
An attribute used in partitioning data in a table. A dimension key partitions data using the values of the dimension specified by the dimension-name as partition key, while a measure key partitions data using measure names (values of the 'measure_name' column).
Constructor and Description |
---|
PartitionKey() |
Modifier and Type | Method and Description |
---|---|
PartitionKey |
clone() |
boolean |
equals(Object obj) |
String |
getEnforcementInRecord()
The level of enforcement for the specification of a dimension key in ingested records.
|
String |
getName()
The name of the attribute used for a dimension key.
|
String |
getType()
The type of the partition key.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEnforcementInRecord(String enforcementInRecord)
The level of enforcement for the specification of a dimension key in ingested records.
|
void |
setName(String name)
The name of the attribute used for a dimension key.
|
void |
setType(String type)
The type of the partition key.
|
String |
toString()
Returns a string representation of this object.
|
PartitionKey |
withEnforcementInRecord(PartitionKeyEnforcementLevel enforcementInRecord)
The level of enforcement for the specification of a dimension key in ingested records.
|
PartitionKey |
withEnforcementInRecord(String enforcementInRecord)
The level of enforcement for the specification of a dimension key in ingested records.
|
PartitionKey |
withName(String name)
The name of the attribute used for a dimension key.
|
PartitionKey |
withType(PartitionKeyType type)
The type of the partition key.
|
PartitionKey |
withType(String type)
The type of the partition key.
|
public void setType(String type)
The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).
type
- The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).PartitionKeyType
public String getType()
The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).
PartitionKeyType
public PartitionKey withType(String type)
The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).
type
- The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).PartitionKeyType
public PartitionKey withType(PartitionKeyType type)
The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).
type
- The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).PartitionKeyType
public void setName(String name)
The name of the attribute used for a dimension key.
name
- The name of the attribute used for a dimension key.public String getName()
The name of the attribute used for a dimension key.
public PartitionKey withName(String name)
The name of the attribute used for a dimension key.
name
- The name of the attribute used for a dimension key.public void setEnforcementInRecord(String enforcementInRecord)
The level of enforcement for the specification of a dimension key in ingested records. Options are REQUIRED (dimension key must be specified) and OPTIONAL (dimension key does not have to be specified).
enforcementInRecord
- The level of enforcement for the specification of a dimension key in ingested records. Options are
REQUIRED (dimension key must be specified) and OPTIONAL (dimension key does not have to be specified).PartitionKeyEnforcementLevel
public String getEnforcementInRecord()
The level of enforcement for the specification of a dimension key in ingested records. Options are REQUIRED (dimension key must be specified) and OPTIONAL (dimension key does not have to be specified).
PartitionKeyEnforcementLevel
public PartitionKey withEnforcementInRecord(String enforcementInRecord)
The level of enforcement for the specification of a dimension key in ingested records. Options are REQUIRED (dimension key must be specified) and OPTIONAL (dimension key does not have to be specified).
enforcementInRecord
- The level of enforcement for the specification of a dimension key in ingested records. Options are
REQUIRED (dimension key must be specified) and OPTIONAL (dimension key does not have to be specified).PartitionKeyEnforcementLevel
public PartitionKey withEnforcementInRecord(PartitionKeyEnforcementLevel enforcementInRecord)
The level of enforcement for the specification of a dimension key in ingested records. Options are REQUIRED (dimension key must be specified) and OPTIONAL (dimension key does not have to be specified).
enforcementInRecord
- The level of enforcement for the specification of a dimension key in ingested records. Options are
REQUIRED (dimension key must be specified) and OPTIONAL (dimension key does not have to be specified).PartitionKeyEnforcementLevel
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.