Class Cluster
- java.lang.Object
-
- software.amazon.awssdk.services.cloudhsmv2.model.Cluster
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Cluster.Builder,Cluster>
@Generated("software.amazon.awssdk:codegen") public final class Cluster extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Cluster.Builder,Cluster>
Contains information about an CloudHSM cluster.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCluster.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BackupPolicybackupPolicy()The cluster's backup policy.StringbackupPolicyAsString()The cluster's backup policy.BackupRetentionPolicybackupRetentionPolicy()A policy that defines how the service retains backups.static Cluster.Builderbuilder()Certificatescertificates()Contains one or more certificates or a certificate signing request (CSR).StringclusterId()The cluster's identifier (ID).InstantcreateTimestamp()The date and time when the cluster was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasHsms()For responses, this returns true if the service returned a value for the Hsms property.booleanhasSubnetMapping()For responses, this returns true if the service returned a value for the SubnetMapping property.booleanhasTagList()For responses, this returns true if the service returned a value for the TagList property.List<Hsm>hsms()Contains information about the HSMs in the cluster.StringhsmType()The type of HSM that the cluster contains.ClusterModemode()The mode of the cluster.StringmodeAsString()The mode of the cluster.StringpreCoPassword()The default password for the cluster's Pre-Crypto Officer (PRECO) user.List<SdkField<?>>sdkFields()StringsecurityGroup()The identifier (ID) of the cluster's security group.static Class<? extends Cluster.Builder>serializableBuilderClass()StringsourceBackupId()The identifier (ID) of the backup used to create the cluster.ClusterStatestate()The cluster's state.StringstateAsString()The cluster's state.StringstateMessage()A description of the cluster's state.Map<String,String>subnetMapping()A map from availability zone to the cluster’s subnet in that availability zone.List<Tag>tagList()The list of tags for the cluster.Cluster.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringvpcId()The identifier (ID) of the virtual private cloud (VPC) that contains the cluster.-
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
-
backupPolicy
public final BackupPolicy backupPolicy()
The cluster's backup policy.
If the service returns an enum value that is not available in the current SDK version,
backupPolicywill returnBackupPolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frombackupPolicyAsString().- Returns:
- The cluster's backup policy.
- See Also:
BackupPolicy
-
backupPolicyAsString
public final String backupPolicyAsString()
The cluster's backup policy.
If the service returns an enum value that is not available in the current SDK version,
backupPolicywill returnBackupPolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frombackupPolicyAsString().- Returns:
- The cluster's backup policy.
- See Also:
BackupPolicy
-
backupRetentionPolicy
public final BackupRetentionPolicy backupRetentionPolicy()
A policy that defines how the service retains backups.
- Returns:
- A policy that defines how the service retains backups.
-
clusterId
public final String clusterId()
The cluster's identifier (ID).
- Returns:
- The cluster's identifier (ID).
-
createTimestamp
public final Instant createTimestamp()
The date and time when the cluster was created.
- Returns:
- The date and time when the cluster was created.
-
hasHsms
public final boolean hasHsms()
For responses, this returns true if the service returned a value for the Hsms 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.
-
hsms
public final List<Hsm> hsms()
Contains information about the HSMs in the cluster.
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
hasHsms()method.- Returns:
- Contains information about the HSMs in the cluster.
-
hsmType
public final String hsmType()
The type of HSM that the cluster contains.
- Returns:
- The type of HSM that the cluster contains.
-
preCoPassword
public final String preCoPassword()
The default password for the cluster's Pre-Crypto Officer (PRECO) user.
- Returns:
- The default password for the cluster's Pre-Crypto Officer (PRECO) user.
-
securityGroup
public final String securityGroup()
The identifier (ID) of the cluster's security group.
- Returns:
- The identifier (ID) of the cluster's security group.
-
sourceBackupId
public final 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.
- Returns:
- The identifier (ID) of the backup used to create the cluster. This value exists only when the cluster was created from a backup.
-
state
public final ClusterState state()
The cluster's state.
If the service returns an enum value that is not available in the current SDK version,
statewill returnClusterState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The cluster's state.
- See Also:
ClusterState
-
stateAsString
public final String stateAsString()
The cluster's state.
If the service returns an enum value that is not available in the current SDK version,
statewill returnClusterState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The cluster's state.
- See Also:
ClusterState
-
stateMessage
public final String stateMessage()
A description of the cluster's state.
- Returns:
- A description of the cluster's state.
-
hasSubnetMapping
public final boolean hasSubnetMapping()
For responses, this returns true if the service returned a value for the SubnetMapping 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.
-
subnetMapping
public final Map<String,String> subnetMapping()
A map from availability zone to the cluster’s subnet in that availability zone.
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
hasSubnetMapping()method.- Returns:
- A map from availability zone to the cluster’s subnet in that availability zone.
-
vpcId
public final String vpcId()
The identifier (ID) of the virtual private cloud (VPC) that contains the cluster.
- Returns:
- The identifier (ID) of the virtual private cloud (VPC) that contains the cluster.
-
certificates
public final Certificates certificates()
Contains one or more certificates or a certificate signing request (CSR).
- Returns:
- Contains one or more certificates or a certificate signing request (CSR).
-
hasTagList
public final boolean hasTagList()
For responses, this returns true if the service returned a value for the TagList 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.
-
tagList
public final List<Tag> tagList()
The list of tags for the cluster.
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
hasTagList()method.- Returns:
- The list of tags for the cluster.
-
mode
public final ClusterMode mode()
The mode of the cluster.
If the service returns an enum value that is not available in the current SDK version,
modewill returnClusterMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommodeAsString().- Returns:
- The mode of the cluster.
- See Also:
ClusterMode
-
modeAsString
public final String modeAsString()
The mode of the cluster.
If the service returns an enum value that is not available in the current SDK version,
modewill returnClusterMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommodeAsString().- Returns:
- The mode of the cluster.
- See Also:
ClusterMode
-
toBuilder
public Cluster.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Cluster.Builder,Cluster>
-
builder
public static Cluster.Builder builder()
-
serializableBuilderClass
public static Class<? extends Cluster.Builder> serializableBuilderClass()
-
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.
-
-