@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutRecordsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
PutRecords
results.
Constructor and Description |
---|
PutRecordsResult() |
Modifier and Type | Method and Description |
---|---|
PutRecordsResult |
clone() |
boolean |
equals(Object obj) |
String |
getEncryptionType()
The encryption type used on the records.
|
Integer |
getFailedRecordCount()
The number of unsuccessfully processed records in a
PutRecords request. |
List<PutRecordsResultEntry> |
getRecords()
An array of successfully and unsuccessfully processed record results.
|
int |
hashCode() |
void |
setEncryptionType(EncryptionType encryptionType)
The encryption type used on the records.
|
void |
setEncryptionType(String encryptionType)
The encryption type used on the records.
|
void |
setFailedRecordCount(Integer failedRecordCount)
The number of unsuccessfully processed records in a
PutRecords request. |
void |
setRecords(Collection<PutRecordsResultEntry> records)
An array of successfully and unsuccessfully processed record results.
|
String |
toString()
Returns a string representation of this object.
|
PutRecordsResult |
withEncryptionType(EncryptionType encryptionType)
The encryption type used on the records.
|
PutRecordsResult |
withEncryptionType(String encryptionType)
The encryption type used on the records.
|
PutRecordsResult |
withFailedRecordCount(Integer failedRecordCount)
The number of unsuccessfully processed records in a
PutRecords request. |
PutRecordsResult |
withRecords(Collection<PutRecordsResultEntry> records)
An array of successfully and unsuccessfully processed record results.
|
PutRecordsResult |
withRecords(PutRecordsResultEntry... records)
An array of successfully and unsuccessfully processed record results.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setFailedRecordCount(Integer failedRecordCount)
The number of unsuccessfully processed records in a PutRecords
request.
failedRecordCount
- The number of unsuccessfully processed records in a PutRecords
request.public Integer getFailedRecordCount()
The number of unsuccessfully processed records in a PutRecords
request.
PutRecords
request.public PutRecordsResult withFailedRecordCount(Integer failedRecordCount)
The number of unsuccessfully processed records in a PutRecords
request.
failedRecordCount
- The number of unsuccessfully processed records in a PutRecords
request.public List<PutRecordsResultEntry> getRecords()
An array of successfully and unsuccessfully processed record results. A record that is successfully added to a
stream includes SequenceNumber
and ShardId
in the result. A record that fails to be
added to a stream includes ErrorCode
and ErrorMessage
in the result.
SequenceNumber
and ShardId
in the result. A record that
fails to be added to a stream includes ErrorCode
and ErrorMessage
in the
result.public void setRecords(Collection<PutRecordsResultEntry> records)
An array of successfully and unsuccessfully processed record results. A record that is successfully added to a
stream includes SequenceNumber
and ShardId
in the result. A record that fails to be
added to a stream includes ErrorCode
and ErrorMessage
in the result.
records
- An array of successfully and unsuccessfully processed record results. A record that is successfully added
to a stream includes SequenceNumber
and ShardId
in the result. A record that
fails to be added to a stream includes ErrorCode
and ErrorMessage
in the result.public PutRecordsResult withRecords(PutRecordsResultEntry... records)
An array of successfully and unsuccessfully processed record results. A record that is successfully added to a
stream includes SequenceNumber
and ShardId
in the result. A record that fails to be
added to a stream includes ErrorCode
and ErrorMessage
in the result.
NOTE: This method appends the values to the existing list (if any). Use
setRecords(java.util.Collection)
or withRecords(java.util.Collection)
if you want to override
the existing values.
records
- An array of successfully and unsuccessfully processed record results. A record that is successfully added
to a stream includes SequenceNumber
and ShardId
in the result. A record that
fails to be added to a stream includes ErrorCode
and ErrorMessage
in the result.public PutRecordsResult withRecords(Collection<PutRecordsResultEntry> records)
An array of successfully and unsuccessfully processed record results. A record that is successfully added to a
stream includes SequenceNumber
and ShardId
in the result. A record that fails to be
added to a stream includes ErrorCode
and ErrorMessage
in the result.
records
- An array of successfully and unsuccessfully processed record results. A record that is successfully added
to a stream includes SequenceNumber
and ShardId
in the result. A record that
fails to be added to a stream includes ErrorCode
and ErrorMessage
in the result.public void setEncryptionType(String encryptionType)
The encryption type used on the records. This parameter can be one of the following values:
NONE
: Do not encrypt the records.
KMS
: Use server-side encryption on the records using a customer-managed Amazon Web Services KMS key.
encryptionType
- The encryption type used on the records. This parameter can be one of the following values:
NONE
: Do not encrypt the records.
KMS
: Use server-side encryption on the records using a customer-managed Amazon Web Services
KMS key.
EncryptionType
public String getEncryptionType()
The encryption type used on the records. This parameter can be one of the following values:
NONE
: Do not encrypt the records.
KMS
: Use server-side encryption on the records using a customer-managed Amazon Web Services KMS key.
NONE
: Do not encrypt the records.
KMS
: Use server-side encryption on the records using a customer-managed Amazon Web Services
KMS key.
EncryptionType
public PutRecordsResult withEncryptionType(String encryptionType)
The encryption type used on the records. This parameter can be one of the following values:
NONE
: Do not encrypt the records.
KMS
: Use server-side encryption on the records using a customer-managed Amazon Web Services KMS key.
encryptionType
- The encryption type used on the records. This parameter can be one of the following values:
NONE
: Do not encrypt the records.
KMS
: Use server-side encryption on the records using a customer-managed Amazon Web Services
KMS key.
EncryptionType
public void setEncryptionType(EncryptionType encryptionType)
The encryption type used on the records. This parameter can be one of the following values:
NONE
: Do not encrypt the records.
KMS
: Use server-side encryption on the records using a customer-managed Amazon Web Services KMS key.
encryptionType
- The encryption type used on the records. This parameter can be one of the following values:
NONE
: Do not encrypt the records.
KMS
: Use server-side encryption on the records using a customer-managed Amazon Web Services
KMS key.
EncryptionType
public PutRecordsResult withEncryptionType(EncryptionType encryptionType)
The encryption type used on the records. This parameter can be one of the following values:
NONE
: Do not encrypt the records.
KMS
: Use server-side encryption on the records using a customer-managed Amazon Web Services KMS key.
encryptionType
- The encryption type used on the records. This parameter can be one of the following values:
NONE
: Do not encrypt the records.
KMS
: Use server-side encryption on the records using a customer-managed Amazon Web Services
KMS key.
EncryptionType
public String toString()
toString
in class Object
Object.toString()
public PutRecordsResult clone()
Copyright © 2024. All rights reserved.