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

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

There is a newer version: 2.72.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.LinuxVMGuestPatchAutomaticByPlatformRebootSetting;
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 additional settings to be applied when patch mode AutomaticByPlatform
 * is selected in Linux patch settings.
 * 
 */
public final class LinuxVMGuestPatchAutomaticByPlatformSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final LinuxVMGuestPatchAutomaticByPlatformSettingsArgs Empty = new LinuxVMGuestPatchAutomaticByPlatformSettingsArgs();

    /**
     * Enables customer to schedule patching without accidental upgrades
     * 
     */
    @Import(name="bypassPlatformSafetyChecksOnUserSchedule")
    private @Nullable Output bypassPlatformSafetyChecksOnUserSchedule;

    /**
     * @return Enables customer to schedule patching without accidental upgrades
     * 
     */
    public Optional> bypassPlatformSafetyChecksOnUserSchedule() {
        return Optional.ofNullable(this.bypassPlatformSafetyChecksOnUserSchedule);
    }

    /**
     * Specifies the reboot setting for all AutomaticByPlatform patch installation
     * operations.
     * 
     */
    @Import(name="rebootSetting")
    private @Nullable Output> rebootSetting;

    /**
     * @return Specifies the reboot setting for all AutomaticByPlatform patch installation
     * operations.
     * 
     */
    public Optional>> rebootSetting() {
        return Optional.ofNullable(this.rebootSetting);
    }

    private LinuxVMGuestPatchAutomaticByPlatformSettingsArgs() {}

    private LinuxVMGuestPatchAutomaticByPlatformSettingsArgs(LinuxVMGuestPatchAutomaticByPlatformSettingsArgs $) {
        this.bypassPlatformSafetyChecksOnUserSchedule = $.bypassPlatformSafetyChecksOnUserSchedule;
        this.rebootSetting = $.rebootSetting;
    }

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

    public static final class Builder {
        private LinuxVMGuestPatchAutomaticByPlatformSettingsArgs $;

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

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

        /**
         * @param bypassPlatformSafetyChecksOnUserSchedule Enables customer to schedule patching without accidental upgrades
         * 
         * @return builder
         * 
         */
        public Builder bypassPlatformSafetyChecksOnUserSchedule(@Nullable Output bypassPlatformSafetyChecksOnUserSchedule) {
            $.bypassPlatformSafetyChecksOnUserSchedule = bypassPlatformSafetyChecksOnUserSchedule;
            return this;
        }

        /**
         * @param bypassPlatformSafetyChecksOnUserSchedule Enables customer to schedule patching without accidental upgrades
         * 
         * @return builder
         * 
         */
        public Builder bypassPlatformSafetyChecksOnUserSchedule(Boolean bypassPlatformSafetyChecksOnUserSchedule) {
            return bypassPlatformSafetyChecksOnUserSchedule(Output.of(bypassPlatformSafetyChecksOnUserSchedule));
        }

        /**
         * @param rebootSetting Specifies the reboot setting for all AutomaticByPlatform patch installation
         * operations.
         * 
         * @return builder
         * 
         */
        public Builder rebootSetting(@Nullable Output> rebootSetting) {
            $.rebootSetting = rebootSetting;
            return this;
        }

        /**
         * @param rebootSetting Specifies the reboot setting for all AutomaticByPlatform patch installation
         * operations.
         * 
         * @return builder
         * 
         */
        public Builder rebootSetting(Either rebootSetting) {
            return rebootSetting(Output.of(rebootSetting));
        }

        /**
         * @param rebootSetting Specifies the reboot setting for all AutomaticByPlatform patch installation
         * operations.
         * 
         * @return builder
         * 
         */
        public Builder rebootSetting(String rebootSetting) {
            return rebootSetting(Either.ofLeft(rebootSetting));
        }

        /**
         * @param rebootSetting Specifies the reboot setting for all AutomaticByPlatform patch installation
         * operations.
         * 
         * @return builder
         * 
         */
        public Builder rebootSetting(LinuxVMGuestPatchAutomaticByPlatformRebootSetting rebootSetting) {
            return rebootSetting(Either.ofRight(rebootSetting));
        }

        public LinuxVMGuestPatchAutomaticByPlatformSettingsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy