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

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

There is a newer version: 2.82.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.DiskAccountType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * InMageRcm disk input.
 * 
 */
public final class InMageRcmDiskInputArgs extends com.pulumi.resources.ResourceArgs {

    public static final InMageRcmDiskInputArgs Empty = new InMageRcmDiskInputArgs();

    /**
     * The DiskEncryptionSet ARM Id.
     * 
     */
    @Import(name="diskEncryptionSetId")
    private @Nullable Output diskEncryptionSetId;

    /**
     * @return The DiskEncryptionSet ARM Id.
     * 
     */
    public Optional> diskEncryptionSetId() {
        return Optional.ofNullable(this.diskEncryptionSetId);
    }

    /**
     * The disk Id.
     * 
     */
    @Import(name="diskId", required=true)
    private Output diskId;

    /**
     * @return The disk Id.
     * 
     */
    public Output diskId() {
        return this.diskId;
    }

    /**
     * The disk type.
     * 
     */
    @Import(name="diskType", required=true)
    private Output> diskType;

    /**
     * @return The disk type.
     * 
     */
    public Output> diskType() {
        return this.diskType;
    }

    /**
     * The log storage account ARM Id.
     * 
     */
    @Import(name="logStorageAccountId", required=true)
    private Output logStorageAccountId;

    /**
     * @return The log storage account ARM Id.
     * 
     */
    public Output logStorageAccountId() {
        return this.logStorageAccountId;
    }

    private InMageRcmDiskInputArgs() {}

    private InMageRcmDiskInputArgs(InMageRcmDiskInputArgs $) {
        this.diskEncryptionSetId = $.diskEncryptionSetId;
        this.diskId = $.diskId;
        this.diskType = $.diskType;
        this.logStorageAccountId = $.logStorageAccountId;
    }

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

    public static final class Builder {
        private InMageRcmDiskInputArgs $;

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

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

        /**
         * @param diskEncryptionSetId The DiskEncryptionSet ARM Id.
         * 
         * @return builder
         * 
         */
        public Builder diskEncryptionSetId(@Nullable Output diskEncryptionSetId) {
            $.diskEncryptionSetId = diskEncryptionSetId;
            return this;
        }

        /**
         * @param diskEncryptionSetId The DiskEncryptionSet ARM Id.
         * 
         * @return builder
         * 
         */
        public Builder diskEncryptionSetId(String diskEncryptionSetId) {
            return diskEncryptionSetId(Output.of(diskEncryptionSetId));
        }

        /**
         * @param diskId The disk Id.
         * 
         * @return builder
         * 
         */
        public Builder diskId(Output diskId) {
            $.diskId = diskId;
            return this;
        }

        /**
         * @param diskId The disk Id.
         * 
         * @return builder
         * 
         */
        public Builder diskId(String diskId) {
            return diskId(Output.of(diskId));
        }

        /**
         * @param diskType The disk type.
         * 
         * @return builder
         * 
         */
        public Builder diskType(Output> diskType) {
            $.diskType = diskType;
            return this;
        }

        /**
         * @param diskType The disk type.
         * 
         * @return builder
         * 
         */
        public Builder diskType(Either diskType) {
            return diskType(Output.of(diskType));
        }

        /**
         * @param diskType The disk type.
         * 
         * @return builder
         * 
         */
        public Builder diskType(String diskType) {
            return diskType(Either.ofLeft(diskType));
        }

        /**
         * @param diskType The disk type.
         * 
         * @return builder
         * 
         */
        public Builder diskType(DiskAccountType diskType) {
            return diskType(Either.ofRight(diskType));
        }

        /**
         * @param logStorageAccountId The log storage account ARM Id.
         * 
         * @return builder
         * 
         */
        public Builder logStorageAccountId(Output logStorageAccountId) {
            $.logStorageAccountId = logStorageAccountId;
            return this;
        }

        /**
         * @param logStorageAccountId The log storage account ARM Id.
         * 
         * @return builder
         * 
         */
        public Builder logStorageAccountId(String logStorageAccountId) {
            return logStorageAccountId(Output.of(logStorageAccountId));
        }

        public InMageRcmDiskInputArgs build() {
            if ($.diskId == null) {
                throw new MissingRequiredPropertyException("InMageRcmDiskInputArgs", "diskId");
            }
            if ($.diskType == null) {
                throw new MissingRequiredPropertyException("InMageRcmDiskInputArgs", "diskType");
            }
            if ($.logStorageAccountId == null) {
                throw new MissingRequiredPropertyException("InMageRcmDiskInputArgs", "logStorageAccountId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy