// *** 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.DiskAsyncReplicationSecondaryDiskArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DiskAsyncReplicationState Empty = new DiskAsyncReplicationState();

    /**
     * The primary disk (source of replication).
     * 
     */
    @Import(name="primaryDisk")
    private @Nullable Output<String> primaryDisk;

    /**
     * @return The primary disk (source of replication).
     * 
     */
    public Optional<Output<String>> primaryDisk() {
        return Optional.ofNullable(this.primaryDisk);
    }

    /**
     * The secondary disk (target of replication). You can specify only one value. Structure is documented below.
     * 
     * The `secondary_disk` block includes:
     * 
     */
    @Import(name="secondaryDisk")
    private @Nullable Output<DiskAsyncReplicationSecondaryDiskArgs> secondaryDisk;

    /**
     * @return The secondary disk (target of replication). You can specify only one value. Structure is documented below.
     * 
     * The `secondary_disk` block includes:
     * 
     */
    public Optional<Output<DiskAsyncReplicationSecondaryDiskArgs>> secondaryDisk() {
        return Optional.ofNullable(this.secondaryDisk);
    }

    private DiskAsyncReplicationState() {}

    private DiskAsyncReplicationState(DiskAsyncReplicationState $) {
        this.primaryDisk = $.primaryDisk;
        this.secondaryDisk = $.secondaryDisk;
    }

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

    public static final class Builder {
        private DiskAsyncReplicationState $;

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

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

        /**
         * @param primaryDisk The primary disk (source of replication).
         * 
         * @return builder
         * 
         */
        public Builder primaryDisk(@Nullable Output<String> primaryDisk) {
            $.primaryDisk = primaryDisk;
            return this;
        }

        /**
         * @param primaryDisk The primary disk (source of replication).
         * 
         * @return builder
         * 
         */
        public Builder primaryDisk(String primaryDisk) {
            return primaryDisk(Output.of(primaryDisk));
        }

        /**
         * @param secondaryDisk The secondary disk (target of replication). You can specify only one value. Structure is documented below.
         * 
         * The `secondary_disk` block includes:
         * 
         * @return builder
         * 
         */
        public Builder secondaryDisk(@Nullable Output<DiskAsyncReplicationSecondaryDiskArgs> secondaryDisk) {
            $.secondaryDisk = secondaryDisk;
            return this;
        }

        /**
         * @param secondaryDisk The secondary disk (target of replication). You can specify only one value. Structure is documented below.
         * 
         * The `secondary_disk` block includes:
         * 
         * @return builder
         * 
         */
        public Builder secondaryDisk(DiskAsyncReplicationSecondaryDiskArgs secondaryDisk) {
            return secondaryDisk(Output.of(secondaryDisk));
        }

        public DiskAsyncReplicationState build() {
            return $;
        }
    }

}
