com.pulumi.azure.compute.outputs.WindowsVirtualMachineScaleSetSpotRestore 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 java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class WindowsVirtualMachineScaleSetSpotRestore {
/**
* @return Should the Spot-Try-Restore feature be enabled? The Spot-Try-Restore feature will attempt to automatically restore the evicted Spot Virtual Machine Scale Set VM instances opportunistically based on capacity availability and pricing constraints. Possible values are `true` or `false`. Defaults to `false`. Changing this forces a new resource to be created.
*
*/
private @Nullable Boolean enabled;
/**
* @return The length of time that the Virtual Machine Scale Set should attempt to restore the Spot VM instances which have been evicted. The time duration should be between `15` minutes and `120` minutes (inclusive). The time duration should be specified in the ISO 8601 format. Defaults to `PT1H`. Changing this forces a new resource to be created.
*
*/
private @Nullable String timeout;
private WindowsVirtualMachineScaleSetSpotRestore() {}
/**
* @return Should the Spot-Try-Restore feature be enabled? The Spot-Try-Restore feature will attempt to automatically restore the evicted Spot Virtual Machine Scale Set VM instances opportunistically based on capacity availability and pricing constraints. Possible values are `true` or `false`. Defaults to `false`. Changing this forces a new resource to be created.
*
*/
public Optional enabled() {
return Optional.ofNullable(this.enabled);
}
/**
* @return The length of time that the Virtual Machine Scale Set should attempt to restore the Spot VM instances which have been evicted. The time duration should be between `15` minutes and `120` minutes (inclusive). The time duration should be specified in the ISO 8601 format. Defaults to `PT1H`. Changing this forces a new resource to be created.
*
*/
public Optional timeout() {
return Optional.ofNullable(this.timeout);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WindowsVirtualMachineScaleSetSpotRestore defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean enabled;
private @Nullable String timeout;
public Builder() {}
public Builder(WindowsVirtualMachineScaleSetSpotRestore defaults) {
Objects.requireNonNull(defaults);
this.enabled = defaults.enabled;
this.timeout = defaults.timeout;
}
@CustomType.Setter
public Builder enabled(@Nullable Boolean enabled) {
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder timeout(@Nullable String timeout) {
this.timeout = timeout;
return this;
}
public WindowsVirtualMachineScaleSetSpotRestore build() {
final var _resultValue = new WindowsVirtualMachineScaleSetSpotRestore();
_resultValue.enabled = enabled;
_resultValue.timeout = timeout;
return _resultValue;
}
}
}