// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.gcp.workstations.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class WorkstationConfigEncryptionKey {
    /**
     * @return The name of the Google Cloud KMS encryption key.
     * 
     */
    private String kmsKey;
    /**
     * @return The service account to use with the specified KMS key.
     * 
     */
    private String kmsKeyServiceAccount;

    private WorkstationConfigEncryptionKey() {}
    /**
     * @return The name of the Google Cloud KMS encryption key.
     * 
     */
    public String kmsKey() {
        return this.kmsKey;
    }
    /**
     * @return The service account to use with the specified KMS key.
     * 
     */
    public String kmsKeyServiceAccount() {
        return this.kmsKeyServiceAccount;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(WorkstationConfigEncryptionKey defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String kmsKey;
        private String kmsKeyServiceAccount;
        public Builder() {}
        public Builder(WorkstationConfigEncryptionKey defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.kmsKey = defaults.kmsKey;
    	      this.kmsKeyServiceAccount = defaults.kmsKeyServiceAccount;
        }

        @CustomType.Setter
        public Builder kmsKey(String kmsKey) {
            this.kmsKey = Objects.requireNonNull(kmsKey);
            return this;
        }
        @CustomType.Setter
        public Builder kmsKeyServiceAccount(String kmsKeyServiceAccount) {
            this.kmsKeyServiceAccount = Objects.requireNonNull(kmsKeyServiceAccount);
            return this;
        }
        public WorkstationConfigEncryptionKey build() {
            final var o = new WorkstationConfigEncryptionKey();
            o.kmsKey = kmsKey;
            o.kmsKeyServiceAccount = kmsKeyServiceAccount;
            return o;
        }
    }
}
