Class CreateHsmRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.cloudhsm.model.CloudHsmRequest
-
- software.amazon.awssdk.services.cloudhsm.model.CreateHsmRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateHsmRequest.Builder,CreateHsmRequest>
@Generated("software.amazon.awssdk:codegen") public final class CreateHsmRequest extends CloudHsmRequest implements ToCopyableBuilder<CreateHsmRequest.Builder,CreateHsmRequest>
Contains the inputs for the
CreateHsmoperation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateHsmRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateHsmRequest.Builderbuilder()StringclientToken()A user-defined token to ensure idempotence.StringeniIp()The IP address to assign to the HSM's ENI.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringexternalId()The external ID fromIamRoleArn, if present.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringiamRoleArn()The ARN of an IAM role to enable the AWS CloudHSM service to allocate an ENI on your behalf.List<SdkField<?>>sdkFields()static Class<? extends CreateHsmRequest.Builder>serializableBuilderClass()StringsshKey()The SSH public key to install on the HSM.StringsubnetId()The identifier of the subnet in your VPC in which to place the HSM.SubscriptionTypesubscriptionType()Returns the value of the SubscriptionType property for this object.StringsubscriptionTypeAsString()Returns the value of the SubscriptionType property for this object.StringsyslogIp()The IP address for the syslog monitoring server.CreateHsmRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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
-
subnetId
public final String subnetId()
The identifier of the subnet in your VPC in which to place the HSM.
- Returns:
- The identifier of the subnet in your VPC in which to place the HSM.
-
sshKey
public final String sshKey()
The SSH public key to install on the HSM.
- Returns:
- The SSH public key to install on the HSM.
-
eniIp
public final String eniIp()
The IP address to assign to the HSM's ENI.
If an IP address is not specified, an IP address will be randomly chosen from the CIDR range of the subnet.
- Returns:
- The IP address to assign to the HSM's ENI.
If an IP address is not specified, an IP address will be randomly chosen from the CIDR range of the subnet.
-
iamRoleArn
public final String iamRoleArn()
The ARN of an IAM role to enable the AWS CloudHSM service to allocate an ENI on your behalf.
- Returns:
- The ARN of an IAM role to enable the AWS CloudHSM service to allocate an ENI on your behalf.
-
externalId
public final String externalId()
The external ID from
IamRoleArn, if present.- Returns:
- The external ID from
IamRoleArn, if present.
-
subscriptionType
public final SubscriptionType subscriptionType()
Returns the value of the SubscriptionType property for this object.If the service returns an enum value that is not available in the current SDK version,
subscriptionTypewill returnSubscriptionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsubscriptionTypeAsString().- Returns:
- The value of the SubscriptionType property for this object.
- See Also:
SubscriptionType
-
subscriptionTypeAsString
public final String subscriptionTypeAsString()
Returns the value of the SubscriptionType property for this object.If the service returns an enum value that is not available in the current SDK version,
subscriptionTypewill returnSubscriptionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsubscriptionTypeAsString().- Returns:
- The value of the SubscriptionType property for this object.
- See Also:
SubscriptionType
-
clientToken
public final String clientToken()
A user-defined token to ensure idempotence. Subsequent calls to this operation with the same token will be ignored.
- Returns:
- A user-defined token to ensure idempotence. Subsequent calls to this operation with the same token will be ignored.
-
syslogIp
public final String syslogIp()
The IP address for the syslog monitoring server. The AWS CloudHSM service only supports one syslog monitoring server.
- Returns:
- The IP address for the syslog monitoring server. The AWS CloudHSM service only supports one syslog monitoring server.
-
toBuilder
public CreateHsmRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateHsmRequest.Builder,CreateHsmRequest>- Specified by:
toBuilderin classCloudHsmRequest
-
builder
public static CreateHsmRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateHsmRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-