Class RestoreTableRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.keyspaces.model.KeyspacesRequest
-
- software.amazon.awssdk.services.keyspaces.model.RestoreTableRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<RestoreTableRequest.Builder,RestoreTableRequest>
@Generated("software.amazon.awssdk:codegen") public final class RestoreTableRequest extends KeyspacesRequest implements ToCopyableBuilder<RestoreTableRequest.Builder,RestoreTableRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRestoreTableRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AutoScalingSpecificationautoScalingSpecification()The optional auto scaling settings for the restored table in provisioned capacity mode.static RestoreTableRequest.Builderbuilder()CapacitySpecificationcapacitySpecificationOverride()Specifies the read/write throughput capacity mode for the target table.EncryptionSpecificationencryptionSpecificationOverride()Specifies the encryption settings for the target table.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasReplicaSpecifications()For responses, this returns true if the service returned a value for the ReplicaSpecifications property.booleanhasTagsOverride()For responses, this returns true if the service returned a value for the TagsOverride property.PointInTimeRecoverypointInTimeRecoveryOverride()Specifies thepointInTimeRecoverysettings for the target table.List<ReplicaSpecification>replicaSpecifications()The optional Region specific settings of a multi-Regional table.InstantrestoreTimestamp()The restore timestamp in ISO 8601 format.List<SdkField<?>>sdkFields()static Class<? extends RestoreTableRequest.Builder>serializableBuilderClass()StringsourceKeyspaceName()The keyspace name of the source table.StringsourceTableName()The name of the source table.List<Tag>tagsOverride()A list of key-value pair tags to be attached to the restored table.StringtargetKeyspaceName()The name of the target keyspace.StringtargetTableName()The name of the target table.RestoreTableRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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
-
sourceKeyspaceName
public final String sourceKeyspaceName()
The keyspace name of the source table.
- Returns:
- The keyspace name of the source table.
-
sourceTableName
public final String sourceTableName()
The name of the source table.
- Returns:
- The name of the source table.
-
targetKeyspaceName
public final String targetKeyspaceName()
The name of the target keyspace.
- Returns:
- The name of the target keyspace.
-
targetTableName
public final String targetTableName()
The name of the target table.
- Returns:
- The name of the target table.
-
restoreTimestamp
public final Instant restoreTimestamp()
The restore timestamp in ISO 8601 format.
- Returns:
- The restore timestamp in ISO 8601 format.
-
capacitySpecificationOverride
public final CapacitySpecification capacitySpecificationOverride()
Specifies the read/write throughput capacity mode for the target table. The options are:
-
throughputMode:PAY_PER_REQUEST -
throughputMode:PROVISIONED- Provisioned capacity mode requiresreadCapacityUnitsandwriteCapacityUnitsas input.
The default is
throughput_mode:PAY_PER_REQUEST.For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide.
- Returns:
- Specifies the read/write throughput capacity mode for the target table. The options are:
-
throughputMode:PAY_PER_REQUEST -
throughputMode:PROVISIONED- Provisioned capacity mode requiresreadCapacityUnitsandwriteCapacityUnitsas input.
The default is
throughput_mode:PAY_PER_REQUEST.For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide.
-
-
-
encryptionSpecificationOverride
public final EncryptionSpecification encryptionSpecificationOverride()
Specifies the encryption settings for the target table. You can choose one of the following KMS key (KMS key):
-
type:AWS_OWNED_KMS_KEY- This key is owned by Amazon Keyspaces. -
type:CUSTOMER_MANAGED_KMS_KEY- This key is stored in your account and is created, owned, and managed by you. This option requires thekms_key_identifierof the KMS key in Amazon Resource Name (ARN) format as input.
The default is
type:AWS_OWNED_KMS_KEY.For more information, see Encryption at rest in the Amazon Keyspaces Developer Guide.
- Returns:
- Specifies the encryption settings for the target table. You can choose one of the following KMS key (KMS
key):
-
type:AWS_OWNED_KMS_KEY- This key is owned by Amazon Keyspaces. -
type:CUSTOMER_MANAGED_KMS_KEY- This key is stored in your account and is created, owned, and managed by you. This option requires thekms_key_identifierof the KMS key in Amazon Resource Name (ARN) format as input.
The default is
type:AWS_OWNED_KMS_KEY.For more information, see Encryption at rest in the Amazon Keyspaces Developer Guide.
-
-
-
pointInTimeRecoveryOverride
public final PointInTimeRecovery pointInTimeRecoveryOverride()
Specifies the
pointInTimeRecoverysettings for the target table. The options are:-
status=ENABLED -
status=DISABLED
If it's not specified, the default is
status=DISABLED.For more information, see Point-in-time recovery in the Amazon Keyspaces Developer Guide.
- Returns:
- Specifies the
pointInTimeRecoverysettings for the target table. The options are:-
status=ENABLED -
status=DISABLED
If it's not specified, the default is
status=DISABLED.For more information, see Point-in-time recovery in the Amazon Keyspaces Developer Guide.
-
-
-
hasTagsOverride
public final boolean hasTagsOverride()
For responses, this returns true if the service returned a value for the TagsOverride property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
tagsOverride
public final List<Tag> tagsOverride()
A list of key-value pair tags to be attached to the restored table.
For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTagsOverride()method.- Returns:
- A list of key-value pair tags to be attached to the restored table.
For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.
-
autoScalingSpecification
public final AutoScalingSpecification autoScalingSpecification()
The optional auto scaling settings for the restored table in provisioned capacity mode. Specifies if the service can manage throughput capacity of a provisioned table automatically on your behalf. Amazon Keyspaces auto scaling helps you provision throughput capacity for variable workloads efficiently by increasing and decreasing your table's read and write capacity automatically in response to application traffic.
For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide.
- Returns:
- The optional auto scaling settings for the restored table in provisioned capacity mode. Specifies if the
service can manage throughput capacity of a provisioned table automatically on your behalf. Amazon
Keyspaces auto scaling helps you provision throughput capacity for variable workloads efficiently by
increasing and decreasing your table's read and write capacity automatically in response to application
traffic.
For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide.
-
hasReplicaSpecifications
public final boolean hasReplicaSpecifications()
For responses, this returns true if the service returned a value for the ReplicaSpecifications property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
replicaSpecifications
public final List<ReplicaSpecification> replicaSpecifications()
The optional Region specific settings of a multi-Regional table.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasReplicaSpecifications()method.- Returns:
- The optional Region specific settings of a multi-Regional table.
-
toBuilder
public RestoreTableRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RestoreTableRequest.Builder,RestoreTableRequest>- Specified by:
toBuilderin classKeyspacesRequest
-
builder
public static RestoreTableRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends RestoreTableRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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 classSdkRequest
-
-