// *** 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.compute.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class DiskResourcePolicyAttachmentState extends com.pulumi.resources.ResourceArgs {

    public static final DiskResourcePolicyAttachmentState Empty = new DiskResourcePolicyAttachmentState();

    /**
     * The name of the disk in which the resource policies are attached to.
     * 
     * ***
     * 
     */
    @Import(name="disk")
    private @Nullable Output<String> disk;

    /**
     * @return The name of the disk in which the resource policies are attached to.
     * 
     * ***
     * 
     */
    public Optional<Output<String>> disk() {
        return Optional.ofNullable(this.disk);
    }

    /**
     * The resource policy to be attached to the disk for scheduling snapshot
     * creation. Do not specify the self link.
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return The resource policy to be attached to the disk for scheduling snapshot
     * creation. Do not specify the self link.
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     * 
     */
    @Import(name="project")
    private @Nullable Output<String> project;

    /**
     * @return The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     * 
     */
    public Optional<Output<String>> project() {
        return Optional.ofNullable(this.project);
    }

    /**
     * A reference to the zone where the disk resides.
     * 
     */
    @Import(name="zone")
    private @Nullable Output<String> zone;

    /**
     * @return A reference to the zone where the disk resides.
     * 
     */
    public Optional<Output<String>> zone() {
        return Optional.ofNullable(this.zone);
    }

    private DiskResourcePolicyAttachmentState() {}

    private DiskResourcePolicyAttachmentState(DiskResourcePolicyAttachmentState $) {
        this.disk = $.disk;
        this.name = $.name;
        this.project = $.project;
        this.zone = $.zone;
    }

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

    public static final class Builder {
        private DiskResourcePolicyAttachmentState $;

        public Builder() {
            $ = new DiskResourcePolicyAttachmentState();
        }

        public Builder(DiskResourcePolicyAttachmentState defaults) {
            $ = new DiskResourcePolicyAttachmentState(Objects.requireNonNull(defaults));
        }

        /**
         * @param disk The name of the disk in which the resource policies are attached to.
         * 
         * ***
         * 
         * @return builder
         * 
         */
        public Builder disk(@Nullable Output<String> disk) {
            $.disk = disk;
            return this;
        }

        /**
         * @param disk The name of the disk in which the resource policies are attached to.
         * 
         * ***
         * 
         * @return builder
         * 
         */
        public Builder disk(String disk) {
            return disk(Output.of(disk));
        }

        /**
         * @param name The resource policy to be attached to the disk for scheduling snapshot
         * creation. Do not specify the self link.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The resource policy to be attached to the disk for scheduling snapshot
         * creation. Do not specify the self link.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param project The ID of the project in which the resource belongs.
         * If it is not provided, the provider project is used.
         * 
         * @return builder
         * 
         */
        public Builder project(@Nullable Output<String> project) {
            $.project = project;
            return this;
        }

        /**
         * @param project The ID of the project in which the resource belongs.
         * If it is not provided, the provider project is used.
         * 
         * @return builder
         * 
         */
        public Builder project(String project) {
            return project(Output.of(project));
        }

        /**
         * @param zone A reference to the zone where the disk resides.
         * 
         * @return builder
         * 
         */
        public Builder zone(@Nullable Output<String> zone) {
            $.zone = zone;
            return this;
        }

        /**
         * @param zone A reference to the zone where the disk resides.
         * 
         * @return builder
         * 
         */
        public Builder zone(String zone) {
            return zone(Output.of(zone));
        }

        public DiskResourcePolicyAttachmentState build() {
            return $;
        }
    }

}
