@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Cluster extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about an CloudHSM cluster.
Constructor and Description |
---|
Cluster() |
Modifier and Type | Method and Description |
---|---|
Cluster |
addSubnetMappingEntry(String key,
String value)
Add a single SubnetMapping entry
|
Cluster |
clearSubnetMappingEntries()
Removes all the entries added into SubnetMapping.
|
Cluster |
clone() |
boolean |
equals(Object obj) |
String |
getBackupPolicy()
The cluster's backup policy.
|
BackupRetentionPolicy |
getBackupRetentionPolicy()
A policy that defines how the service retains backups.
|
Certificates |
getCertificates()
Contains one or more certificates or a certificate signing request (CSR).
|
String |
getClusterId()
The cluster's identifier (ID).
|
Date |
getCreateTimestamp()
The date and time when the cluster was created.
|
List<Hsm> |
getHsms()
Contains information about the HSMs in the cluster.
|
String |
getHsmType()
The type of HSM that the cluster contains.
|
String |
getMode()
The mode of the cluster.
|
String |
getPreCoPassword()
The default password for the cluster's Pre-Crypto Officer (PRECO) user.
|
String |
getSecurityGroup()
The identifier (ID) of the cluster's security group.
|
String |
getSourceBackupId()
The identifier (ID) of the backup used to create the cluster.
|
String |
getState()
The cluster's state.
|
String |
getStateMessage()
A description of the cluster's state.
|
Map<String,String> |
getSubnetMapping()
A map from availability zone to the cluster’s subnet in that availability zone.
|
List<Tag> |
getTagList()
The list of tags for the cluster.
|
String |
getVpcId()
The identifier (ID) of the virtual private cloud (VPC) that contains the cluster.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBackupPolicy(String backupPolicy)
The cluster's backup policy.
|
void |
setBackupRetentionPolicy(BackupRetentionPolicy backupRetentionPolicy)
A policy that defines how the service retains backups.
|
void |
setCertificates(Certificates certificates)
Contains one or more certificates or a certificate signing request (CSR).
|
void |
setClusterId(String clusterId)
The cluster's identifier (ID).
|
void |
setCreateTimestamp(Date createTimestamp)
The date and time when the cluster was created.
|
void |
setHsms(Collection<Hsm> hsms)
Contains information about the HSMs in the cluster.
|
void |
setHsmType(String hsmType)
The type of HSM that the cluster contains.
|
void |
setMode(String mode)
The mode of the cluster.
|
void |
setPreCoPassword(String preCoPassword)
The default password for the cluster's Pre-Crypto Officer (PRECO) user.
|
void |
setSecurityGroup(String securityGroup)
The identifier (ID) of the cluster's security group.
|
void |
setSourceBackupId(String sourceBackupId)
The identifier (ID) of the backup used to create the cluster.
|
void |
setState(String state)
The cluster's state.
|
void |
setStateMessage(String stateMessage)
A description of the cluster's state.
|
void |
setSubnetMapping(Map<String,String> subnetMapping)
A map from availability zone to the cluster’s subnet in that availability zone.
|
void |
setTagList(Collection<Tag> tagList)
The list of tags for the cluster.
|
void |
setVpcId(String vpcId)
The identifier (ID) of the virtual private cloud (VPC) that contains the cluster.
|
String |
toString()
Returns a string representation of this object.
|
Cluster |
withBackupPolicy(BackupPolicy backupPolicy)
The cluster's backup policy.
|
Cluster |
withBackupPolicy(String backupPolicy)
The cluster's backup policy.
|
Cluster |
withBackupRetentionPolicy(BackupRetentionPolicy backupRetentionPolicy)
A policy that defines how the service retains backups.
|
Cluster |
withCertificates(Certificates certificates)
Contains one or more certificates or a certificate signing request (CSR).
|
Cluster |
withClusterId(String clusterId)
The cluster's identifier (ID).
|
Cluster |
withCreateTimestamp(Date createTimestamp)
The date and time when the cluster was created.
|
Cluster |
withHsms(Collection<Hsm> hsms)
Contains information about the HSMs in the cluster.
|
Cluster |
withHsms(Hsm... hsms)
Contains information about the HSMs in the cluster.
|
Cluster |
withHsmType(String hsmType)
The type of HSM that the cluster contains.
|
Cluster |
withMode(ClusterMode mode)
The mode of the cluster.
|
Cluster |
withMode(String mode)
The mode of the cluster.
|
Cluster |
withPreCoPassword(String preCoPassword)
The default password for the cluster's Pre-Crypto Officer (PRECO) user.
|
Cluster |
withSecurityGroup(String securityGroup)
The identifier (ID) of the cluster's security group.
|
Cluster |
withSourceBackupId(String sourceBackupId)
The identifier (ID) of the backup used to create the cluster.
|
Cluster |
withState(ClusterState state)
The cluster's state.
|
Cluster |
withState(String state)
The cluster's state.
|
Cluster |
withStateMessage(String stateMessage)
A description of the cluster's state.
|
Cluster |
withSubnetMapping(Map<String,String> subnetMapping)
A map from availability zone to the cluster’s subnet in that availability zone.
|
Cluster |
withTagList(Collection<Tag> tagList)
The list of tags for the cluster.
|
Cluster |
withTagList(Tag... tagList)
The list of tags for the cluster.
|
Cluster |
withVpcId(String vpcId)
The identifier (ID) of the virtual private cloud (VPC) that contains the cluster.
|
public void setBackupPolicy(String backupPolicy)
The cluster's backup policy.
backupPolicy
- The cluster's backup policy.BackupPolicy
public String getBackupPolicy()
The cluster's backup policy.
BackupPolicy
public Cluster withBackupPolicy(String backupPolicy)
The cluster's backup policy.
backupPolicy
- The cluster's backup policy.BackupPolicy
public Cluster withBackupPolicy(BackupPolicy backupPolicy)
The cluster's backup policy.
backupPolicy
- The cluster's backup policy.BackupPolicy
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 Cluster withBackupRetentionPolicy(BackupRetentionPolicy backupRetentionPolicy)
A policy that defines how the service retains backups.
backupRetentionPolicy
- A policy that defines how the service retains backups.public void setClusterId(String clusterId)
The cluster's identifier (ID).
clusterId
- The cluster's identifier (ID).public String getClusterId()
The cluster's identifier (ID).
public Cluster withClusterId(String clusterId)
The cluster's identifier (ID).
clusterId
- The cluster's identifier (ID).public void setCreateTimestamp(Date createTimestamp)
The date and time when the cluster was created.
createTimestamp
- The date and time when the cluster was created.public Date getCreateTimestamp()
The date and time when the cluster was created.
public Cluster withCreateTimestamp(Date createTimestamp)
The date and time when the cluster was created.
createTimestamp
- The date and time when the cluster was created.public List<Hsm> getHsms()
Contains information about the HSMs in the cluster.
public void setHsms(Collection<Hsm> hsms)
Contains information about the HSMs in the cluster.
hsms
- Contains information about the HSMs in the cluster.public Cluster withHsms(Hsm... hsms)
Contains information about the HSMs in the cluster.
NOTE: This method appends the values to the existing list (if any). Use
setHsms(java.util.Collection)
or withHsms(java.util.Collection)
if you want to override the
existing values.
hsms
- Contains information about the HSMs in the cluster.public Cluster withHsms(Collection<Hsm> hsms)
Contains information about the HSMs in the cluster.
hsms
- Contains information about the HSMs in the cluster.public void setHsmType(String hsmType)
The type of HSM that the cluster contains.
hsmType
- The type of HSM that the cluster contains.public String getHsmType()
The type of HSM that the cluster contains.
public Cluster withHsmType(String hsmType)
The type of HSM that the cluster contains.
hsmType
- The type of HSM that the cluster contains.public void setPreCoPassword(String preCoPassword)
The default password for the cluster's Pre-Crypto Officer (PRECO) user.
preCoPassword
- The default password for the cluster's Pre-Crypto Officer (PRECO) user.public String getPreCoPassword()
The default password for the cluster's Pre-Crypto Officer (PRECO) user.
public Cluster withPreCoPassword(String preCoPassword)
The default password for the cluster's Pre-Crypto Officer (PRECO) user.
preCoPassword
- The default password for the cluster's Pre-Crypto Officer (PRECO) user.public void setSecurityGroup(String securityGroup)
The identifier (ID) of the cluster's security group.
securityGroup
- The identifier (ID) of the cluster's security group.public String getSecurityGroup()
The identifier (ID) of the cluster's security group.
public Cluster withSecurityGroup(String securityGroup)
The identifier (ID) of the cluster's security group.
securityGroup
- The identifier (ID) of the cluster's security group.public void setSourceBackupId(String sourceBackupId)
The identifier (ID) of the backup used to create the cluster. This value exists only when the cluster was created from a backup.
sourceBackupId
- The identifier (ID) of the backup used to create the cluster. This value exists only when the cluster was
created from a backup.public String getSourceBackupId()
The identifier (ID) of the backup used to create the cluster. This value exists only when the cluster was created from a backup.
public Cluster withSourceBackupId(String sourceBackupId)
The identifier (ID) of the backup used to create the cluster. This value exists only when the cluster was created from a backup.
sourceBackupId
- The identifier (ID) of the backup used to create the cluster. This value exists only when the cluster was
created from a backup.public void setState(String state)
The cluster's state.
state
- The cluster's state.ClusterState
public String getState()
The cluster's state.
ClusterState
public Cluster withState(String state)
The cluster's state.
state
- The cluster's state.ClusterState
public Cluster withState(ClusterState state)
The cluster's state.
state
- The cluster's state.ClusterState
public void setStateMessage(String stateMessage)
A description of the cluster's state.
stateMessage
- A description of the cluster's state.public String getStateMessage()
A description of the cluster's state.
public Cluster withStateMessage(String stateMessage)
A description of the cluster's state.
stateMessage
- A description of the cluster's state.public Map<String,String> getSubnetMapping()
A map from availability zone to the cluster’s subnet in that availability zone.
public void setSubnetMapping(Map<String,String> subnetMapping)
A map from availability zone to the cluster’s subnet in that availability zone.
subnetMapping
- A map from availability zone to the cluster’s subnet in that availability zone.public Cluster withSubnetMapping(Map<String,String> subnetMapping)
A map from availability zone to the cluster’s subnet in that availability zone.
subnetMapping
- A map from availability zone to the cluster’s subnet in that availability zone.public Cluster addSubnetMappingEntry(String key, String value)
public Cluster clearSubnetMappingEntries()
public void setVpcId(String vpcId)
The identifier (ID) of the virtual private cloud (VPC) that contains the cluster.
vpcId
- The identifier (ID) of the virtual private cloud (VPC) that contains the cluster.public String getVpcId()
The identifier (ID) of the virtual private cloud (VPC) that contains the cluster.
public Cluster withVpcId(String vpcId)
The identifier (ID) of the virtual private cloud (VPC) that contains the cluster.
vpcId
- The identifier (ID) of the virtual private cloud (VPC) that contains the cluster.public void setCertificates(Certificates certificates)
Contains one or more certificates or a certificate signing request (CSR).
certificates
- Contains one or more certificates or a certificate signing request (CSR).public Certificates getCertificates()
Contains one or more certificates or a certificate signing request (CSR).
public Cluster withCertificates(Certificates certificates)
Contains one or more certificates or a certificate signing request (CSR).
certificates
- Contains one or more certificates or a certificate signing request (CSR).public List<Tag> getTagList()
The list of tags for the cluster.
public void setTagList(Collection<Tag> tagList)
The list of tags for the cluster.
tagList
- The list of tags for the cluster.public Cluster withTagList(Tag... tagList)
The list of tags for the cluster.
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
- The list of tags for the cluster.public Cluster withTagList(Collection<Tag> tagList)
The list of tags for the cluster.
tagList
- The list of tags for the cluster.public void setMode(String mode)
The mode of the cluster.
mode
- The mode of the cluster.ClusterMode
public String getMode()
The mode of the cluster.
ClusterMode
public Cluster withMode(String mode)
The mode of the cluster.
mode
- The mode of the cluster.ClusterMode
public Cluster withMode(ClusterMode mode)
The mode of the cluster.
mode
- The mode of the cluster.ClusterMode
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.