Class EncryptionSpec.Builder

java.lang.Object
com.google.genai.types.EncryptionSpec.Builder
Enclosing class:
EncryptionSpec

public abstract static class EncryptionSpec.Builder extends Object
Builder for EncryptionSpec.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • kmsKeyName

      public abstract EncryptionSpec.Builder kmsKeyName(String kmsKeyName)
      Setter for kmsKeyName.

      kmsKeyName: Required. Resource name of the Cloud KMS key used to protect the resource. The Cloud KMS key must be in the same region as the resource. It must have the format `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.

    • clearKmsKeyName

      @CanIgnoreReturnValue public EncryptionSpec.Builder clearKmsKeyName()
      Clears the value of kmsKeyName field.
    • build

      public abstract EncryptionSpec build()