Class AlternateKey
- java.lang.Object
-
- software.amazon.awssdk.services.m2.model.AlternateKey
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AlternateKey.Builder,AlternateKey>
@Generated("software.amazon.awssdk:codegen") public final class AlternateKey extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AlternateKey.Builder,AlternateKey>
Defines an alternate key. This value is optional. A legacy data set might not have any alternate key defined but if those alternate keys definitions exist, provide them, as some applications will make use of them.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAlternateKey.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanallowDuplicates()Indicates whether the alternate key values are supposed to be unique for the given data set.static AlternateKey.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 alternate key.Stringname()The name of the alternate key.Integeroffset()A positive integer value representing the offset to mark the start of the alternate key part in the record byte array.List<SdkField<?>>sdkFields()static Class<? extends AlternateKey.Builder>serializableBuilderClass()AlternateKey.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
-
allowDuplicates
public final Boolean allowDuplicates()
Indicates whether the alternate key values are supposed to be unique for the given data set.
- Returns:
- Indicates whether the alternate key values are supposed to be unique for the given data set.
-
length
public final Integer length()
A strictly positive integer value representing the length of the alternate key.
- Returns:
- A strictly positive integer value representing the length of the alternate key.
-
name
public final String name()
The name of the alternate key.
- Returns:
- The name of the alternate key.
-
offset
public final Integer offset()
A positive integer value representing the offset to mark the start of the alternate key part in the record byte array.
- Returns:
- A positive integer value representing the offset to mark the start of the alternate key part in the record byte array.
-
toBuilder
public AlternateKey.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AlternateKey.Builder,AlternateKey>
-
builder
public static AlternateKey.Builder builder()
-
serializableBuilderClass
public static Class<? extends AlternateKey.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.
-
-