Class PrimaryKey
- java.lang.Object
-
- software.amazon.awssdk.services.m2.model.PrimaryKey
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PrimaryKey.Builder,PrimaryKey>
@Generated("software.amazon.awssdk:codegen") public final class PrimaryKey extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PrimaryKey.Builder,PrimaryKey>
The primary key for a KSDS data set.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePrimaryKey.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrimaryKey.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Integerlength()A strictly positive integer value representing the length of the primary key.Stringname()A name for the Primary Key.Integeroffset()A positive integer value representing the offset to mark the start of the primary key in the record byte array.List<SdkField<?>>sdkFields()static Class<? extends PrimaryKey.Builder>serializableBuilderClass()PrimaryKey.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
length
public final Integer length()
A strictly positive integer value representing the length of the primary key.
- Returns:
- A strictly positive integer value representing the length of the primary key.
-
name
public final String name()
A name for the Primary Key.
- Returns:
- A name for the Primary Key.
-
offset
public final Integer offset()
A positive integer value representing the offset to mark the start of the primary key in the record byte array.
- Returns:
- A positive integer value representing the offset to mark the start of the primary key in the record byte array.
-
toBuilder
public PrimaryKey.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PrimaryKey.Builder,PrimaryKey>
-
builder
public static PrimaryKey.Builder builder()
-
serializableBuilderClass
public static Class<? extends PrimaryKey.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.
-
-