Class Credential

java.lang.Object
com.google.genai.gaos.models.credentials.Credential

public class Credential extends Object
Credential

Server-managed credential resource stored in Secret Manager.

  • Constructor Details

  • Method Details

    • createTime

      public Optional<OffsetDateTime> createTime()
      Output only. The timestamp when the credential was created.
    • id

      public Optional<String> id()
      Required. Output only. Identifier.

      Unique identifier for the credential.

    • status

      public Optional<Status> status()
      Output only. Current status of the credential.
    • type

      public Optional<Type> type()
      Required. Output only. The type of credential.
    • updateTime

      public Optional<OffsetDateTime> updateTime()
      Output only. The timestamp when the credential was last updated.
    • builder

      public static Credential.Builder builder()
    • withCreateTime

      public Credential withCreateTime(@Nullable OffsetDateTime createTime)
      Output only. The timestamp when the credential was created.
    • withId

      public Credential withId(@Nonnull String id)
      Required. Output only. Identifier.

      Unique identifier for the credential.

    • withStatus

      public Credential withStatus(@Nullable Status status)
      Output only. Current status of the credential.
    • withType

      public Credential withType(@Nullable Type type)
      Required. Output only. The type of credential.
    • withUpdateTime

      public Credential withUpdateTime(@Nullable OffsetDateTime updateTime)
      Output only. The timestamp when the credential was last updated.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object