Record Class RotateSecretOptions
java.lang.Object
java.lang.Record
codes.grow.packages.awssecretsmanager.RotateSecretOptions
- Record Components:
lambdaArn- Rotation Lambda ARN (omit for managed rotation or to keep the current function).rules- Rotation schedule.rotateImmediately- Whether to rotate now (AWS default true).clientRequestToken- Idempotency token; the AWS SDK fills one when unset.
public record RotateSecretOptions(String lambdaArn, RotationRules rules, Boolean rotateImmediately, String clientRequestToken)
extends Record
Options of
rotateSecret.
Every component is optional: null means "not set" (the AWS default applies).
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRotateSecretOptions(String lambdaArn, RotationRules rules, Boolean rotateImmediately, String clientRequestToken) Creates an instance of aRotateSecretOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic RotateSecretOptions.Builderbuilder()Starts a builder.Returns the value of theclientRequestTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelambdaArnrecord component.static RotateSecretOptionsnone()Returns options with every field unset.Returns the value of therotateImmediatelyrecord component.rules()Returns the value of therulesrecord component.Returns a builder pre-filled with these options.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RotateSecretOptions
public RotateSecretOptions(String lambdaArn, RotationRules rules, Boolean rotateImmediately, String clientRequestToken) Creates an instance of aRotateSecretOptionsrecord class.- Parameters:
lambdaArn- the value for thelambdaArnrecord componentrules- the value for therulesrecord componentrotateImmediately- the value for therotateImmediatelyrecord componentclientRequestToken- the value for theclientRequestTokenrecord component
-
-
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). -
lambdaArn
Returns the value of thelambdaArnrecord component.- Returns:
- the value of the
lambdaArnrecord component
-
rules
Returns the value of therulesrecord component.- Returns:
- the value of the
rulesrecord component
-
rotateImmediately
Returns the value of therotateImmediatelyrecord component.- Returns:
- the value of the
rotateImmediatelyrecord component
-
clientRequestToken
Returns the value of theclientRequestTokenrecord component.- Returns:
- the value of the
clientRequestTokenrecord component
-