Record Class AwsSecretValue
java.lang.Object
java.lang.Record
codes.grow.packages.awssecretsmanager.AwsSecretValue
- Record Components:
arn- full ARNname- secret nameversionId- version id, ornullversionStages- stage labels attached to this versioncreatedDate- creation time of this version, ornullbinary- true when the secret storesSecretBinary, false forSecretStringvalue- the redacting value (value.version()is the version id)
public record AwsSecretValue(String arn, String name, String versionId, List<String> versionStages, Instant createdDate, boolean binary, SecretValue value)
extends Record
A secret value read from AWS (
GetSecretValue, BatchGetSecretValue). toString() never prints the value.-
Constructor Summary
ConstructorsConstructorDescriptionAwsSecretValue(String arn, String name, String versionId, List<String> versionStages, Instant createdDate, boolean binary, SecretValue value) Copies the stage list. -
Method Summary
Modifier and TypeMethodDescriptionarn()Returns the value of thearnrecord component.booleanbinary()Returns the value of thebinaryrecord component.Returns the value of thecreatedDaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.Returns the value of theversionIdrecord component.Returns the value of theversionStagesrecord component.
-
Constructor Details
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
arn
Returns the value of thearnrecord component.- Returns:
- the value of the
arnrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
versionId
Returns the value of theversionIdrecord component.- Returns:
- the value of the
versionIdrecord component
-
versionStages
Returns the value of theversionStagesrecord component.- Returns:
- the value of the
versionStagesrecord component
-
createdDate
Returns the value of thecreatedDaterecord component.- Returns:
- the value of the
createdDaterecord component
-
binary
public boolean binary()Returns the value of thebinaryrecord component.- Returns:
- the value of the
binaryrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-