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

com.pulumi.azurenative.compute.outputs.VirtualMachineScaleSetVMProtectionPolicyResponse Maven / Gradle / Ivy

// *** 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.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class VirtualMachineScaleSetVMProtectionPolicyResponse {
    /**
     * @return Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation.
     * 
     */
    private @Nullable Boolean protectFromScaleIn;
    /**
     * @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.
     * 
     */
    private @Nullable Boolean protectFromScaleSetActions;

    private VirtualMachineScaleSetVMProtectionPolicyResponse() {}
    /**
     * @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);
    }
    /**
     * @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);
    }

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

    public static Builder builder(VirtualMachineScaleSetVMProtectionPolicyResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean protectFromScaleIn;
        private @Nullable Boolean protectFromScaleSetActions;
        public Builder() {}
        public Builder(VirtualMachineScaleSetVMProtectionPolicyResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.protectFromScaleIn = defaults.protectFromScaleIn;
    	      this.protectFromScaleSetActions = defaults.protectFromScaleSetActions;
        }

        @CustomType.Setter
        public Builder protectFromScaleIn(@Nullable Boolean protectFromScaleIn) {

            this.protectFromScaleIn = protectFromScaleIn;
            return this;
        }
        @CustomType.Setter
        public Builder protectFromScaleSetActions(@Nullable Boolean protectFromScaleSetActions) {

            this.protectFromScaleSetActions = protectFromScaleSetActions;
            return this;
        }
        public VirtualMachineScaleSetVMProtectionPolicyResponse build() {
            final var _resultValue = new VirtualMachineScaleSetVMProtectionPolicyResponse();
            _resultValue.protectFromScaleIn = protectFromScaleIn;
            _resultValue.protectFromScaleSetActions = protectFromScaleSetActions;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy