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

com.pulumi.azurenative.recoveryservices.inputs.InMageRcmDisksDefaultInputArgs 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.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 InMageRcmDisksDefaultInputArgs extends com.pulumi.resources.ResourceArgs {

    public static final InMageRcmDisksDefaultInputArgs Empty = new InMageRcmDisksDefaultInputArgs();

    /**
     * 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 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 InMageRcmDisksDefaultInputArgs() {}

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

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

    public static final class Builder {
        private InMageRcmDisksDefaultInputArgs $;

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

        public Builder(InMageRcmDisksDefaultInputArgs defaults) {
            $ = new InMageRcmDisksDefaultInputArgs(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 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 InMageRcmDisksDefaultInputArgs build() {
            if ($.diskType == null) {
                throw new MissingRequiredPropertyException("InMageRcmDisksDefaultInputArgs", "diskType");
            }
            if ($.logStorageAccountId == null) {
                throw new MissingRequiredPropertyException("InMageRcmDisksDefaultInputArgs", "logStorageAccountId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy