Record Class DeleteSecretOptions
java.lang.Object
java.lang.Record
codes.grow.packages.awssecretsmanager.DeleteSecretOptions
- Record Components:
recoveryWindowDays- Days before the secret is purged (7–30; AWS default 30).forceDeleteWithoutRecovery- Whether the secret is deleted immediately without recovery.
public record DeleteSecretOptions(Integer recoveryWindowDays, Boolean forceDeleteWithoutRecovery)
extends Record
Options of
deleteSecret: a recovery window or an immediate delete, never both.
Every component is optional: null means "not set" (the AWS default applies).
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDeleteSecretOptions(Integer recoveryWindowDays, Boolean forceDeleteWithoutRecovery) Creates an instance of aDeleteSecretOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeleteSecretOptions.Builderbuilder()Starts a builder.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theforceDeleteWithoutRecoveryrecord component.final inthashCode()Returns a hash code value for this object.static DeleteSecretOptionsnone()Returns options with every field unset.Returns the value of therecoveryWindowDaysrecord component.Returns a builder pre-filled with these options.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeleteSecretOptions
Creates an instance of aDeleteSecretOptionsrecord class.- Parameters:
recoveryWindowDays- the value for therecoveryWindowDaysrecord componentforceDeleteWithoutRecovery- the value for theforceDeleteWithoutRecoveryrecord 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). -
recoveryWindowDays
Returns the value of therecoveryWindowDaysrecord component.- Returns:
- the value of the
recoveryWindowDaysrecord component
-
forceDeleteWithoutRecovery
Returns the value of theforceDeleteWithoutRecoveryrecord component.- Returns:
- the value of the
forceDeleteWithoutRecoveryrecord component
-