public static class CloudHsmKeyPairAttributesMap.Builder
extends java.lang.Object
CloudHsmKeyPairAttributesMap.
Method chaining is supported.
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CloudHsmKeyPairAttributesMap |
build()
Returns an instance of
CloudHsmKeyPairAttributesMap created from the fields set
on this builder. |
CloudHsmKeyPairAttributesMap.Builder |
withPrivate(CloudHsmKeyAttributesMap privateKeyAttributesMap)
Populates the private key with the same key attributes and values as the specified
CloudHsmKeyPairAttributesMap. |
CloudHsmKeyPairAttributesMap.Builder |
withPrivate(CloudHsmKeyAttributes keyAttribute,
java.lang.Object value)
Associates the specified value with the specified key attribute in the private key.
|
CloudHsmKeyPairAttributesMap.Builder |
withPublic(CloudHsmKeyAttributesMap publicKeyAttributesMap)
Populates the public key with the same key attributes and values as the specified
CloudHsmKeyPairAttributesMap. |
CloudHsmKeyPairAttributesMap.Builder |
withPublic(CloudHsmKeyAttributes keyAttribute,
java.lang.Object value)
Associates the specified value with the specified key attribute in the public key.
|
public CloudHsmKeyPairAttributesMap build()
CloudHsmKeyPairAttributesMap created from the fields set
on this builder.CloudHsmKeyPairAttributesMap populated with the key pair
attributes and values provided to the builder's methods.public CloudHsmKeyPairAttributesMap.Builder withPublic(CloudHsmKeyAttributesMap publicKeyAttributesMap)
CloudHsmKeyPairAttributesMap.publicKeyAttributesMap - The CloudHsmKeyAttributesMap whose key
attributes and values are to be placed in this
CloudHsmKeyPairAttributesMap's public key map.java.lang.NullPointerException - If the specified object is null.public CloudHsmKeyPairAttributesMap.Builder withPublic(CloudHsmKeyAttributes keyAttribute, java.lang.Object value)
If the internal map previously contained a mapping for the key attribute, the old value is replaced.
keyAttribute - Key attribute with which the specified value is to be associated in
the public key.value - Value to be associated with the specified key attribute in the public key.Builder instance, for method chaining.public CloudHsmKeyPairAttributesMap.Builder withPrivate(CloudHsmKeyAttributesMap privateKeyAttributesMap)
CloudHsmKeyPairAttributesMap.privateKeyAttributesMap - The CloudHsmKeyAttributesMap whose key
attributes and values are to be placed in this
CloudHsmKeyPairAttributesMap's private key map.java.lang.NullPointerException - If the specified object is null.public CloudHsmKeyPairAttributesMap.Builder withPrivate(CloudHsmKeyAttributes keyAttribute, java.lang.Object value)
If the internal map previously contained a mapping for the key attribute, the old value is replaced.
keyAttribute - Key attribute with which the specified value is to be associated in
the private key.value - Value to be associated with the specified key attribute in the private key.Builder instance, for method chaining.