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

com.pulumi.azurenative.azurefleet.inputs.DiffDiskSettingsArgs 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.azurefleet.inputs;

import com.pulumi.azurenative.azurefleet.enums.DiffDiskOptions;
import com.pulumi.azurenative.azurefleet.enums.DiffDiskPlacement;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Describes the parameters of ephemeral disk settings that can be specified for
 * operating system disk. **Note:** The ephemeral disk settings can only be
 * specified for managed disk.
 * 
 */
public final class DiffDiskSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final DiffDiskSettingsArgs Empty = new DiffDiskSettingsArgs();

    /**
     * Specifies the ephemeral disk settings for operating system disk.
     * 
     */
    @Import(name="option")
    private @Nullable Output> option;

    /**
     * @return Specifies the ephemeral disk settings for operating system disk.
     * 
     */
    public Optional>> option() {
        return Optional.ofNullable(this.option);
    }

    /**
     * Specifies the ephemeral disk placement for operating system disk. Possible
     * values are: **CacheDisk,** **ResourceDisk.** The defaulting behavior is:
     * **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk**
     * is used. Refer to the VM size documentation for Windows VM at
     * https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at
     * https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM
     * sizes exposes a cache disk.
     * 
     */
    @Import(name="placement")
    private @Nullable Output> placement;

    /**
     * @return Specifies the ephemeral disk placement for operating system disk. Possible
     * values are: **CacheDisk,** **ResourceDisk.** The defaulting behavior is:
     * **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk**
     * is used. Refer to the VM size documentation for Windows VM at
     * https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at
     * https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM
     * sizes exposes a cache disk.
     * 
     */
    public Optional>> placement() {
        return Optional.ofNullable(this.placement);
    }

    private DiffDiskSettingsArgs() {}

    private DiffDiskSettingsArgs(DiffDiskSettingsArgs $) {
        this.option = $.option;
        this.placement = $.placement;
    }

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

    public static final class Builder {
        private DiffDiskSettingsArgs $;

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

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

        /**
         * @param option Specifies the ephemeral disk settings for operating system disk.
         * 
         * @return builder
         * 
         */
        public Builder option(@Nullable Output> option) {
            $.option = option;
            return this;
        }

        /**
         * @param option Specifies the ephemeral disk settings for operating system disk.
         * 
         * @return builder
         * 
         */
        public Builder option(Either option) {
            return option(Output.of(option));
        }

        /**
         * @param option Specifies the ephemeral disk settings for operating system disk.
         * 
         * @return builder
         * 
         */
        public Builder option(String option) {
            return option(Either.ofLeft(option));
        }

        /**
         * @param option Specifies the ephemeral disk settings for operating system disk.
         * 
         * @return builder
         * 
         */
        public Builder option(DiffDiskOptions option) {
            return option(Either.ofRight(option));
        }

        /**
         * @param placement Specifies the ephemeral disk placement for operating system disk. Possible
         * values are: **CacheDisk,** **ResourceDisk.** The defaulting behavior is:
         * **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk**
         * is used. Refer to the VM size documentation for Windows VM at
         * https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at
         * https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM
         * sizes exposes a cache disk.
         * 
         * @return builder
         * 
         */
        public Builder placement(@Nullable Output> placement) {
            $.placement = placement;
            return this;
        }

        /**
         * @param placement Specifies the ephemeral disk placement for operating system disk. Possible
         * values are: **CacheDisk,** **ResourceDisk.** The defaulting behavior is:
         * **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk**
         * is used. Refer to the VM size documentation for Windows VM at
         * https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at
         * https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM
         * sizes exposes a cache disk.
         * 
         * @return builder
         * 
         */
        public Builder placement(Either placement) {
            return placement(Output.of(placement));
        }

        /**
         * @param placement Specifies the ephemeral disk placement for operating system disk. Possible
         * values are: **CacheDisk,** **ResourceDisk.** The defaulting behavior is:
         * **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk**
         * is used. Refer to the VM size documentation for Windows VM at
         * https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at
         * https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM
         * sizes exposes a cache disk.
         * 
         * @return builder
         * 
         */
        public Builder placement(String placement) {
            return placement(Either.ofLeft(placement));
        }

        /**
         * @param placement Specifies the ephemeral disk placement for operating system disk. Possible
         * values are: **CacheDisk,** **ResourceDisk.** The defaulting behavior is:
         * **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk**
         * is used. Refer to the VM size documentation for Windows VM at
         * https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at
         * https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM
         * sizes exposes a cache disk.
         * 
         * @return builder
         * 
         */
        public Builder placement(DiffDiskPlacement placement) {
            return placement(Either.ofRight(placement));
        }

        public DiffDiskSettingsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy