com.pulumi.azure.compute.outputs.WindowsVirtualMachineScaleSetScaleIn 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 WindowsVirtualMachineScaleSetScaleIn {
/**
* @return Should the virtual machines chosen for removal be force deleted when the virtual machine scale set is being scaled-in? Possible values are `true` or `false`. Defaults to `false`.
*
*/
private @Nullable Boolean forceDeletionEnabled;
/**
* @return The scale-in policy rule that decides which virtual machines are chosen for removal when a Virtual Machine Scale Set is scaled in. Possible values for the scale-in policy rules are `Default`, `NewestVM` and `OldestVM`, defaults to `Default`. For more information about scale in policy, please [refer to this doc](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-scale-in-policy).
*
*/
private @Nullable String rule;
private WindowsVirtualMachineScaleSetScaleIn() {}
/**
* @return Should the virtual machines chosen for removal be force deleted when the virtual machine scale set is being scaled-in? Possible values are `true` or `false`. Defaults to `false`.
*
*/
public Optional forceDeletionEnabled() {
return Optional.ofNullable(this.forceDeletionEnabled);
}
/**
* @return The scale-in policy rule that decides which virtual machines are chosen for removal when a Virtual Machine Scale Set is scaled in. Possible values for the scale-in policy rules are `Default`, `NewestVM` and `OldestVM`, defaults to `Default`. For more information about scale in policy, please [refer to this doc](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-scale-in-policy).
*
*/
public Optional rule() {
return Optional.ofNullable(this.rule);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WindowsVirtualMachineScaleSetScaleIn defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean forceDeletionEnabled;
private @Nullable String rule;
public Builder() {}
public Builder(WindowsVirtualMachineScaleSetScaleIn defaults) {
Objects.requireNonNull(defaults);
this.forceDeletionEnabled = defaults.forceDeletionEnabled;
this.rule = defaults.rule;
}
@CustomType.Setter
public Builder forceDeletionEnabled(@Nullable Boolean forceDeletionEnabled) {
this.forceDeletionEnabled = forceDeletionEnabled;
return this;
}
@CustomType.Setter
public Builder rule(@Nullable String rule) {
this.rule = rule;
return this;
}
public WindowsVirtualMachineScaleSetScaleIn build() {
final var _resultValue = new WindowsVirtualMachineScaleSetScaleIn();
_resultValue.forceDeletionEnabled = forceDeletionEnabled;
_resultValue.rule = rule;
return _resultValue;
}
}
}