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

com.pulumi.azurenative.sqlvirtualmachine.inputs.AutoPatchingSettingsArgs 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.sqlvirtualmachine.inputs;

import com.pulumi.azurenative.sqlvirtualmachine.enums.DayOfWeek;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Set a patching window during which Windows and SQL patches will be applied.
 * 
 */
public final class AutoPatchingSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final AutoPatchingSettingsArgs Empty = new AutoPatchingSettingsArgs();

    /**
     * Day of week to apply the patch on.
     * 
     */
    @Import(name="dayOfWeek")
    private @Nullable Output dayOfWeek;

    /**
     * @return Day of week to apply the patch on.
     * 
     */
    public Optional> dayOfWeek() {
        return Optional.ofNullable(this.dayOfWeek);
    }

    /**
     * Enable or disable autopatching on SQL virtual machine.
     * 
     */
    @Import(name="enable")
    private @Nullable Output enable;

    /**
     * @return Enable or disable autopatching on SQL virtual machine.
     * 
     */
    public Optional> enable() {
        return Optional.ofNullable(this.enable);
    }

    /**
     * Duration of patching.
     * 
     */
    @Import(name="maintenanceWindowDuration")
    private @Nullable Output maintenanceWindowDuration;

    /**
     * @return Duration of patching.
     * 
     */
    public Optional> maintenanceWindowDuration() {
        return Optional.ofNullable(this.maintenanceWindowDuration);
    }

    /**
     * Hour of the day when patching is initiated. Local VM time.
     * 
     */
    @Import(name="maintenanceWindowStartingHour")
    private @Nullable Output maintenanceWindowStartingHour;

    /**
     * @return Hour of the day when patching is initiated. Local VM time.
     * 
     */
    public Optional> maintenanceWindowStartingHour() {
        return Optional.ofNullable(this.maintenanceWindowStartingHour);
    }

    private AutoPatchingSettingsArgs() {}

    private AutoPatchingSettingsArgs(AutoPatchingSettingsArgs $) {
        this.dayOfWeek = $.dayOfWeek;
        this.enable = $.enable;
        this.maintenanceWindowDuration = $.maintenanceWindowDuration;
        this.maintenanceWindowStartingHour = $.maintenanceWindowStartingHour;
    }

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

    public static final class Builder {
        private AutoPatchingSettingsArgs $;

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

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

        /**
         * @param dayOfWeek Day of week to apply the patch on.
         * 
         * @return builder
         * 
         */
        public Builder dayOfWeek(@Nullable Output dayOfWeek) {
            $.dayOfWeek = dayOfWeek;
            return this;
        }

        /**
         * @param dayOfWeek Day of week to apply the patch on.
         * 
         * @return builder
         * 
         */
        public Builder dayOfWeek(DayOfWeek dayOfWeek) {
            return dayOfWeek(Output.of(dayOfWeek));
        }

        /**
         * @param enable Enable or disable autopatching on SQL virtual machine.
         * 
         * @return builder
         * 
         */
        public Builder enable(@Nullable Output enable) {
            $.enable = enable;
            return this;
        }

        /**
         * @param enable Enable or disable autopatching on SQL virtual machine.
         * 
         * @return builder
         * 
         */
        public Builder enable(Boolean enable) {
            return enable(Output.of(enable));
        }

        /**
         * @param maintenanceWindowDuration Duration of patching.
         * 
         * @return builder
         * 
         */
        public Builder maintenanceWindowDuration(@Nullable Output maintenanceWindowDuration) {
            $.maintenanceWindowDuration = maintenanceWindowDuration;
            return this;
        }

        /**
         * @param maintenanceWindowDuration Duration of patching.
         * 
         * @return builder
         * 
         */
        public Builder maintenanceWindowDuration(Integer maintenanceWindowDuration) {
            return maintenanceWindowDuration(Output.of(maintenanceWindowDuration));
        }

        /**
         * @param maintenanceWindowStartingHour Hour of the day when patching is initiated. Local VM time.
         * 
         * @return builder
         * 
         */
        public Builder maintenanceWindowStartingHour(@Nullable Output maintenanceWindowStartingHour) {
            $.maintenanceWindowStartingHour = maintenanceWindowStartingHour;
            return this;
        }

        /**
         * @param maintenanceWindowStartingHour Hour of the day when patching is initiated. Local VM time.
         * 
         * @return builder
         * 
         */
        public Builder maintenanceWindowStartingHour(Integer maintenanceWindowStartingHour) {
            return maintenanceWindowStartingHour(Output.of(maintenanceWindowStartingHour));
        }

        public AutoPatchingSettingsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy