// *** 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 com.pulumi.gcp.workstations.outputs.WorkstationConfigPersistentDirectoryGcePd;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class WorkstationConfigPersistentDirectory {
    /**
     * @return A directory to persist across workstation sessions, backed by a Compute Engine regional persistent disk. Can only be updated if not empty during creation.
     * Structure is documented below.
     * 
     */
    private @Nullable WorkstationConfigPersistentDirectoryGcePd gcePd;
    /**
     * @return Location of this directory in the running workstation.
     * 
     */
    private @Nullable String mountPath;

    private WorkstationConfigPersistentDirectory() {}
    /**
     * @return A directory to persist across workstation sessions, backed by a Compute Engine regional persistent disk. Can only be updated if not empty during creation.
     * Structure is documented below.
     * 
     */
    public Optional<WorkstationConfigPersistentDirectoryGcePd> gcePd() {
        return Optional.ofNullable(this.gcePd);
    }
    /**
     * @return Location of this directory in the running workstation.
     * 
     */
    public Optional<String> mountPath() {
        return Optional.ofNullable(this.mountPath);
    }

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

    public static Builder builder(WorkstationConfigPersistentDirectory defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable WorkstationConfigPersistentDirectoryGcePd gcePd;
        private @Nullable String mountPath;
        public Builder() {}
        public Builder(WorkstationConfigPersistentDirectory defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.gcePd = defaults.gcePd;
    	      this.mountPath = defaults.mountPath;
        }

        @CustomType.Setter
        public Builder gcePd(@Nullable WorkstationConfigPersistentDirectoryGcePd gcePd) {
            this.gcePd = gcePd;
            return this;
        }
        @CustomType.Setter
        public Builder mountPath(@Nullable String mountPath) {
            this.mountPath = mountPath;
            return this;
        }
        public WorkstationConfigPersistentDirectory build() {
            final var o = new WorkstationConfigPersistentDirectory();
            o.gcePd = gcePd;
            o.mountPath = mountPath;
            return o;
        }
    }
}
