Record Class CreateSecretOptions
java.lang.Object
java.lang.Record
codes.grow.packages.awssecretsmanager.CreateSecretOptions
- Record Components:
description- Description of the secret.kmsKeyId- KMS key id, ARN or alias (defaultaws/secretsmanager).- Tags of the secret.clientRequestToken- Idempotency token (32–64 characters, becomes the version id); the AWS SDK fills one when unset.addReplicaRegions- Regions to replicate the secret to.forceOverwriteReplicaSecret- Whether an existing secret of the same name in a replica region is overwritten.
public record CreateSecretOptions(String description, String kmsKeyId, Map<String,String> tags, String clientRequestToken, List<ReplicaRegion> addReplicaRegions, Boolean forceOverwriteReplicaSecret)
extends Record
Options of
createSecret.
Every component is optional: null means "not set" (the AWS default applies).
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCreateSecretOptions(String description, String kmsKeyId, Map<String, String> tags, String clientRequestToken, List<ReplicaRegion> addReplicaRegions, Boolean forceOverwriteReplicaSecret) Copies collections so the options stay immutable. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaddReplicaRegionsrecord component.static CreateSecretOptions.Builderbuilder()Starts a builder.Returns the value of theclientRequestTokenrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theforceOverwriteReplicaSecretrecord component.final inthashCode()Returns a hash code value for this object.kmsKeyId()Returns the value of thekmsKeyIdrecord component.static CreateSecretOptionsnone()Returns options with every field unset.tags()Returns the value of thetagsrecord component.Returns a builder pre-filled with these options.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
none
Returns options with every field unset.- Returns:
- empty options
-
builder
Starts a builder.- Returns:
- a new builder
-
toBuilder
Returns a builder pre-filled with these options.- Returns:
- a new builder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
kmsKeyId
Returns the value of thekmsKeyIdrecord component.- Returns:
- the value of the
kmsKeyIdrecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-
clientRequestToken
Returns the value of theclientRequestTokenrecord component.- Returns:
- the value of the
clientRequestTokenrecord component
-
addReplicaRegions
Returns the value of theaddReplicaRegionsrecord component.- Returns:
- the value of the
addReplicaRegionsrecord component
-
forceOverwriteReplicaSecret
Returns the value of theforceOverwriteReplicaSecretrecord component.- Returns:
- the value of the
forceOverwriteReplicaSecretrecord component
-