Record Class SecretManagerClient.SecretVersionState
java.lang.Object
java.lang.Record
google.registry.privileges.secretmanager.SecretManagerClient.SecretVersionState
- Enclosing interface:
SecretManagerClient
public static record SecretManagerClient.SecretVersionState(String secretId, String version, com.google.cloud.secretmanager.v1.SecretVersion.State state)
extends Record
Contains the
State
of an secret version.-
Constructor Summary
ConstructorDescriptionSecretVersionState
(String secretId, String version, com.google.cloud.secretmanager.v1.SecretVersion.State state) Creates an instance of aSecretVersionState
record class. -
Method Summary
Modifier and TypeMethodDescriptioncreate
(String secretId, String version, com.google.cloud.secretmanager.v1.SecretVersion.State state) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.secretId()
Returns the value of thesecretId
record component.com.google.cloud.secretmanager.v1.SecretVersion.State
state()
Returns the value of thestate
record component.final String
toString()
Returns a string representation of this record class.version()
Returns the value of theversion
record component.
-
Constructor Details
-
SecretVersionState
public SecretVersionState(String secretId, String version, com.google.cloud.secretmanager.v1.SecretVersion.State state) Creates an instance of aSecretVersionState
record class.- Parameters:
secretId
- the value for thesecretId
record componentversion
- the value for theversion
record componentstate
- the value for thestate
record component
-
-
Method Details
-
create
public static SecretManagerClient.SecretVersionState create(String secretId, String version, com.google.cloud.secretmanager.v1.SecretVersion.State state) -
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)
. -
secretId
Returns the value of thesecretId
record component.- Returns:
- the value of the
secretId
record component
-
version
Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-
state
public com.google.cloud.secretmanager.v1.SecretVersion.State state()Returns the value of thestate
record component.- Returns:
- the value of the
state
record component
-