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

com.pulumi.azure.compute.inputs.WindowsVirtualMachineScaleSetTerminationNotificationArgs Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.compute.inputs;

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


public final class WindowsVirtualMachineScaleSetTerminationNotificationArgs extends com.pulumi.resources.ResourceArgs {

    public static final WindowsVirtualMachineScaleSetTerminationNotificationArgs Empty = new WindowsVirtualMachineScaleSetTerminationNotificationArgs();

    /**
     * Should the termination notification be enabled on this Virtual Machine Scale Set?
     * 
     */
    @Import(name="enabled", required=true)
    private Output enabled;

    /**
     * @return Should the termination notification be enabled on this Virtual Machine Scale Set?
     * 
     */
    public Output enabled() {
        return this.enabled;
    }

    /**
     * Length of time (in minutes, between 5 and 15) a notification to be sent to the VM on the instance metadata server till the VM gets deleted. The time duration should be specified in ISO 8601 format. Defaults to `PT5M`.
     * 
     * > **Note:** For more information about the termination notification, please [refer to this doc](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-terminate-notification).
     * 
     */
    @Import(name="timeout")
    private @Nullable Output timeout;

    /**
     * @return Length of time (in minutes, between 5 and 15) a notification to be sent to the VM on the instance metadata server till the VM gets deleted. The time duration should be specified in ISO 8601 format. Defaults to `PT5M`.
     * 
     * > **Note:** For more information about the termination notification, please [refer to this doc](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-terminate-notification).
     * 
     */
    public Optional> timeout() {
        return Optional.ofNullable(this.timeout);
    }

    private WindowsVirtualMachineScaleSetTerminationNotificationArgs() {}

    private WindowsVirtualMachineScaleSetTerminationNotificationArgs(WindowsVirtualMachineScaleSetTerminationNotificationArgs $) {
        this.enabled = $.enabled;
        this.timeout = $.timeout;
    }

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

    public static final class Builder {
        private WindowsVirtualMachineScaleSetTerminationNotificationArgs $;

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

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

        /**
         * @param enabled Should the termination notification be enabled on this Virtual Machine Scale Set?
         * 
         * @return builder
         * 
         */
        public Builder enabled(Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Should the termination notification be enabled on this Virtual Machine Scale Set?
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param timeout Length of time (in minutes, between 5 and 15) a notification to be sent to the VM on the instance metadata server till the VM gets deleted. The time duration should be specified in ISO 8601 format. Defaults to `PT5M`.
         * 
         * > **Note:** For more information about the termination notification, please [refer to this doc](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-terminate-notification).
         * 
         * @return builder
         * 
         */
        public Builder timeout(@Nullable Output timeout) {
            $.timeout = timeout;
            return this;
        }

        /**
         * @param timeout Length of time (in minutes, between 5 and 15) a notification to be sent to the VM on the instance metadata server till the VM gets deleted. The time duration should be specified in ISO 8601 format. Defaults to `PT5M`.
         * 
         * > **Note:** For more information about the termination notification, please [refer to this doc](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-terminate-notification).
         * 
         * @return builder
         * 
         */
        public Builder timeout(String timeout) {
            return timeout(Output.of(timeout));
        }

        public WindowsVirtualMachineScaleSetTerminationNotificationArgs build() {
            if ($.enabled == null) {
                throw new MissingRequiredPropertyException("WindowsVirtualMachineScaleSetTerminationNotificationArgs", "enabled");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy