All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.recoveryservices.inputs.A2AUnprotectedDiskDetailsArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** 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.azurenative.recoveryservices.inputs;

import com.pulumi.azurenative.recoveryservices.enums.AutoProtectionOfDataDisk;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * A2A unprotected disk details.
 * 
 */
public final class A2AUnprotectedDiskDetailsArgs extends com.pulumi.resources.ResourceArgs {

    public static final A2AUnprotectedDiskDetailsArgs Empty = new A2AUnprotectedDiskDetailsArgs();

    /**
     * A value indicating whether the disk auto protection is enabled.
     * 
     */
    @Import(name="diskAutoProtectionStatus")
    private @Nullable Output> diskAutoProtectionStatus;

    /**
     * @return A value indicating whether the disk auto protection is enabled.
     * 
     */
    public Optional>> diskAutoProtectionStatus() {
        return Optional.ofNullable(this.diskAutoProtectionStatus);
    }

    /**
     * The source lun Id for the data disk.
     * 
     */
    @Import(name="diskLunId")
    private @Nullable Output diskLunId;

    /**
     * @return The source lun Id for the data disk.
     * 
     */
    public Optional> diskLunId() {
        return Optional.ofNullable(this.diskLunId);
    }

    private A2AUnprotectedDiskDetailsArgs() {}

    private A2AUnprotectedDiskDetailsArgs(A2AUnprotectedDiskDetailsArgs $) {
        this.diskAutoProtectionStatus = $.diskAutoProtectionStatus;
        this.diskLunId = $.diskLunId;
    }

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

    public static final class Builder {
        private A2AUnprotectedDiskDetailsArgs $;

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

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

        /**
         * @param diskAutoProtectionStatus A value indicating whether the disk auto protection is enabled.
         * 
         * @return builder
         * 
         */
        public Builder diskAutoProtectionStatus(@Nullable Output> diskAutoProtectionStatus) {
            $.diskAutoProtectionStatus = diskAutoProtectionStatus;
            return this;
        }

        /**
         * @param diskAutoProtectionStatus A value indicating whether the disk auto protection is enabled.
         * 
         * @return builder
         * 
         */
        public Builder diskAutoProtectionStatus(Either diskAutoProtectionStatus) {
            return diskAutoProtectionStatus(Output.of(diskAutoProtectionStatus));
        }

        /**
         * @param diskAutoProtectionStatus A value indicating whether the disk auto protection is enabled.
         * 
         * @return builder
         * 
         */
        public Builder diskAutoProtectionStatus(String diskAutoProtectionStatus) {
            return diskAutoProtectionStatus(Either.ofLeft(diskAutoProtectionStatus));
        }

        /**
         * @param diskAutoProtectionStatus A value indicating whether the disk auto protection is enabled.
         * 
         * @return builder
         * 
         */
        public Builder diskAutoProtectionStatus(AutoProtectionOfDataDisk diskAutoProtectionStatus) {
            return diskAutoProtectionStatus(Either.ofRight(diskAutoProtectionStatus));
        }

        /**
         * @param diskLunId The source lun Id for the data disk.
         * 
         * @return builder
         * 
         */
        public Builder diskLunId(@Nullable Output diskLunId) {
            $.diskLunId = diskLunId;
            return this;
        }

        /**
         * @param diskLunId The source lun Id for the data disk.
         * 
         * @return builder
         * 
         */
        public Builder diskLunId(Integer diskLunId) {
            return diskLunId(Output.of(diskLunId));
        }

        public A2AUnprotectedDiskDetailsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy