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

com.pulumi.azurenative.compute.inputs.VirtualMachineScaleSetVMProtectionPolicyArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.compute.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The protection policy of a virtual machine scale set VM.
 * 
 */
public final class VirtualMachineScaleSetVMProtectionPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final VirtualMachineScaleSetVMProtectionPolicyArgs Empty = new VirtualMachineScaleSetVMProtectionPolicyArgs();

    /**
     * Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation.
     * 
     */
    @Import(name="protectFromScaleIn")
    private @Nullable Output protectFromScaleIn;

    /**
     * @return Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation.
     * 
     */
    public Optional> protectFromScaleIn() {
        return Optional.ofNullable(this.protectFromScaleIn);
    }

    /**
     * Indicates that model updates or actions (including scale-in) initiated on the virtual machine scale set should not be applied to the virtual machine scale set VM.
     * 
     */
    @Import(name="protectFromScaleSetActions")
    private @Nullable Output protectFromScaleSetActions;

    /**
     * @return Indicates that model updates or actions (including scale-in) initiated on the virtual machine scale set should not be applied to the virtual machine scale set VM.
     * 
     */
    public Optional> protectFromScaleSetActions() {
        return Optional.ofNullable(this.protectFromScaleSetActions);
    }

    private VirtualMachineScaleSetVMProtectionPolicyArgs() {}

    private VirtualMachineScaleSetVMProtectionPolicyArgs(VirtualMachineScaleSetVMProtectionPolicyArgs $) {
        this.protectFromScaleIn = $.protectFromScaleIn;
        this.protectFromScaleSetActions = $.protectFromScaleSetActions;
    }

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

    public static final class Builder {
        private VirtualMachineScaleSetVMProtectionPolicyArgs $;

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

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

        /**
         * @param protectFromScaleIn Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation.
         * 
         * @return builder
         * 
         */
        public Builder protectFromScaleIn(@Nullable Output protectFromScaleIn) {
            $.protectFromScaleIn = protectFromScaleIn;
            return this;
        }

        /**
         * @param protectFromScaleIn Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation.
         * 
         * @return builder
         * 
         */
        public Builder protectFromScaleIn(Boolean protectFromScaleIn) {
            return protectFromScaleIn(Output.of(protectFromScaleIn));
        }

        /**
         * @param protectFromScaleSetActions Indicates that model updates or actions (including scale-in) initiated on the virtual machine scale set should not be applied to the virtual machine scale set VM.
         * 
         * @return builder
         * 
         */
        public Builder protectFromScaleSetActions(@Nullable Output protectFromScaleSetActions) {
            $.protectFromScaleSetActions = protectFromScaleSetActions;
            return this;
        }

        /**
         * @param protectFromScaleSetActions Indicates that model updates or actions (including scale-in) initiated on the virtual machine scale set should not be applied to the virtual machine scale set VM.
         * 
         * @return builder
         * 
         */
        public Builder protectFromScaleSetActions(Boolean protectFromScaleSetActions) {
            return protectFromScaleSetActions(Output.of(protectFromScaleSetActions));
        }

        public VirtualMachineScaleSetVMProtectionPolicyArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy