@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateClusterRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateClusterRequest() |
Modifier and Type | Method and Description |
---|---|
CreateClusterRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
BackupRetentionPolicy |
getBackupRetentionPolicy()
A policy that defines how the service retains backups.
|
String |
getHsmType()
The type of HSM to use in the cluster.
|
String |
getMode()
The mode to use in the cluster.
|
String |
getSourceBackupId()
The identifier (ID) or the Amazon Resource Name (ARN) of the cluster backup to restore.
|
List<String> |
getSubnetIds()
The identifiers (IDs) of the subnets where you are creating the cluster.
|
List<Tag> |
getTagList()
Tags to apply to the CloudHSM cluster during creation.
|
int |
hashCode() |
void |
setBackupRetentionPolicy(BackupRetentionPolicy backupRetentionPolicy)
A policy that defines how the service retains backups.
|
void |
setHsmType(String hsmType)
The type of HSM to use in the cluster.
|
void |
setMode(String mode)
The mode to use in the cluster.
|
void |
setSourceBackupId(String sourceBackupId)
The identifier (ID) or the Amazon Resource Name (ARN) of the cluster backup to restore.
|
void |
setSubnetIds(Collection<String> subnetIds)
The identifiers (IDs) of the subnets where you are creating the cluster.
|
void |
setTagList(Collection<Tag> tagList)
Tags to apply to the CloudHSM cluster during creation.
|
String |
toString()
Returns a string representation of this object.
|
CreateClusterRequest |
withBackupRetentionPolicy(BackupRetentionPolicy backupRetentionPolicy)
A policy that defines how the service retains backups.
|
CreateClusterRequest |
withHsmType(String hsmType)
The type of HSM to use in the cluster.
|
CreateClusterRequest |
withMode(ClusterMode mode)
The mode to use in the cluster.
|
CreateClusterRequest |
withMode(String mode)
The mode to use in the cluster.
|
CreateClusterRequest |
withSourceBackupId(String sourceBackupId)
The identifier (ID) or the Amazon Resource Name (ARN) of the cluster backup to restore.
|
CreateClusterRequest |
withSubnetIds(Collection<String> subnetIds)
The identifiers (IDs) of the subnets where you are creating the cluster.
|
CreateClusterRequest |
withSubnetIds(String... subnetIds)
The identifiers (IDs) of the subnets where you are creating the cluster.
|
CreateClusterRequest |
withTagList(Collection<Tag> tagList)
Tags to apply to the CloudHSM cluster during creation.
|
CreateClusterRequest |
withTagList(Tag... tagList)
Tags to apply to the CloudHSM cluster during creation.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setBackupRetentionPolicy(BackupRetentionPolicy backupRetentionPolicy)
A policy that defines how the service retains backups.
backupRetentionPolicy
- A policy that defines how the service retains backups.public BackupRetentionPolicy getBackupRetentionPolicy()
A policy that defines how the service retains backups.
public CreateClusterRequest withBackupRetentionPolicy(BackupRetentionPolicy backupRetentionPolicy)
A policy that defines how the service retains backups.
backupRetentionPolicy
- A policy that defines how the service retains backups.public void setHsmType(String hsmType)
The type of HSM to use in the cluster. The allowed values are hsm1.medium
and
hsm2m.medium
.
hsmType
- The type of HSM to use in the cluster. The allowed values are hsm1.medium
and
hsm2m.medium
.public String getHsmType()
The type of HSM to use in the cluster. The allowed values are hsm1.medium
and
hsm2m.medium
.
hsm1.medium
and
hsm2m.medium
.public CreateClusterRequest withHsmType(String hsmType)
The type of HSM to use in the cluster. The allowed values are hsm1.medium
and
hsm2m.medium
.
hsmType
- The type of HSM to use in the cluster. The allowed values are hsm1.medium
and
hsm2m.medium
.public void setSourceBackupId(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.
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.public String getSourceBackupId()
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.
public CreateClusterRequest withSourceBackupId(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.
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.public List<String> getSubnetIds()
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.
All subnets must be in the same virtual private cloud (VPC).
You can specify only one subnet per Availability Zone.
public void setSubnetIds(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.
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.
public CreateClusterRequest withSubnetIds(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.
NOTE: This method appends the values to the existing list (if any). Use
setSubnetIds(java.util.Collection)
or withSubnetIds(java.util.Collection)
if you want to
override the existing values.
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.
public CreateClusterRequest withSubnetIds(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.
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.
public List<Tag> getTagList()
Tags to apply to the CloudHSM cluster during creation.
public void setTagList(Collection<Tag> tagList)
Tags to apply to the CloudHSM cluster during creation.
tagList
- Tags to apply to the CloudHSM cluster during creation.public CreateClusterRequest withTagList(Tag... tagList)
Tags to apply to the CloudHSM cluster during creation.
NOTE: This method appends the values to the existing list (if any). Use
setTagList(java.util.Collection)
or withTagList(java.util.Collection)
if you want to override
the existing values.
tagList
- Tags to apply to the CloudHSM cluster during creation.public CreateClusterRequest withTagList(Collection<Tag> tagList)
Tags to apply to the CloudHSM cluster during creation.
tagList
- Tags to apply to the CloudHSM cluster during creation.public void setMode(String mode)
The mode to use in the cluster. The allowed values are FIPS
and NON_FIPS
.
mode
- The mode to use in the cluster. The allowed values are FIPS
and NON_FIPS
.ClusterMode
public String getMode()
The mode to use in the cluster. The allowed values are FIPS
and NON_FIPS
.
FIPS
and NON_FIPS
.ClusterMode
public CreateClusterRequest withMode(String mode)
The mode to use in the cluster. The allowed values are FIPS
and NON_FIPS
.
mode
- The mode to use in the cluster. The allowed values are FIPS
and NON_FIPS
.ClusterMode
public CreateClusterRequest withMode(ClusterMode mode)
The mode to use in the cluster. The allowed values are FIPS
and NON_FIPS
.
mode
- The mode to use in the cluster. The allowed values are FIPS
and NON_FIPS
.ClusterMode
public String toString()
toString
in class Object
Object.toString()
public CreateClusterRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()