// *** 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 com.pulumi.gcp.compute.inputs.ResourcePolicyDiskConsistencyGroupPolicyArgs;
import com.pulumi.gcp.compute.inputs.ResourcePolicyGroupPlacementPolicyArgs;
import com.pulumi.gcp.compute.inputs.ResourcePolicyInstanceSchedulePolicyArgs;
import com.pulumi.gcp.compute.inputs.ResourcePolicySnapshotSchedulePolicyArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ResourcePolicyState Empty = new ResourcePolicyState();

    /**
     * An optional description of this resource. Provide this property when you create the resource.
     * 
     */
    @Import(name="description")
    private @Nullable Output<String> description;

    /**
     * @return An optional description of this resource. Provide this property when you create the resource.
     * 
     */
    public Optional<Output<String>> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Replication consistency group for asynchronous disk replication.
     * Structure is documented below.
     * 
     */
    @Import(name="diskConsistencyGroupPolicy")
    private @Nullable Output<ResourcePolicyDiskConsistencyGroupPolicyArgs> diskConsistencyGroupPolicy;

    /**
     * @return Replication consistency group for asynchronous disk replication.
     * Structure is documented below.
     * 
     */
    public Optional<Output<ResourcePolicyDiskConsistencyGroupPolicyArgs>> diskConsistencyGroupPolicy() {
        return Optional.ofNullable(this.diskConsistencyGroupPolicy);
    }

    /**
     * Resource policy for instances used for placement configuration.
     * Structure is documented below.
     * 
     */
    @Import(name="groupPlacementPolicy")
    private @Nullable Output<ResourcePolicyGroupPlacementPolicyArgs> groupPlacementPolicy;

    /**
     * @return Resource policy for instances used for placement configuration.
     * Structure is documented below.
     * 
     */
    public Optional<Output<ResourcePolicyGroupPlacementPolicyArgs>> groupPlacementPolicy() {
        return Optional.ofNullable(this.groupPlacementPolicy);
    }

    /**
     * Resource policy for scheduling instance operations.
     * Structure is documented below.
     * 
     */
    @Import(name="instanceSchedulePolicy")
    private @Nullable Output<ResourcePolicyInstanceSchedulePolicyArgs> instanceSchedulePolicy;

    /**
     * @return Resource policy for scheduling instance operations.
     * Structure is documented below.
     * 
     */
    public Optional<Output<ResourcePolicyInstanceSchedulePolicyArgs>> instanceSchedulePolicy() {
        return Optional.ofNullable(this.instanceSchedulePolicy);
    }

    /**
     * The name of the resource, provided by the client when initially creating
     * the resource. The resource name must be 1-63 characters long, and comply
     * with RFC1035. Specifically, the name must be 1-63 characters long and
     * match the regular expression `a-z`? which means the
     * first character must be a lowercase letter, and all following characters
     * must be a dash, lowercase letter, or digit, except the last character,
     * which cannot be a dash.
     * 
     * ***
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return The name of the resource, provided by the client when initially creating
     * the resource. The resource name must be 1-63 characters long, and comply
     * with RFC1035. Specifically, the name must be 1-63 characters long and
     * match the regular expression `a-z`? which means the
     * first character must be a lowercase letter, and all following characters
     * must be a dash, lowercase letter, or digit, except the last character,
     * which cannot be a dash.
     * 
     * ***
     * 
     */
    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);
    }

    /**
     * Region where resource policy resides.
     * 
     */
    @Import(name="region")
    private @Nullable Output<String> region;

    /**
     * @return Region where resource policy resides.
     * 
     */
    public Optional<Output<String>> region() {
        return Optional.ofNullable(this.region);
    }

    /**
     * The URI of the created resource.
     * 
     */
    @Import(name="selfLink")
    private @Nullable Output<String> selfLink;

    /**
     * @return The URI of the created resource.
     * 
     */
    public Optional<Output<String>> selfLink() {
        return Optional.ofNullable(this.selfLink);
    }

    /**
     * Policy for creating snapshots of persistent disks.
     * Structure is documented below.
     * 
     */
    @Import(name="snapshotSchedulePolicy")
    private @Nullable Output<ResourcePolicySnapshotSchedulePolicyArgs> snapshotSchedulePolicy;

    /**
     * @return Policy for creating snapshots of persistent disks.
     * Structure is documented below.
     * 
     */
    public Optional<Output<ResourcePolicySnapshotSchedulePolicyArgs>> snapshotSchedulePolicy() {
        return Optional.ofNullable(this.snapshotSchedulePolicy);
    }

    private ResourcePolicyState() {}

    private ResourcePolicyState(ResourcePolicyState $) {
        this.description = $.description;
        this.diskConsistencyGroupPolicy = $.diskConsistencyGroupPolicy;
        this.groupPlacementPolicy = $.groupPlacementPolicy;
        this.instanceSchedulePolicy = $.instanceSchedulePolicy;
        this.name = $.name;
        this.project = $.project;
        this.region = $.region;
        this.selfLink = $.selfLink;
        this.snapshotSchedulePolicy = $.snapshotSchedulePolicy;
    }

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

    public static final class Builder {
        private ResourcePolicyState $;

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

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

        /**
         * @param description An optional description of this resource. Provide this property when you create the resource.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output<String> description) {
            $.description = description;
            return this;
        }

        /**
         * @param description An optional description of this resource. Provide this property when you create the resource.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param diskConsistencyGroupPolicy Replication consistency group for asynchronous disk replication.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder diskConsistencyGroupPolicy(@Nullable Output<ResourcePolicyDiskConsistencyGroupPolicyArgs> diskConsistencyGroupPolicy) {
            $.diskConsistencyGroupPolicy = diskConsistencyGroupPolicy;
            return this;
        }

        /**
         * @param diskConsistencyGroupPolicy Replication consistency group for asynchronous disk replication.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder diskConsistencyGroupPolicy(ResourcePolicyDiskConsistencyGroupPolicyArgs diskConsistencyGroupPolicy) {
            return diskConsistencyGroupPolicy(Output.of(diskConsistencyGroupPolicy));
        }

        /**
         * @param groupPlacementPolicy Resource policy for instances used for placement configuration.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder groupPlacementPolicy(@Nullable Output<ResourcePolicyGroupPlacementPolicyArgs> groupPlacementPolicy) {
            $.groupPlacementPolicy = groupPlacementPolicy;
            return this;
        }

        /**
         * @param groupPlacementPolicy Resource policy for instances used for placement configuration.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder groupPlacementPolicy(ResourcePolicyGroupPlacementPolicyArgs groupPlacementPolicy) {
            return groupPlacementPolicy(Output.of(groupPlacementPolicy));
        }

        /**
         * @param instanceSchedulePolicy Resource policy for scheduling instance operations.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder instanceSchedulePolicy(@Nullable Output<ResourcePolicyInstanceSchedulePolicyArgs> instanceSchedulePolicy) {
            $.instanceSchedulePolicy = instanceSchedulePolicy;
            return this;
        }

        /**
         * @param instanceSchedulePolicy Resource policy for scheduling instance operations.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder instanceSchedulePolicy(ResourcePolicyInstanceSchedulePolicyArgs instanceSchedulePolicy) {
            return instanceSchedulePolicy(Output.of(instanceSchedulePolicy));
        }

        /**
         * @param name The name of the resource, provided by the client when initially creating
         * the resource. The resource name must be 1-63 characters long, and comply
         * with RFC1035. Specifically, the name must be 1-63 characters long and
         * match the regular expression `a-z`? which means the
         * first character must be a lowercase letter, and all following characters
         * must be a dash, lowercase letter, or digit, except the last character,
         * which cannot be a dash.
         * 
         * ***
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the resource, provided by the client when initially creating
         * the resource. The resource name must be 1-63 characters long, and comply
         * with RFC1035. Specifically, the name must be 1-63 characters long and
         * match the regular expression `a-z`? which means the
         * first character must be a lowercase letter, and all following characters
         * must be a dash, lowercase letter, or digit, except the last character,
         * which cannot be a dash.
         * 
         * ***
         * 
         * @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 region Region where resource policy resides.
         * 
         * @return builder
         * 
         */
        public Builder region(@Nullable Output<String> region) {
            $.region = region;
            return this;
        }

        /**
         * @param region Region where resource policy resides.
         * 
         * @return builder
         * 
         */
        public Builder region(String region) {
            return region(Output.of(region));
        }

        /**
         * @param selfLink The URI of the created resource.
         * 
         * @return builder
         * 
         */
        public Builder selfLink(@Nullable Output<String> selfLink) {
            $.selfLink = selfLink;
            return this;
        }

        /**
         * @param selfLink The URI of the created resource.
         * 
         * @return builder
         * 
         */
        public Builder selfLink(String selfLink) {
            return selfLink(Output.of(selfLink));
        }

        /**
         * @param snapshotSchedulePolicy Policy for creating snapshots of persistent disks.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder snapshotSchedulePolicy(@Nullable Output<ResourcePolicySnapshotSchedulePolicyArgs> snapshotSchedulePolicy) {
            $.snapshotSchedulePolicy = snapshotSchedulePolicy;
            return this;
        }

        /**
         * @param snapshotSchedulePolicy Policy for creating snapshots of persistent disks.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder snapshotSchedulePolicy(ResourcePolicySnapshotSchedulePolicyArgs snapshotSchedulePolicy) {
            return snapshotSchedulePolicy(Output.of(snapshotSchedulePolicy));
        }

        public ResourcePolicyState build() {
            return $;
        }
    }

}
