
com.pulumi.azurenative.compute.outputs.SpotRestorePolicyResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.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 SpotRestorePolicyResponse {
/**
* @return Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing constraints
*
*/
private @Nullable Boolean enabled;
/**
* @return Timeout value expressed as an ISO 8601 time duration after which the platform will not try to restore the VMSS SPOT instances
*
*/
private @Nullable String restoreTimeout;
private SpotRestorePolicyResponse() {}
/**
* @return Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing constraints
*
*/
public Optional enabled() {
return Optional.ofNullable(this.enabled);
}
/**
* @return Timeout value expressed as an ISO 8601 time duration after which the platform will not try to restore the VMSS SPOT instances
*
*/
public Optional restoreTimeout() {
return Optional.ofNullable(this.restoreTimeout);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SpotRestorePolicyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean enabled;
private @Nullable String restoreTimeout;
public Builder() {}
public Builder(SpotRestorePolicyResponse defaults) {
Objects.requireNonNull(defaults);
this.enabled = defaults.enabled;
this.restoreTimeout = defaults.restoreTimeout;
}
@CustomType.Setter
public Builder enabled(@Nullable Boolean enabled) {
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder restoreTimeout(@Nullable String restoreTimeout) {
this.restoreTimeout = restoreTimeout;
return this;
}
public SpotRestorePolicyResponse build() {
final var _resultValue = new SpotRestorePolicyResponse();
_resultValue.enabled = enabled;
_resultValue.restoreTimeout = restoreTimeout;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy