Record Class GetSecretValueOptions
java.lang.Object
java.lang.Record
codes.grow.packages.awssecretsmanager.GetSecretValueOptions
- Record Components:
versionId- Version id (VersionId).versionStage- Stage label, e.g.AWSCURRENT,AWSPREVIOUSor a custom label.
Options of
getSecretValue and getJsonField: selects a version by id or by stage
label (default AWSCURRENT).
Every component is optional: null means "not set" (the AWS default applies).
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionGetSecretValueOptions(String versionId, String versionStage) Creates an instance of aGetSecretValueOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Starts a builder.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static GetSecretValueOptionsnone()Returns options with every field unset.static GetSecretValueOptionsofVersionId(String versionId) Selects a version by id.static GetSecretValueOptionsofVersionStage(String versionStage) Selects a version by stage label.Returns a builder pre-filled with these options.final StringtoString()Returns a string representation of this record class.Returns the value of theversionIdrecord component.Returns the value of theversionStagerecord component.
-
Constructor Details
-
GetSecretValueOptions
Creates an instance of aGetSecretValueOptionsrecord class.- Parameters:
versionId- the value for theversionIdrecord componentversionStage- the value for theversionStagerecord 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
-
ofVersionId
Selects a version by id.- Parameters:
versionId- the version id- Returns:
- the options
-
ofVersionStage
Selects a version by stage label.- Parameters:
versionStage- the stage label- Returns:
- the options
-
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). -
versionId
Returns the value of theversionIdrecord component.- Returns:
- the value of the
versionIdrecord component
-
versionStage
Returns the value of theversionStagerecord component.- Returns:
- the value of the
versionStagerecord component
-