Class PutRecordResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.kinesis.model.KinesisResponse
-
- software.amazon.awssdk.services.kinesis.model.PutRecordResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<PutRecordResponse.Builder,PutRecordResponse>
@Generated("software.amazon.awssdk:codegen") public final class PutRecordResponse extends KinesisResponse implements ToCopyableBuilder<PutRecordResponse.Builder,PutRecordResponse>
Represents the output for
PutRecord.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePutRecordResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PutRecordResponse.Builderbuilder()EncryptionTypeencryptionType()The encryption type to use on the record.StringencryptionTypeAsString()The encryption type to use on the record.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()StringsequenceNumber()The sequence number identifier that was assigned to the put data record.static Class<? extends PutRecordResponse.Builder>serializableBuilderClass()StringshardId()The shard ID of the shard where the data record was placed.PutRecordResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.services.kinesis.model.KinesisResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
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
-
shardId
public final String shardId()
The shard ID of the shard where the data record was placed.
- Returns:
- The shard ID of the shard where the data record was placed.
-
sequenceNumber
public final String sequenceNumber()
The sequence number identifier that was assigned to the put data record. The sequence number for the record is unique across all records in the stream. A sequence number is the identifier associated with every record put into the stream.
- Returns:
- The sequence number identifier that was assigned to the put data record. The sequence number for the record is unique across all records in the stream. A sequence number is the identifier associated with every record put into the stream.
-
encryptionType
public final EncryptionType encryptionType()
The encryption type to use on the record. This parameter can be one of the following values:
-
NONE: Do not encrypt the records in the stream. -
KMS: Use server-side encryption on the records in the stream using a customer-managed Amazon Web Services KMS key.
If the service returns an enum value that is not available in the current SDK version,
encryptionTypewill returnEncryptionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromencryptionTypeAsString().- Returns:
- The encryption type to use on the record. This parameter can be one of the following values:
-
NONE: Do not encrypt the records in the stream. -
KMS: Use server-side encryption on the records in the stream using a customer-managed Amazon Web Services KMS key.
-
- See Also:
EncryptionType
-
-
encryptionTypeAsString
public final String encryptionTypeAsString()
The encryption type to use on the record. This parameter can be one of the following values:
-
NONE: Do not encrypt the records in the stream. -
KMS: Use server-side encryption on the records in the stream using a customer-managed Amazon Web Services KMS key.
If the service returns an enum value that is not available in the current SDK version,
encryptionTypewill returnEncryptionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromencryptionTypeAsString().- Returns:
- The encryption type to use on the record. This parameter can be one of the following values:
-
NONE: Do not encrypt the records in the stream. -
KMS: Use server-side encryption on the records in the stream using a customer-managed Amazon Web Services KMS key.
-
- See Also:
EncryptionType
-
-
toBuilder
public PutRecordResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PutRecordResponse.Builder,PutRecordResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static PutRecordResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends PutRecordResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-