Class PartitionKey
- java.lang.Object
-
- software.amazon.awssdk.services.timestreamwrite.model.PartitionKey
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PartitionKey.Builder,PartitionKey>
@Generated("software.amazon.awssdk:codegen") public final class PartitionKey extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PartitionKey.Builder,PartitionKey>
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).
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePartitionKey.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PartitionKey.Builderbuilder()PartitionKeyEnforcementLevelenforcementInRecord()The level of enforcement for the specification of a dimension key in ingested records.StringenforcementInRecordAsString()The level of enforcement for the specification of a dimension key in ingested records.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The name of the attribute used for a dimension key.List<SdkField<?>>sdkFields()static Class<? extends PartitionKey.Builder>serializableBuilderClass()PartitionKey.BuildertoBuilder()StringtoString()Returns a string representation of this object.PartitionKeyTypetype()The type of the partition key.StringtypeAsString()The type of the partition key.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
type
public final PartitionKeyType type()
The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).
If the service returns an enum value that is not available in the current SDK version,
typewill returnPartitionKeyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).
- See Also:
PartitionKeyType
-
typeAsString
public final String typeAsString()
The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).
If the service returns an enum value that is not available in the current SDK version,
typewill returnPartitionKeyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).
- See Also:
PartitionKeyType
-
name
public final String name()
The name of the attribute used for a dimension key.
- Returns:
- The name of the attribute used for a dimension key.
-
enforcementInRecord
public final 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).
If the service returns an enum value that is not available in the current SDK version,
enforcementInRecordwill returnPartitionKeyEnforcementLevel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromenforcementInRecordAsString().- Returns:
- 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).
- See Also:
PartitionKeyEnforcementLevel
-
enforcementInRecordAsString
public final String enforcementInRecordAsString()
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).
If the service returns an enum value that is not available in the current SDK version,
enforcementInRecordwill returnPartitionKeyEnforcementLevel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromenforcementInRecordAsString().- Returns:
- 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).
- See Also:
PartitionKeyEnforcementLevel
-
toBuilder
public PartitionKey.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PartitionKey.Builder,PartitionKey>
-
builder
public static PartitionKey.Builder builder()
-
serializableBuilderClass
public static Class<? extends PartitionKey.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-