@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AlternateKey extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
AlternateKey() |
Modifier and Type | Method and Description |
---|---|
AlternateKey |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAllowDuplicates()
Indicates whether the alternate key values are supposed to be unique for the given data set.
|
Integer |
getLength()
A strictly positive integer value representing the length of the alternate key.
|
String |
getName()
The name of the alternate key.
|
Integer |
getOffset()
A positive integer value representing the offset to mark the start of the alternate key part in the record byte
array.
|
int |
hashCode() |
Boolean |
isAllowDuplicates()
Indicates whether the alternate key values are supposed to be unique for the given data set.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAllowDuplicates(Boolean allowDuplicates)
Indicates whether the alternate key values are supposed to be unique for the given data set.
|
void |
setLength(Integer length)
A strictly positive integer value representing the length of the alternate key.
|
void |
setName(String name)
The name of the alternate key.
|
void |
setOffset(Integer offset)
A positive integer value representing the offset to mark the start of the alternate key part in the record byte
array.
|
String |
toString()
Returns a string representation of this object.
|
AlternateKey |
withAllowDuplicates(Boolean allowDuplicates)
Indicates whether the alternate key values are supposed to be unique for the given data set.
|
AlternateKey |
withLength(Integer length)
A strictly positive integer value representing the length of the alternate key.
|
AlternateKey |
withName(String name)
The name of the alternate key.
|
AlternateKey |
withOffset(Integer offset)
A positive integer value representing the offset to mark the start of the alternate key part in the record byte
array.
|
public void setAllowDuplicates(Boolean allowDuplicates)
Indicates whether the alternate key values are supposed to be unique for the given data set.
allowDuplicates
- Indicates whether the alternate key values are supposed to be unique for the given data set.public Boolean getAllowDuplicates()
Indicates whether the alternate key values are supposed to be unique for the given data set.
public AlternateKey withAllowDuplicates(Boolean allowDuplicates)
Indicates whether the alternate key values are supposed to be unique for the given data set.
allowDuplicates
- Indicates whether the alternate key values are supposed to be unique for the given data set.public Boolean isAllowDuplicates()
Indicates whether the alternate key values are supposed to be unique for the given data set.
public void setLength(Integer length)
A strictly positive integer value representing the length of the alternate key.
length
- A strictly positive integer value representing the length of the alternate key.public Integer getLength()
A strictly positive integer value representing the length of the alternate key.
public AlternateKey withLength(Integer length)
A strictly positive integer value representing the length of the alternate key.
length
- A strictly positive integer value representing the length of the alternate key.public void setName(String name)
The name of the alternate key.
name
- The name of the alternate key.public String getName()
The name of the alternate key.
public AlternateKey withName(String name)
The name of the alternate key.
name
- The name of the alternate key.public void setOffset(Integer offset)
A positive integer value representing the offset to mark the start of the alternate key part in the record byte array.
offset
- A positive integer value representing the offset to mark the start of the alternate key part in the record
byte array.public Integer getOffset()
A positive integer value representing the offset to mark the start of the alternate key part in the record byte array.
public AlternateKey withOffset(Integer offset)
A positive integer value representing the offset to mark the start of the alternate key part in the record byte array.
offset
- A positive integer value representing the offset to mark the start of the alternate key part in the record
byte array.public String toString()
toString
in class Object
Object.toString()
public AlternateKey clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.