Class Cluster
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Cluster.Builder,Cluster>
Contains information about an CloudHSM cluster.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal BackupPolicyThe cluster's backup policy.final StringThe cluster's backup policy.final BackupRetentionPolicyA policy that defines how the service retains backups.static Cluster.Builderbuilder()final CertificatesContains one or more certificates or a certificate signing request (CSR).final StringThe cluster's identifier (ID).final InstantThe date and time when the cluster was created.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanhasHsms()For responses, this returns true if the service returned a value for the Hsms property.final booleanFor responses, this returns true if the service returned a value for the SubnetMapping property.final booleanFor responses, this returns true if the service returned a value for the TagList property.hsms()Contains information about the HSMs in the cluster.final StringhsmType()The type of HSM that the cluster contains.final ClusterModemode()The mode of the cluster.final StringThe mode of the cluster.final StringThe default password for the cluster's Pre-Crypto Officer (PRECO) user.final StringThe identifier (ID) of the cluster's security group.static Class<? extends Cluster.Builder> final StringThe identifier (ID) of the backup used to create the cluster.final ClusterStatestate()The cluster's state.final StringThe cluster's state.final StringA description of the cluster's state.A map from availability zone to the cluster’s subnet in that availability zone.tagList()The list of tags for the cluster.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final StringvpcId()The identifier (ID) of the virtual private cloud (VPC) that contains the cluster.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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:
-
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:
-
backupRetentionPolicy
A policy that defines how the service retains backups.
- Returns:
- A policy that defines how the service retains backups.
-
clusterId
The cluster's identifier (ID).
- Returns:
- The cluster's identifier (ID).
-
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
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
The type of HSM that the cluster contains.
- Returns:
- The type of HSM that the cluster contains.
-
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
The identifier (ID) of the cluster's security group.
- Returns:
- The identifier (ID) of the cluster's security group.
-
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
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:
-
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:
-
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
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
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
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
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
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:
-
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:
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Cluster.Builder,Cluster> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-