public class PutRecordsResult
extends java.lang.Object
implements java.io.Serializable
PutRecords
results.
Constructor and Description |
---|
PutRecordsResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getEncryptionType()
The encryption type used on the records.
|
java.lang.Integer |
getFailedRecordCount()
The number of unsuccessfully processed records in a
PutRecords request. |
java.util.List<PutRecordsResultEntry> |
getRecords()
An array of successfully and unsuccessfully processed record results,
correlated with the request by natural ordering.
|
int |
hashCode() |
void |
setEncryptionType(EncryptionType encryptionType)
The encryption type used on the records.
|
void |
setEncryptionType(java.lang.String encryptionType)
The encryption type used on the records.
|
void |
setFailedRecordCount(java.lang.Integer failedRecordCount)
The number of unsuccessfully processed records in a
PutRecords request. |
void |
setRecords(java.util.Collection<PutRecordsResultEntry> records)
An array of successfully and unsuccessfully processed record results,
correlated with the request by natural ordering.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutRecordsResult |
withEncryptionType(EncryptionType encryptionType)
The encryption type used on the records.
|
PutRecordsResult |
withEncryptionType(java.lang.String encryptionType)
The encryption type used on the records.
|
PutRecordsResult |
withFailedRecordCount(java.lang.Integer failedRecordCount)
The number of unsuccessfully processed records in a
PutRecords request. |
PutRecordsResult |
withRecords(java.util.Collection<PutRecordsResultEntry> records)
An array of successfully and unsuccessfully processed record results,
correlated with the request by natural ordering.
|
PutRecordsResult |
withRecords(PutRecordsResultEntry... records)
An array of successfully and unsuccessfully processed record results,
correlated with the request by natural ordering.
|
public java.lang.Integer getFailedRecordCount()
The number of unsuccessfully processed records in a
PutRecords
request.
Constraints:
Range: 1 - 100000
The number of unsuccessfully processed records in a
PutRecords
request.
public void setFailedRecordCount(java.lang.Integer failedRecordCount)
The number of unsuccessfully processed records in a
PutRecords
request.
Constraints:
Range: 1 - 100000
failedRecordCount
-
The number of unsuccessfully processed records in a
PutRecords
request.
public PutRecordsResult withFailedRecordCount(java.lang.Integer failedRecordCount)
The number of unsuccessfully processed records in a
PutRecords
request.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 100000
failedRecordCount
-
The number of unsuccessfully processed records in a
PutRecords
request.
public java.util.List<PutRecordsResultEntry> getRecords()
An array of successfully and unsuccessfully processed record results,
correlated with the request by natural ordering. 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.
An array of successfully and unsuccessfully processed record
results, correlated with the request by natural ordering. 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 setRecords(java.util.Collection<PutRecordsResultEntry> records)
An array of successfully and unsuccessfully processed record results,
correlated with the request by natural ordering. 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, correlated with the request by natural ordering. 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,
correlated with the request by natural ordering. 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.
Returns a reference to this object so that method calls can be chained together.
records
-
An array of successfully and unsuccessfully processed record
results, correlated with the request by natural ordering. 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(java.util.Collection<PutRecordsResultEntry> records)
An array of successfully and unsuccessfully processed record results,
correlated with the request by natural ordering. 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.
Returns a reference to this object so that method calls can be chained together.
records
-
An array of successfully and unsuccessfully processed record
results, correlated with the request by natural ordering. 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 java.lang.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 AWS KMS key.
Constraints:
Allowed Values: NONE, KMS
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 AWS KMS key.
EncryptionType
public void setEncryptionType(java.lang.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 AWS KMS key.
Constraints:
Allowed Values: NONE, KMS
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 AWS KMS key.
EncryptionType
public PutRecordsResult withEncryptionType(java.lang.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 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 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 AWS 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 AWS KMS key.
Constraints:
Allowed Values: NONE, KMS
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 AWS 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 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 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 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.