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

com.pulumi.azurenative.azurefleet.inputs.PatchSettingsArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.azurefleet.enums.WindowsPatchAssessmentMode;
import com.pulumi.azurenative.azurefleet.enums.WindowsVMGuestPatchMode;
import com.pulumi.azurenative.azurefleet.inputs.WindowsVMGuestPatchAutomaticByPlatformSettingsArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Specifies settings related to VM Guest Patching on Windows.
 * 
 */
public final class PatchSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final PatchSettingsArgs Empty = new PatchSettingsArgs();

    /**
     * Specifies the mode of VM Guest patch assessment for the IaaS virtual
     * machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You
     * control the timing of patch assessments on a virtual machine.<br /><br />
     * **AutomaticByPlatform** - The platform will trigger periodic patch assessments.
     * The property provisionVMAgent must be true.
     * 
     */
    @Import(name="assessmentMode")
    private @Nullable Output> assessmentMode;

    /**
     * @return Specifies the mode of VM Guest patch assessment for the IaaS virtual
     * machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You
     * control the timing of patch assessments on a virtual machine.<br /><br />
     * **AutomaticByPlatform** - The platform will trigger periodic patch assessments.
     * The property provisionVMAgent must be true.
     * 
     */
    public Optional>> assessmentMode() {
        return Optional.ofNullable(this.assessmentMode);
    }

    /**
     * Specifies additional settings for patch mode AutomaticByPlatform in VM Guest
     * Patching on Windows.
     * 
     */
    @Import(name="automaticByPlatformSettings")
    private @Nullable Output automaticByPlatformSettings;

    /**
     * @return Specifies additional settings for patch mode AutomaticByPlatform in VM Guest
     * Patching on Windows.
     * 
     */
    public Optional> automaticByPlatformSettings() {
        return Optional.ofNullable(this.automaticByPlatformSettings);
    }

    /**
     * Enables customers to patch their Azure VMs without requiring a reboot. For
     * enableHotpatching, the 'provisionVMAgent' must be set to true and 'patchMode'
     * must be set to 'AutomaticByPlatform'.
     * 
     */
    @Import(name="enableHotpatching")
    private @Nullable Output enableHotpatching;

    /**
     * @return Enables customers to patch their Azure VMs without requiring a reboot. For
     * enableHotpatching, the 'provisionVMAgent' must be set to true and 'patchMode'
     * must be set to 'AutomaticByPlatform'.
     * 
     */
    public Optional> enableHotpatching() {
        return Optional.ofNullable(this.enableHotpatching);
    }

    /**
     * Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual
     * machines associated to virtual machine scale set with OrchestrationMode as
     * Flexible.<br /><br /> Possible values are:<br /><br /> **Manual** - You
     * control the application of patches to a virtual machine. You do this by
     * applying patches manually inside the VM. In this mode, automatic updates are
     * disabled; the property WindowsConfiguration.enableAutomaticUpdates must be
     * false<br /><br /> **AutomaticByOS** - The virtual machine will automatically be
     * updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates
     * must be true. <br /><br /> **AutomaticByPlatform** - the virtual machine will
     * automatically updated by the platform. The properties provisionVMAgent and
     * WindowsConfiguration.enableAutomaticUpdates must be true
     * 
     */
    @Import(name="patchMode")
    private @Nullable Output> patchMode;

    /**
     * @return Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual
     * machines associated to virtual machine scale set with OrchestrationMode as
     * Flexible.<br /><br /> Possible values are:<br /><br /> **Manual** - You
     * control the application of patches to a virtual machine. You do this by
     * applying patches manually inside the VM. In this mode, automatic updates are
     * disabled; the property WindowsConfiguration.enableAutomaticUpdates must be
     * false<br /><br /> **AutomaticByOS** - The virtual machine will automatically be
     * updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates
     * must be true. <br /><br /> **AutomaticByPlatform** - the virtual machine will
     * automatically updated by the platform. The properties provisionVMAgent and
     * WindowsConfiguration.enableAutomaticUpdates must be true
     * 
     */
    public Optional>> patchMode() {
        return Optional.ofNullable(this.patchMode);
    }

    private PatchSettingsArgs() {}

    private PatchSettingsArgs(PatchSettingsArgs $) {
        this.assessmentMode = $.assessmentMode;
        this.automaticByPlatformSettings = $.automaticByPlatformSettings;
        this.enableHotpatching = $.enableHotpatching;
        this.patchMode = $.patchMode;
    }

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

    public static final class Builder {
        private PatchSettingsArgs $;

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

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

        /**
         * @param assessmentMode Specifies the mode of VM Guest patch assessment for the IaaS virtual
         * machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You
         * control the timing of patch assessments on a virtual machine.<br /><br />
         * **AutomaticByPlatform** - The platform will trigger periodic patch assessments.
         * The property provisionVMAgent must be true.
         * 
         * @return builder
         * 
         */
        public Builder assessmentMode(@Nullable Output> assessmentMode) {
            $.assessmentMode = assessmentMode;
            return this;
        }

        /**
         * @param assessmentMode Specifies the mode of VM Guest patch assessment for the IaaS virtual
         * machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You
         * control the timing of patch assessments on a virtual machine.<br /><br />
         * **AutomaticByPlatform** - The platform will trigger periodic patch assessments.
         * The property provisionVMAgent must be true.
         * 
         * @return builder
         * 
         */
        public Builder assessmentMode(Either assessmentMode) {
            return assessmentMode(Output.of(assessmentMode));
        }

        /**
         * @param assessmentMode Specifies the mode of VM Guest patch assessment for the IaaS virtual
         * machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You
         * control the timing of patch assessments on a virtual machine.<br /><br />
         * **AutomaticByPlatform** - The platform will trigger periodic patch assessments.
         * The property provisionVMAgent must be true.
         * 
         * @return builder
         * 
         */
        public Builder assessmentMode(String assessmentMode) {
            return assessmentMode(Either.ofLeft(assessmentMode));
        }

        /**
         * @param assessmentMode Specifies the mode of VM Guest patch assessment for the IaaS virtual
         * machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You
         * control the timing of patch assessments on a virtual machine.<br /><br />
         * **AutomaticByPlatform** - The platform will trigger periodic patch assessments.
         * The property provisionVMAgent must be true.
         * 
         * @return builder
         * 
         */
        public Builder assessmentMode(WindowsPatchAssessmentMode assessmentMode) {
            return assessmentMode(Either.ofRight(assessmentMode));
        }

        /**
         * @param automaticByPlatformSettings Specifies additional settings for patch mode AutomaticByPlatform in VM Guest
         * Patching on Windows.
         * 
         * @return builder
         * 
         */
        public Builder automaticByPlatformSettings(@Nullable Output automaticByPlatformSettings) {
            $.automaticByPlatformSettings = automaticByPlatformSettings;
            return this;
        }

        /**
         * @param automaticByPlatformSettings Specifies additional settings for patch mode AutomaticByPlatform in VM Guest
         * Patching on Windows.
         * 
         * @return builder
         * 
         */
        public Builder automaticByPlatformSettings(WindowsVMGuestPatchAutomaticByPlatformSettingsArgs automaticByPlatformSettings) {
            return automaticByPlatformSettings(Output.of(automaticByPlatformSettings));
        }

        /**
         * @param enableHotpatching Enables customers to patch their Azure VMs without requiring a reboot. For
         * enableHotpatching, the 'provisionVMAgent' must be set to true and 'patchMode'
         * must be set to 'AutomaticByPlatform'.
         * 
         * @return builder
         * 
         */
        public Builder enableHotpatching(@Nullable Output enableHotpatching) {
            $.enableHotpatching = enableHotpatching;
            return this;
        }

        /**
         * @param enableHotpatching Enables customers to patch their Azure VMs without requiring a reboot. For
         * enableHotpatching, the 'provisionVMAgent' must be set to true and 'patchMode'
         * must be set to 'AutomaticByPlatform'.
         * 
         * @return builder
         * 
         */
        public Builder enableHotpatching(Boolean enableHotpatching) {
            return enableHotpatching(Output.of(enableHotpatching));
        }

        /**
         * @param patchMode Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual
         * machines associated to virtual machine scale set with OrchestrationMode as
         * Flexible.<br /><br /> Possible values are:<br /><br /> **Manual** - You
         * control the application of patches to a virtual machine. You do this by
         * applying patches manually inside the VM. In this mode, automatic updates are
         * disabled; the property WindowsConfiguration.enableAutomaticUpdates must be
         * false<br /><br /> **AutomaticByOS** - The virtual machine will automatically be
         * updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates
         * must be true. <br /><br /> **AutomaticByPlatform** - the virtual machine will
         * automatically updated by the platform. The properties provisionVMAgent and
         * WindowsConfiguration.enableAutomaticUpdates must be true
         * 
         * @return builder
         * 
         */
        public Builder patchMode(@Nullable Output> patchMode) {
            $.patchMode = patchMode;
            return this;
        }

        /**
         * @param patchMode Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual
         * machines associated to virtual machine scale set with OrchestrationMode as
         * Flexible.<br /><br /> Possible values are:<br /><br /> **Manual** - You
         * control the application of patches to a virtual machine. You do this by
         * applying patches manually inside the VM. In this mode, automatic updates are
         * disabled; the property WindowsConfiguration.enableAutomaticUpdates must be
         * false<br /><br /> **AutomaticByOS** - The virtual machine will automatically be
         * updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates
         * must be true. <br /><br /> **AutomaticByPlatform** - the virtual machine will
         * automatically updated by the platform. The properties provisionVMAgent and
         * WindowsConfiguration.enableAutomaticUpdates must be true
         * 
         * @return builder
         * 
         */
        public Builder patchMode(Either patchMode) {
            return patchMode(Output.of(patchMode));
        }

        /**
         * @param patchMode Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual
         * machines associated to virtual machine scale set with OrchestrationMode as
         * Flexible.<br /><br /> Possible values are:<br /><br /> **Manual** - You
         * control the application of patches to a virtual machine. You do this by
         * applying patches manually inside the VM. In this mode, automatic updates are
         * disabled; the property WindowsConfiguration.enableAutomaticUpdates must be
         * false<br /><br /> **AutomaticByOS** - The virtual machine will automatically be
         * updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates
         * must be true. <br /><br /> **AutomaticByPlatform** - the virtual machine will
         * automatically updated by the platform. The properties provisionVMAgent and
         * WindowsConfiguration.enableAutomaticUpdates must be true
         * 
         * @return builder
         * 
         */
        public Builder patchMode(String patchMode) {
            return patchMode(Either.ofLeft(patchMode));
        }

        /**
         * @param patchMode Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual
         * machines associated to virtual machine scale set with OrchestrationMode as
         * Flexible.<br /><br /> Possible values are:<br /><br /> **Manual** - You
         * control the application of patches to a virtual machine. You do this by
         * applying patches manually inside the VM. In this mode, automatic updates are
         * disabled; the property WindowsConfiguration.enableAutomaticUpdates must be
         * false<br /><br /> **AutomaticByOS** - The virtual machine will automatically be
         * updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates
         * must be true. <br /><br /> **AutomaticByPlatform** - the virtual machine will
         * automatically updated by the platform. The properties provisionVMAgent and
         * WindowsConfiguration.enableAutomaticUpdates must be true
         * 
         * @return builder
         * 
         */
        public Builder patchMode(WindowsVMGuestPatchMode patchMode) {
            return patchMode(Either.ofRight(patchMode));
        }

        public PatchSettingsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy