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 interface
PutRecordResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PutRecordResponse.Builder
builder()
EncryptionType
encryptionType()
The encryption type to use on the record.String
encryptionTypeAsString()
The encryption type to use on the record.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
List<SdkField<?>>
sdkFields()
String
sequenceNumber()
The sequence number identifier that was assigned to the put data record.static Class<? extends PutRecordResponse.Builder>
serializableBuilderClass()
String
shardId()
The shard ID of the shard where the data record was placed.PutRecordResponse.Builder
toBuilder()
String
toString()
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,
encryptionType
will 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,
encryptionType
will 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:
toBuilder
in interfaceToCopyableBuilder<PutRecordResponse.Builder,PutRecordResponse>
- Specified by:
toBuilder
in classAwsResponse
-
builder
public static PutRecordResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends PutRecordResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equals
in classAwsResponse
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForField
in classSdkResponse
-
-