Interface CreateClusterRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudHsmV2Request.Builder,CopyableBuilder<CreateClusterRequest.Builder,CreateClusterRequest>,SdkBuilder<CreateClusterRequest.Builder,CreateClusterRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateClusterRequest
public static interface CreateClusterRequest.Builder extends CloudHsmV2Request.Builder, SdkPojo, CopyableBuilder<CreateClusterRequest.Builder,CreateClusterRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CreateClusterRequest.BuilderbackupRetentionPolicy(Consumer<BackupRetentionPolicy.Builder> backupRetentionPolicy)A policy that defines how the service retains backups.CreateClusterRequest.BuilderbackupRetentionPolicy(BackupRetentionPolicy backupRetentionPolicy)A policy that defines how the service retains backups.CreateClusterRequest.BuilderhsmType(String hsmType)The type of HSM to use in the cluster.CreateClusterRequest.Buildermode(String mode)The mode to use in the cluster.CreateClusterRequest.Buildermode(ClusterMode mode)The mode to use in the cluster.CreateClusterRequest.BuildernetworkType(String networkType)The NetworkType to create a cluster with.CreateClusterRequest.BuildernetworkType(NetworkType networkType)The NetworkType to create a cluster with.CreateClusterRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateClusterRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateClusterRequest.BuildersourceBackupId(String sourceBackupId)The identifier (ID) or the Amazon Resource Name (ARN) of the cluster backup to restore.CreateClusterRequest.BuildersubnetIds(String... subnetIds)The identifiers (IDs) of the subnets where you are creating the cluster.CreateClusterRequest.BuildersubnetIds(Collection<String> subnetIds)The identifiers (IDs) of the subnets where you are creating the cluster.CreateClusterRequest.BuildertagList(Collection<Tag> tagList)Tags to apply to the CloudHSM cluster during creation.CreateClusterRequest.BuildertagList(Consumer<Tag.Builder>... tagList)Tags to apply to the CloudHSM cluster during creation.CreateClusterRequest.BuildertagList(Tag... tagList)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
backupRetentionPolicy
CreateClusterRequest.Builder backupRetentionPolicy(BackupRetentionPolicy 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.Builderavoiding the need to create one manually viaBackupRetentionPolicy.builder().When the
Consumercompletes,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:
backupRetentionPolicy(BackupRetentionPolicy)
-
hsmType
CreateClusterRequest.Builder hsmType(String hsmType)
The type of HSM to use in the cluster. The allowed values are
hsm1.mediumandhsm2m.medium.- Parameters:
hsmType- The type of HSM to use in the cluster. The allowed values arehsm1.mediumandhsm2m.medium.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceBackupId
CreateClusterRequest.Builder sourceBackupId(String sourceBackupId)
The identifier (ID) or the Amazon Resource Name (ARN) 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 or ARN, use DescribeBackups. If using a backup in another account, the full ARN must be supplied.
- Parameters:
sourceBackupId- The identifier (ID) or the Amazon Resource Name (ARN) 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 or ARN, use DescribeBackups. If using a backup in another account, the full ARN must be supplied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetIds
CreateClusterRequest.Builder subnetIds(Collection<String> 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
CreateClusterRequest.Builder subnetIds(String... 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.
-
-
networkType
CreateClusterRequest.Builder networkType(String networkType)
The NetworkType to create a cluster with. The allowed values are
IPV4andDUALSTACK.- Parameters:
networkType- The NetworkType to create a cluster with. The allowed values areIPV4andDUALSTACK.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
NetworkType,NetworkType
-
networkType
CreateClusterRequest.Builder networkType(NetworkType networkType)
The NetworkType to create a cluster with. The allowed values are
IPV4andDUALSTACK.- Parameters:
networkType- The NetworkType to create a cluster with. The allowed values areIPV4andDUALSTACK.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
NetworkType,NetworkType
-
tagList
CreateClusterRequest.Builder tagList(Collection<Tag> 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
CreateClusterRequest.Builder tagList(Tag... 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
CreateClusterRequest.Builder tagList(Consumer<Tag.Builder>... tagList)
Tags to apply to the CloudHSM cluster during creation.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tagList(List.) - 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:
#tagList(java.util.Collection)
-
mode
CreateClusterRequest.Builder mode(String mode)
The mode to use in the cluster. The allowed values are
FIPSandNON_FIPS.- Parameters:
mode- The mode to use in the cluster. The allowed values areFIPSandNON_FIPS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ClusterMode,ClusterMode
-
mode
CreateClusterRequest.Builder mode(ClusterMode mode)
The mode to use in the cluster. The allowed values are
FIPSandNON_FIPS.- Parameters:
mode- The mode to use in the cluster. The allowed values areFIPSandNON_FIPS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ClusterMode,ClusterMode
-
overrideConfiguration
CreateClusterRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateClusterRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-