public class PutRecordResult
extends java.lang.Object
implements java.io.Serializable
Represents the output for PutRecord
.
Constructor and Description |
---|
PutRecordResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getEncryptionType()
The encryption type to use on the record.
|
java.lang.String |
getSequenceNumber()
The sequence number identifier that was assigned to the put data record.
|
java.lang.String |
getShardId()
The shard ID of the shard where the data record was placed.
|
int |
hashCode() |
void |
setEncryptionType(EncryptionType encryptionType)
The encryption type to use on the record.
|
void |
setEncryptionType(java.lang.String encryptionType)
The encryption type to use on the record.
|
void |
setSequenceNumber(java.lang.String sequenceNumber)
The sequence number identifier that was assigned to the put data record.
|
void |
setShardId(java.lang.String shardId)
The shard ID of the shard where the data record was placed.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutRecordResult |
withEncryptionType(EncryptionType encryptionType)
The encryption type to use on the record.
|
PutRecordResult |
withEncryptionType(java.lang.String encryptionType)
The encryption type to use on the record.
|
PutRecordResult |
withSequenceNumber(java.lang.String sequenceNumber)
The sequence number identifier that was assigned to the put data record.
|
PutRecordResult |
withShardId(java.lang.String shardId)
The shard ID of the shard where the data record was placed.
|
public java.lang.String getShardId()
The shard ID of the shard where the data record was placed.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
The shard ID of the shard where the data record was placed.
public void setShardId(java.lang.String shardId)
The shard ID of the shard where the data record was placed.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
shardId
- The shard ID of the shard where the data record was placed.
public PutRecordResult withShardId(java.lang.String shardId)
The shard ID of the shard where the data record was placed.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
shardId
- The shard ID of the shard where the data record was placed.
public java.lang.String getSequenceNumber()
The sequence number identifier that was assigned to the put data record. The sequence number for the record is unique across all records in the stream. A sequence number is the identifier associated with every record put into the stream.
Constraints:
Pattern: 0|([1-9]\d{0,128})
The sequence number identifier that was assigned to the put data record. The sequence number for the record is unique across all records in the stream. A sequence number is the identifier associated with every record put into the stream.
public void setSequenceNumber(java.lang.String sequenceNumber)
The sequence number identifier that was assigned to the put data record. The sequence number for the record is unique across all records in the stream. A sequence number is the identifier associated with every record put into the stream.
Constraints:
Pattern: 0|([1-9]\d{0,128})
sequenceNumber
- The sequence number identifier that was assigned to the put data record. The sequence number for the record is unique across all records in the stream. A sequence number is the identifier associated with every record put into the stream.
public PutRecordResult withSequenceNumber(java.lang.String sequenceNumber)
The sequence number identifier that was assigned to the put data record. The sequence number for the record is unique across all records in the stream. A sequence number is the identifier associated with every record put into the stream.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: 0|([1-9]\d{0,128})
sequenceNumber
- The sequence number identifier that was assigned to the put data record. The sequence number for the record is unique across all records in the stream. A sequence number is the identifier associated with every record put into the stream.
public java.lang.String getEncryptionType()
The encryption type to use on the record. This parameter can be one of the following values:
NONE
: Do not encrypt the records in the stream.
KMS
: Use server-side encryption on the records in the stream
using a customer-managed AWS KMS key.
Constraints:
Allowed Values: NONE, KMS
The encryption type to use on the record. This parameter can be one of the following values:
NONE
: Do not encrypt the records in the stream.
KMS
: Use server-side encryption on the records in
the stream using a customer-managed AWS KMS key.
EncryptionType
public void setEncryptionType(java.lang.String encryptionType)
The encryption type to use on the record. This parameter can be one of the following values:
NONE
: Do not encrypt the records in the stream.
KMS
: Use server-side encryption on the records in the stream
using a customer-managed AWS KMS key.
Constraints:
Allowed Values: NONE, KMS
encryptionType
- The encryption type to use on the record. This parameter can be one of the following values:
NONE
: Do not encrypt the records in the stream.
KMS
: Use server-side encryption on the records in
the stream using a customer-managed AWS KMS key.
EncryptionType
public PutRecordResult withEncryptionType(java.lang.String encryptionType)
The encryption type to use on the record. This parameter can be one of the following values:
NONE
: Do not encrypt the records in the stream.
KMS
: Use server-side encryption on the records in the stream
using a customer-managed AWS KMS key.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: NONE, KMS
encryptionType
- The encryption type to use on the record. This parameter can be one of the following values:
NONE
: Do not encrypt the records in the stream.
KMS
: Use server-side encryption on the records in
the stream using a customer-managed AWS KMS key.
EncryptionType
public void setEncryptionType(EncryptionType encryptionType)
The encryption type to use on the record. This parameter can be one of the following values:
NONE
: Do not encrypt the records in the stream.
KMS
: Use server-side encryption on the records in the stream
using a customer-managed AWS KMS key.
Constraints:
Allowed Values: NONE, KMS
encryptionType
- The encryption type to use on the record. This parameter can be one of the following values:
NONE
: Do not encrypt the records in the stream.
KMS
: Use server-side encryption on the records in
the stream using a customer-managed AWS KMS key.
EncryptionType
public PutRecordResult withEncryptionType(EncryptionType encryptionType)
The encryption type to use on the record. This parameter can be one of the following values:
NONE
: Do not encrypt the records in the stream.
KMS
: Use server-side encryption on the records in the stream
using a customer-managed AWS KMS key.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: NONE, KMS
encryptionType
- The encryption type to use on the record. This parameter can be one of the following values:
NONE
: Do not encrypt the records in the stream.
KMS
: Use server-side encryption on the records in
the stream using a customer-managed AWS KMS key.
EncryptionType
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.