@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PrimaryKey extends Object implements Serializable, Cloneable, StructuredPojo
The primary key for a KSDS data set.
Constructor and Description |
---|
PrimaryKey() |
Modifier and Type | Method and Description |
---|---|
PrimaryKey |
clone() |
boolean |
equals(Object obj) |
Integer |
getLength()
A strictly positive integer value representing the length of the primary key.
|
String |
getName()
A name for the Primary Key.
|
Integer |
getOffset()
A positive integer value representing the offset to mark the start of the primary key in the record byte array.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLength(Integer length)
A strictly positive integer value representing the length of the primary key.
|
void |
setName(String name)
A name for the Primary Key.
|
void |
setOffset(Integer offset)
A positive integer value representing the offset to mark the start of the primary key in the record byte array.
|
String |
toString()
Returns a string representation of this object.
|
PrimaryKey |
withLength(Integer length)
A strictly positive integer value representing the length of the primary key.
|
PrimaryKey |
withName(String name)
A name for the Primary Key.
|
PrimaryKey |
withOffset(Integer offset)
A positive integer value representing the offset to mark the start of the primary key in the record byte array.
|
public void setLength(Integer length)
A strictly positive integer value representing the length of the primary key.
length
- A strictly positive integer value representing the length of the primary key.public Integer getLength()
A strictly positive integer value representing the length of the primary key.
public PrimaryKey withLength(Integer length)
A strictly positive integer value representing the length of the primary key.
length
- A strictly positive integer value representing the length of the primary key.public void setName(String name)
A name for the Primary Key.
name
- A name for the Primary Key.public String getName()
A name for the Primary Key.
public PrimaryKey withName(String name)
A name for the Primary Key.
name
- A name for the Primary Key.public void setOffset(Integer offset)
A positive integer value representing the offset to mark the start of the primary key in the record byte array.
offset
- A positive integer value representing the offset to mark the start of the primary key in the record byte
array.public Integer getOffset()
A positive integer value representing the offset to mark the start of the primary key in the record byte array.
public PrimaryKey withOffset(Integer offset)
A positive integer value representing the offset to mark the start of the primary key in the record byte array.
offset
- A positive integer value representing the offset to mark the start of the primary key in the record byte
array.public String toString()
toString
in class Object
Object.toString()
public PrimaryKey clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.