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

com.pulumi.azure.mysql.inputs.FlexibleServerMaintenanceWindowArgs 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.mysql.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final FlexibleServerMaintenanceWindowArgs Empty = new FlexibleServerMaintenanceWindowArgs();

    /**
     * The day of week for maintenance window. Defaults to `0`.
     * 
     */
    @Import(name="dayOfWeek")
    private @Nullable Output dayOfWeek;

    /**
     * @return The day of week for maintenance window. Defaults to `0`.
     * 
     */
    public Optional> dayOfWeek() {
        return Optional.ofNullable(this.dayOfWeek);
    }

    /**
     * The start hour for maintenance window. Defaults to `0`.
     * 
     */
    @Import(name="startHour")
    private @Nullable Output startHour;

    /**
     * @return The start hour for maintenance window. Defaults to `0`.
     * 
     */
    public Optional> startHour() {
        return Optional.ofNullable(this.startHour);
    }

    /**
     * The start minute for maintenance window. Defaults to `0`.
     * 
     */
    @Import(name="startMinute")
    private @Nullable Output startMinute;

    /**
     * @return The start minute for maintenance window. Defaults to `0`.
     * 
     */
    public Optional> startMinute() {
        return Optional.ofNullable(this.startMinute);
    }

    private FlexibleServerMaintenanceWindowArgs() {}

    private FlexibleServerMaintenanceWindowArgs(FlexibleServerMaintenanceWindowArgs $) {
        this.dayOfWeek = $.dayOfWeek;
        this.startHour = $.startHour;
        this.startMinute = $.startMinute;
    }

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

    public static final class Builder {
        private FlexibleServerMaintenanceWindowArgs $;

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

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

        /**
         * @param dayOfWeek The day of week for maintenance window. Defaults to `0`.
         * 
         * @return builder
         * 
         */
        public Builder dayOfWeek(@Nullable Output dayOfWeek) {
            $.dayOfWeek = dayOfWeek;
            return this;
        }

        /**
         * @param dayOfWeek The day of week for maintenance window. Defaults to `0`.
         * 
         * @return builder
         * 
         */
        public Builder dayOfWeek(Integer dayOfWeek) {
            return dayOfWeek(Output.of(dayOfWeek));
        }

        /**
         * @param startHour The start hour for maintenance window. Defaults to `0`.
         * 
         * @return builder
         * 
         */
        public Builder startHour(@Nullable Output startHour) {
            $.startHour = startHour;
            return this;
        }

        /**
         * @param startHour The start hour for maintenance window. Defaults to `0`.
         * 
         * @return builder
         * 
         */
        public Builder startHour(Integer startHour) {
            return startHour(Output.of(startHour));
        }

        /**
         * @param startMinute The start minute for maintenance window. Defaults to `0`.
         * 
         * @return builder
         * 
         */
        public Builder startMinute(@Nullable Output startMinute) {
            $.startMinute = startMinute;
            return this;
        }

        /**
         * @param startMinute The start minute for maintenance window. Defaults to `0`.
         * 
         * @return builder
         * 
         */
        public Builder startMinute(Integer startMinute) {
            return startMinute(Output.of(startMinute));
        }

        public FlexibleServerMaintenanceWindowArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy