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

com.pulumi.azurenative.datareplication.inputs.HyperVToAzStackHCIDiskInputArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.datareplication.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * HyperVToAzStack disk input.
 * 
 */
public final class HyperVToAzStackHCIDiskInputArgs extends com.pulumi.resources.ResourceArgs {

    public static final HyperVToAzStackHCIDiskInputArgs Empty = new HyperVToAzStackHCIDiskInputArgs();

    /**
     * Gets or sets the type of the virtual hard disk, vhd or vhdx.
     * 
     */
    @Import(name="diskFileFormat", required=true)
    private Output diskFileFormat;

    /**
     * @return Gets or sets the type of the virtual hard disk, vhd or vhdx.
     * 
     */
    public Output diskFileFormat() {
        return this.diskFileFormat;
    }

    /**
     * Gets or sets the disk Id.
     * 
     */
    @Import(name="diskId", required=true)
    private Output diskId;

    /**
     * @return Gets or sets the disk Id.
     * 
     */
    public Output diskId() {
        return this.diskId;
    }

    /**
     * Gets or sets the disk size in GB.
     * 
     */
    @Import(name="diskSizeGB", required=true)
    private Output diskSizeGB;

    /**
     * @return Gets or sets the disk size in GB.
     * 
     */
    public Output diskSizeGB() {
        return this.diskSizeGB;
    }

    /**
     * Gets or sets a value indicating whether dynamic sizing is enabled on the virtual hard
     * disk.
     * 
     */
    @Import(name="isDynamic")
    private @Nullable Output isDynamic;

    /**
     * @return Gets or sets a value indicating whether dynamic sizing is enabled on the virtual hard
     * disk.
     * 
     */
    public Optional> isDynamic() {
        return Optional.ofNullable(this.isDynamic);
    }

    /**
     * Gets or sets a value indicating whether disk is os disk.
     * 
     */
    @Import(name="isOsDisk", required=true)
    private Output isOsDisk;

    /**
     * @return Gets or sets a value indicating whether disk is os disk.
     * 
     */
    public Output isOsDisk() {
        return this.isOsDisk;
    }

    /**
     * Gets or sets the target storage account ARM Id.
     * 
     */
    @Import(name="storageContainerId")
    private @Nullable Output storageContainerId;

    /**
     * @return Gets or sets the target storage account ARM Id.
     * 
     */
    public Optional> storageContainerId() {
        return Optional.ofNullable(this.storageContainerId);
    }

    private HyperVToAzStackHCIDiskInputArgs() {}

    private HyperVToAzStackHCIDiskInputArgs(HyperVToAzStackHCIDiskInputArgs $) {
        this.diskFileFormat = $.diskFileFormat;
        this.diskId = $.diskId;
        this.diskSizeGB = $.diskSizeGB;
        this.isDynamic = $.isDynamic;
        this.isOsDisk = $.isOsDisk;
        this.storageContainerId = $.storageContainerId;
    }

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

    public static final class Builder {
        private HyperVToAzStackHCIDiskInputArgs $;

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

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

        /**
         * @param diskFileFormat Gets or sets the type of the virtual hard disk, vhd or vhdx.
         * 
         * @return builder
         * 
         */
        public Builder diskFileFormat(Output diskFileFormat) {
            $.diskFileFormat = diskFileFormat;
            return this;
        }

        /**
         * @param diskFileFormat Gets or sets the type of the virtual hard disk, vhd or vhdx.
         * 
         * @return builder
         * 
         */
        public Builder diskFileFormat(String diskFileFormat) {
            return diskFileFormat(Output.of(diskFileFormat));
        }

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

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

        /**
         * @param diskSizeGB Gets or sets the disk size in GB.
         * 
         * @return builder
         * 
         */
        public Builder diskSizeGB(Output diskSizeGB) {
            $.diskSizeGB = diskSizeGB;
            return this;
        }

        /**
         * @param diskSizeGB Gets or sets the disk size in GB.
         * 
         * @return builder
         * 
         */
        public Builder diskSizeGB(Double diskSizeGB) {
            return diskSizeGB(Output.of(diskSizeGB));
        }

        /**
         * @param isDynamic Gets or sets a value indicating whether dynamic sizing is enabled on the virtual hard
         * disk.
         * 
         * @return builder
         * 
         */
        public Builder isDynamic(@Nullable Output isDynamic) {
            $.isDynamic = isDynamic;
            return this;
        }

        /**
         * @param isDynamic Gets or sets a value indicating whether dynamic sizing is enabled on the virtual hard
         * disk.
         * 
         * @return builder
         * 
         */
        public Builder isDynamic(Boolean isDynamic) {
            return isDynamic(Output.of(isDynamic));
        }

        /**
         * @param isOsDisk Gets or sets a value indicating whether disk is os disk.
         * 
         * @return builder
         * 
         */
        public Builder isOsDisk(Output isOsDisk) {
            $.isOsDisk = isOsDisk;
            return this;
        }

        /**
         * @param isOsDisk Gets or sets a value indicating whether disk is os disk.
         * 
         * @return builder
         * 
         */
        public Builder isOsDisk(Boolean isOsDisk) {
            return isOsDisk(Output.of(isOsDisk));
        }

        /**
         * @param storageContainerId Gets or sets the target storage account ARM Id.
         * 
         * @return builder
         * 
         */
        public Builder storageContainerId(@Nullable Output storageContainerId) {
            $.storageContainerId = storageContainerId;
            return this;
        }

        /**
         * @param storageContainerId Gets or sets the target storage account ARM Id.
         * 
         * @return builder
         * 
         */
        public Builder storageContainerId(String storageContainerId) {
            return storageContainerId(Output.of(storageContainerId));
        }

        public HyperVToAzStackHCIDiskInputArgs build() {
            if ($.diskFileFormat == null) {
                throw new MissingRequiredPropertyException("HyperVToAzStackHCIDiskInputArgs", "diskFileFormat");
            }
            if ($.diskId == null) {
                throw new MissingRequiredPropertyException("HyperVToAzStackHCIDiskInputArgs", "diskId");
            }
            if ($.diskSizeGB == null) {
                throw new MissingRequiredPropertyException("HyperVToAzStackHCIDiskInputArgs", "diskSizeGB");
            }
            if ($.isOsDisk == null) {
                throw new MissingRequiredPropertyException("HyperVToAzStackHCIDiskInputArgs", "isOsDisk");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy