Interface CreateClusterRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CloudHsmV2Request.Builder
,CopyableBuilder<CreateClusterRequest.Builder,
,CreateClusterRequest> SdkBuilder<CreateClusterRequest.Builder,
,CreateClusterRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateClusterRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateClusterRequest.Builder
backupRetentionPolicy
(Consumer<BackupRetentionPolicy.Builder> backupRetentionPolicy) A policy that defines how the service retains backups.backupRetentionPolicy
(BackupRetentionPolicy backupRetentionPolicy) A policy that defines how the service retains backups.The type of HSM to use in the cluster.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.sourceBackupId
(String sourceBackupId) The identifier (ID) of the cluster backup to restore.The identifiers (IDs) of the subnets where you are creating the cluster.subnetIds
(Collection<String> subnetIds) The identifiers (IDs) of the subnets where you are creating the cluster.tagList
(Collection<Tag> tagList) Tags to apply to the CloudHSM cluster during creation.tagList
(Consumer<Tag.Builder>... tagList) Tags to apply to the CloudHSM cluster during creation.Tags to apply to the CloudHSM cluster during creation.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.cloudhsmv2.model.CloudHsmV2Request.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
backupRetentionPolicy
A policy that defines how the service retains backups.
- Parameters:
backupRetentionPolicy
- A policy that defines how the service retains backups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
backupRetentionPolicy
default CreateClusterRequest.Builder backupRetentionPolicy(Consumer<BackupRetentionPolicy.Builder> backupRetentionPolicy) A policy that defines how the service retains backups.
This is a convenience method that creates an instance of theBackupRetentionPolicy.Builder
avoiding the need to create one manually viaBackupRetentionPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobackupRetentionPolicy(BackupRetentionPolicy)
.- Parameters:
backupRetentionPolicy
- a consumer that will call methods onBackupRetentionPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
hsmType
The type of HSM to use in the cluster. Currently the only allowed value is
hsm1.medium
.- Parameters:
hsmType
- The type of HSM to use in the cluster. Currently the only allowed value ishsm1.medium
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceBackupId
The identifier (ID) of the cluster backup to restore. Use this value to restore the cluster from a backup instead of creating a new cluster. To find the backup ID, use DescribeBackups.
- Parameters:
sourceBackupId
- The identifier (ID) of the cluster backup to restore. Use this value to restore the cluster from a backup instead of creating a new cluster. To find the backup ID, use DescribeBackups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetIds
The identifiers (IDs) of the subnets where you are creating the cluster. You must specify at least one subnet. If you specify multiple subnets, they must meet the following criteria:
-
All subnets must be in the same virtual private cloud (VPC).
-
You can specify only one subnet per Availability Zone.
- Parameters:
subnetIds
- The identifiers (IDs) of the subnets where you are creating the cluster. You must specify at least one subnet. If you specify multiple subnets, they must meet the following criteria:-
All subnets must be in the same virtual private cloud (VPC).
-
You can specify only one subnet per Availability Zone.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
subnetIds
The identifiers (IDs) of the subnets where you are creating the cluster. You must specify at least one subnet. If you specify multiple subnets, they must meet the following criteria:
-
All subnets must be in the same virtual private cloud (VPC).
-
You can specify only one subnet per Availability Zone.
- Parameters:
subnetIds
- The identifiers (IDs) of the subnets where you are creating the cluster. You must specify at least one subnet. If you specify multiple subnets, they must meet the following criteria:-
All subnets must be in the same virtual private cloud (VPC).
-
You can specify only one subnet per Availability Zone.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
tagList
Tags to apply to the CloudHSM cluster during creation.
- Parameters:
tagList
- Tags to apply to the CloudHSM cluster during creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagList
Tags to apply to the CloudHSM cluster during creation.
- Parameters:
tagList
- Tags to apply to the CloudHSM cluster during creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagList
Tags to apply to the CloudHSM cluster during creation.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totagList(List<Tag>)
.- Parameters:
tagList
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateClusterRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateClusterRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-