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. The Cloud KMS resource identifier of the customer managed encryption key used to protect a resource. Has the form: `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. The key needs to be in the same region as where the compute resource is created.

    • build

      public abstract EncryptionSpec build()