Record Class SecretWriteResult
java.lang.Object
java.lang.Record
codes.grow.packages.awssecretsmanager.SecretWriteResult
- Record Components:
arn- full ARNname- secret nameversionId- id of the new version, ornullwhen no version was created
Result of writes that may create a version.
-
Constructor Summary
ConstructorsConstructorDescriptionSecretWriteResult(String arn, String name, String versionId) Creates an instance of aSecretWriteResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionarn()Returns the value of thearnrecord 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.version()Returns the id of the new version.Returns the value of theversionIdrecord component.
-
Constructor Details
-
Method Details
-
version
Returns the id of the new version.- Returns:
- the version id, or empty
-
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). -
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
-