@Generated(value="software.amazon.awssdk:codegen") public final class PutRecordsResponse extends KinesisResponse implements ToCopyableBuilder<PutRecordsResponse.Builder,PutRecordsResponse>
PutRecords
results.
Modifier and Type | Class and Description |
---|---|
static interface |
PutRecordsResponse.Builder |
Modifier and Type | Method and Description |
---|---|
static PutRecordsResponse.Builder |
builder() |
EncryptionType |
encryptionType()
The encryption type used on the records.
|
String |
encryptionTypeAsString()
The encryption type used on the records.
|
boolean |
equals(Object obj) |
Integer |
failedRecordCount()
The number of unsuccessfully processed records in a
PutRecords request. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkResponse . |
int |
hashCode() |
List<PutRecordsResultEntry> |
records()
An array of successfully and unsuccessfully processed record results, correlated with the request by natural
ordering.
|
static Class<? extends PutRecordsResponse.Builder> |
serializableBuilderClass() |
PutRecordsResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
sdkHttpResponse
copy
public Integer failedRecordCount()
The number of unsuccessfully processed records in a PutRecords
request.
PutRecords
request.public List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
SequenceNumber
and ShardId
in the result. A record that fails to be added to a stream includes
ErrorCode
and ErrorMessage
in the result.public 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.
If the service returns an enum value that is not available in the current SDK version, encryptionType
will return EncryptionType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from encryptionTypeAsString()
.
NONE
: Do not encrypt the records.
KMS
: Use server-side encryption on the records using a customer-managed AWS KMS key.
EncryptionType
public String encryptionTypeAsString()
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.
If the service returns an enum value that is not available in the current SDK version, encryptionType
will return EncryptionType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from encryptionTypeAsString()
.
NONE
: Do not encrypt the records.
KMS
: Use server-side encryption on the records using a customer-managed AWS KMS key.
EncryptionType
public PutRecordsResponse.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<PutRecordsResponse.Builder,PutRecordsResponse>
toBuilder
in class AwsResponse
public static PutRecordsResponse.Builder builder()
public static Class<? extends PutRecordsResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponse
SdkResponse
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkResponse
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.