@Generated(value="software.amazon.awssdk:codegen") public final class Cluster extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Cluster.Builder,Cluster>
Contains information about an AWS CloudHSM cluster.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Cluster.Builder |
| Modifier and Type | Method and Description |
|---|---|
BackupPolicy |
backupPolicy()
The cluster's backup policy.
|
String |
backupPolicyAsString()
The cluster's backup policy.
|
BackupRetentionPolicy |
backupRetentionPolicy()
A policy that defines how the service retains backups.
|
static Cluster.Builder |
builder() |
Certificates |
certificates()
Contains one or more certificates or a certificate signing request (CSR).
|
String |
clusterId()
The cluster's identifier (ID).
|
Instant |
createTimestamp()
The date and time when the cluster was created.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasHsms()
For responses, this returns true if the service returned a value for the Hsms property.
|
boolean |
hasSubnetMapping()
For responses, this returns true if the service returned a value for the SubnetMapping property.
|
boolean |
hasTagList()
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.
|
String |
hsmType()
The type of HSM that the cluster contains.
|
String |
preCoPassword()
The default password for the cluster's Pre-Crypto Officer (PRECO) user.
|
List<SdkField<?>> |
sdkFields() |
String |
securityGroup()
The identifier (ID) of the cluster's security group.
|
static Class<? extends Cluster.Builder> |
serializableBuilderClass() |
String |
sourceBackupId()
The identifier (ID) of the backup used to create the cluster.
|
ClusterState |
state()
The cluster's state.
|
String |
stateAsString()
The cluster's state.
|
String |
stateMessage()
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.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
vpcId()
The identifier (ID) of the virtual private cloud (VPC) that contains the cluster.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final BackupPolicy backupPolicy()
The cluster's backup policy.
If the service returns an enum value that is not available in the current SDK version, backupPolicy will
return BackupPolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
backupPolicyAsString().
BackupPolicypublic final String backupPolicyAsString()
The cluster's backup policy.
If the service returns an enum value that is not available in the current SDK version, backupPolicy will
return BackupPolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
backupPolicyAsString().
BackupPolicypublic final BackupRetentionPolicy backupRetentionPolicy()
A policy that defines how the service retains backups.
public final String clusterId()
The cluster's identifier (ID).
public final Instant createTimestamp()
The date and time when the cluster was created.
public final boolean hasHsms()
isEmpty() 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.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.
public final String hsmType()
The type of HSM that the cluster contains.
public final String preCoPassword()
The default password for the cluster's Pre-Crypto Officer (PRECO) user.
public final String securityGroup()
The identifier (ID) of the cluster's security group.
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.
public final ClusterState state()
The cluster's state.
If the service returns an enum value that is not available in the current SDK version, state will return
ClusterState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
ClusterStatepublic final String stateAsString()
The cluster's state.
If the service returns an enum value that is not available in the current SDK version, state will return
ClusterState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
ClusterStatepublic final String stateMessage()
A description of the cluster's state.
public final boolean hasSubnetMapping()
isEmpty() 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.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.
public final String vpcId()
The identifier (ID) of the virtual private cloud (VPC) that contains the cluster.
public final Certificates certificates()
Contains one or more certificates or a certificate signing request (CSR).
public final boolean hasTagList()
isEmpty() 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.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.
public Cluster.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Cluster.Builder,Cluster>public static Cluster.Builder builder()
public static Class<? extends Cluster.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.