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

com.pulumi.azurenative.azurefleet.inputs.LinuxPatchSettingsArgs 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.azurefleet.inputs;

import com.pulumi.azurenative.azurefleet.enums.LinuxPatchAssessmentMode;
import com.pulumi.azurenative.azurefleet.enums.LinuxVMGuestPatchMode;
import com.pulumi.azurenative.azurefleet.inputs.LinuxVMGuestPatchAutomaticByPlatformSettingsArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final LinuxPatchSettingsArgs Empty = new LinuxPatchSettingsArgs();

    /**
     * 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 Linux.
     * 
     */
    @Import(name="automaticByPlatformSettings")
    private @Nullable Output automaticByPlatformSettings;

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

    /**
     * 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 /> **ImageDefault** - The
     * virtual machine's default patching configuration is used. <br /><br />
     * **AutomaticByPlatform** - The virtual machine will be automatically updated by
     * the platform. The property provisionVMAgent 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 /> **ImageDefault** - The
     * virtual machine's default patching configuration is used. <br /><br />
     * **AutomaticByPlatform** - The virtual machine will be automatically updated by
     * the platform. The property provisionVMAgent must be true
     * 
     */
    public Optional>> patchMode() {
        return Optional.ofNullable(this.patchMode);
    }

    private LinuxPatchSettingsArgs() {}

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

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

    public static final class Builder {
        private LinuxPatchSettingsArgs $;

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

        public Builder(LinuxPatchSettingsArgs defaults) {
            $ = new LinuxPatchSettingsArgs(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(LinuxPatchAssessmentMode assessmentMode) {
            return assessmentMode(Either.ofRight(assessmentMode));
        }

        /**
         * @param automaticByPlatformSettings Specifies additional settings for patch mode AutomaticByPlatform in VM Guest
         * Patching on Linux.
         * 
         * @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 Linux.
         * 
         * @return builder
         * 
         */
        public Builder automaticByPlatformSettings(LinuxVMGuestPatchAutomaticByPlatformSettingsArgs automaticByPlatformSettings) {
            return automaticByPlatformSettings(Output.of(automaticByPlatformSettings));
        }

        /**
         * @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 /> **ImageDefault** - The
         * virtual machine's default patching configuration is used. <br /><br />
         * **AutomaticByPlatform** - The virtual machine will be automatically updated by
         * the platform. The property provisionVMAgent 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 /> **ImageDefault** - The
         * virtual machine's default patching configuration is used. <br /><br />
         * **AutomaticByPlatform** - The virtual machine will be automatically updated by
         * the platform. The property provisionVMAgent 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 /> **ImageDefault** - The
         * virtual machine's default patching configuration is used. <br /><br />
         * **AutomaticByPlatform** - The virtual machine will be automatically updated by
         * the platform. The property provisionVMAgent 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 /> **ImageDefault** - The
         * virtual machine's default patching configuration is used. <br /><br />
         * **AutomaticByPlatform** - The virtual machine will be automatically updated by
         * the platform. The property provisionVMAgent must be true
         * 
         * @return builder
         * 
         */
        public Builder patchMode(LinuxVMGuestPatchMode patchMode) {
            return patchMode(Either.ofRight(patchMode));
        }

        public LinuxPatchSettingsArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy