Class HttpBearerUpdateConfig

java.lang.Object
com.google.genai.gaos.models.credentials.HttpBearerUpdateConfig
All Implemented Interfaces:
CredentialUpdate

public class HttpBearerUpdateConfig extends Object implements CredentialUpdate
HttpBearerUpdateConfig

Configuration for updating HTTP Bearer token credentials.

  • Constructor Details

    • HttpBearerUpdateConfig

      public HttpBearerUpdateConfig(@Nullable String headerName, @Nullable String prefix, @Nullable String token)
    • HttpBearerUpdateConfig

      public HttpBearerUpdateConfig()
  • Method Details

    • headerName

      public Optional<String> headerName()
      Optional. Header name to inject the token into. Defaults to 'Authorization'.
    • prefix

      public Optional<String> prefix()
      Optional. Prefix to prepend to the token. Defaults to 'Bearer'.

      Set to '' for no prefix.

    • token

      public Optional<String> token()
      Optional. Input only. The static bearer token.

      Write-only; never returned in responses.

    • type

      public String type()
      Specified by:
      type in interface CredentialUpdate
    • builder

      public static HttpBearerUpdateConfig.Builder builder()
    • withHeaderName

      public HttpBearerUpdateConfig withHeaderName(@Nullable String headerName)
      Optional. Header name to inject the token into. Defaults to 'Authorization'.
    • withPrefix

      public HttpBearerUpdateConfig withPrefix(@Nullable String prefix)
      Optional. Prefix to prepend to the token. Defaults to 'Bearer'.

      Set to '' for no prefix.

    • withToken

      public HttpBearerUpdateConfig withToken(@Nullable String token)
      Optional. Input only. The static bearer token.

      Write-only; never returned in responses.

    • 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