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
PutRecords
request. A record that is successfully added to a stream includesSequenceNumber
andShardId
in the result. A record that fails to be added to the stream includesErrorCode
andErrorMessage
in the result.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PutRecordsResultEntry.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PutRecordsResultEntry.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
String
errorCode()
The error code for an individual record result.String
errorMessage()
The error message for an individual record result.<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
List<SdkField<?>>
sdkFields()
String
sequenceNumber()
The sequence number for an individual record result.static Class<? extends PutRecordsResultEntry.Builder>
serializableBuilderClass()
String
shardId()
The shard ID for an individual record result.PutRecordsResultEntry.Builder
toBuilder()
String
toString()
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.
ErrorCodes
can be eitherProvisionedThroughputExceededException
orInternalFailure
.- Returns:
- The error code for an individual record result.
ErrorCodes
can be eitherProvisionedThroughputExceededException
orInternalFailure
.
-
errorMessage
public final String errorMessage()
The error message for an individual record result. An
ErrorCode
value ofProvisionedThroughputExceededException
has an error message that includes the account ID, stream name, and shard ID. AnErrorCode
value ofInternalFailure
has the error message"Internal Service Failure"
.- Returns:
- The error message for an individual record result. An
ErrorCode
value ofProvisionedThroughputExceededException
has an error message that includes the account ID, stream name, and shard ID. AnErrorCode
value ofInternalFailure
has the error message"Internal Service Failure"
.
-
toBuilder
public PutRecordsResultEntry.Builder toBuilder()
- Specified by:
toBuilder
in 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:
equalsBySdkFields
in 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.
-
-