Class PutRecordsResultEntry
- java.lang.Object
-
- software.amazon.awssdk.services.kinesis.model.PutRecordsResultEntry
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PutRecordsResultEntry.Builder,PutRecordsResultEntry>
@Generated("software.amazon.awssdk:codegen") public final class PutRecordsResultEntry extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PutRecordsResultEntry.Builder,PutRecordsResultEntry>
Represents the result of an individual record from a
PutRecordsrequest. A record that is successfully added to a stream includesSequenceNumberandShardIdin the result. A record that fails to be added to the stream includesErrorCodeandErrorMessagein the result.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePutRecordsResultEntry.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PutRecordsResultEntry.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringerrorCode()The error code for an individual record result.StringerrorMessage()The error message for an individual record result.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()StringsequenceNumber()The sequence number for an individual record result.static Class<? extends PutRecordsResultEntry.Builder>serializableBuilderClass()StringshardId()The shard ID for an individual record result.PutRecordsResultEntry.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
sequenceNumber
public final String sequenceNumber()
The sequence number for an individual record result.
- Returns:
- The sequence number for an individual record result.
-
shardId
public final String shardId()
The shard ID for an individual record result.
- Returns:
- The shard ID for an individual record result.
-
errorCode
public final String errorCode()
The error code for an individual record result.
ErrorCodescan be eitherProvisionedThroughputExceededExceptionorInternalFailure.- Returns:
- The error code for an individual record result.
ErrorCodescan be eitherProvisionedThroughputExceededExceptionorInternalFailure.
-
errorMessage
public final String errorMessage()
The error message for an individual record result. An
ErrorCodevalue ofProvisionedThroughputExceededExceptionhas an error message that includes the account ID, stream name, and shard ID. AnErrorCodevalue ofInternalFailurehas the error message"Internal Service Failure".- Returns:
- The error message for an individual record result. An
ErrorCodevalue ofProvisionedThroughputExceededExceptionhas an error message that includes the account ID, stream name, and shard ID. AnErrorCodevalue ofInternalFailurehas the error message"Internal Service Failure".
-
toBuilder
public PutRecordsResultEntry.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PutRecordsResultEntry.Builder,PutRecordsResultEntry>
-
builder
public static PutRecordsResultEntry.Builder builder()
-
serializableBuilderClass
public static Class<? extends PutRecordsResultEntry.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-