com.pulumi.azure.compute.outputs.LinuxVirtualMachineOsDiskDiffDiskSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.compute.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LinuxVirtualMachineOsDiskDiffDiskSettings {
/**
* @return Specifies the Ephemeral Disk Settings for the OS Disk. At this time the only possible value is `Local`. Changing this forces a new resource to be created.
*
*/
private String option;
/**
* @return Specifies where to store the Ephemeral Disk. Possible values are `CacheDisk` and `ResourceDisk`. Defaults to `CacheDisk`. Changing this forces a new resource to be created.
*
*/
private @Nullable String placement;
private LinuxVirtualMachineOsDiskDiffDiskSettings() {}
/**
* @return Specifies the Ephemeral Disk Settings for the OS Disk. At this time the only possible value is `Local`. Changing this forces a new resource to be created.
*
*/
public String option() {
return this.option;
}
/**
* @return Specifies where to store the Ephemeral Disk. Possible values are `CacheDisk` and `ResourceDisk`. Defaults to `CacheDisk`. Changing this forces a new resource to be created.
*
*/
public Optional placement() {
return Optional.ofNullable(this.placement);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LinuxVirtualMachineOsDiskDiffDiskSettings defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String option;
private @Nullable String placement;
public Builder() {}
public Builder(LinuxVirtualMachineOsDiskDiffDiskSettings defaults) {
Objects.requireNonNull(defaults);
this.option = defaults.option;
this.placement = defaults.placement;
}
@CustomType.Setter
public Builder option(String option) {
if (option == null) {
throw new MissingRequiredPropertyException("LinuxVirtualMachineOsDiskDiffDiskSettings", "option");
}
this.option = option;
return this;
}
@CustomType.Setter
public Builder placement(@Nullable String placement) {
this.placement = placement;
return this;
}
public LinuxVirtualMachineOsDiskDiffDiskSettings build() {
final var _resultValue = new LinuxVirtualMachineOsDiskDiffDiskSettings();
_resultValue.option = option;
_resultValue.placement = placement;
return _resultValue;
}
}
}