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

com.pulumi.azurenative.containerservice.MaintenanceConfigurationArgs 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.containerservice;

import com.pulumi.azurenative.containerservice.inputs.TimeInWeekArgs;
import com.pulumi.azurenative.containerservice.inputs.TimeSpanArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final MaintenanceConfigurationArgs Empty = new MaintenanceConfigurationArgs();

    /**
     * The name of the maintenance configuration.
     * 
     */
    @Import(name="configName")
    private @Nullable Output configName;

    /**
     * @return The name of the maintenance configuration.
     * 
     */
    public Optional> configName() {
        return Optional.ofNullable(this.configName);
    }

    /**
     * Time slots on which upgrade is not allowed.
     * 
     */
    @Import(name="notAllowedTime")
    private @Nullable Output> notAllowedTime;

    /**
     * @return Time slots on which upgrade is not allowed.
     * 
     */
    public Optional>> notAllowedTime() {
        return Optional.ofNullable(this.notAllowedTime);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The name of the managed cluster resource.
     * 
     */
    @Import(name="resourceName", required=true)
    private Output resourceName;

    /**
     * @return The name of the managed cluster resource.
     * 
     */
    public Output resourceName() {
        return this.resourceName;
    }

    /**
     * If two array entries specify the same day of the week, the applied configuration is the union of times in both entries.
     * 
     */
    @Import(name="timeInWeek")
    private @Nullable Output> timeInWeek;

    /**
     * @return If two array entries specify the same day of the week, the applied configuration is the union of times in both entries.
     * 
     */
    public Optional>> timeInWeek() {
        return Optional.ofNullable(this.timeInWeek);
    }

    private MaintenanceConfigurationArgs() {}

    private MaintenanceConfigurationArgs(MaintenanceConfigurationArgs $) {
        this.configName = $.configName;
        this.notAllowedTime = $.notAllowedTime;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceName = $.resourceName;
        this.timeInWeek = $.timeInWeek;
    }

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

    public static final class Builder {
        private MaintenanceConfigurationArgs $;

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

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

        /**
         * @param configName The name of the maintenance configuration.
         * 
         * @return builder
         * 
         */
        public Builder configName(@Nullable Output configName) {
            $.configName = configName;
            return this;
        }

        /**
         * @param configName The name of the maintenance configuration.
         * 
         * @return builder
         * 
         */
        public Builder configName(String configName) {
            return configName(Output.of(configName));
        }

        /**
         * @param notAllowedTime Time slots on which upgrade is not allowed.
         * 
         * @return builder
         * 
         */
        public Builder notAllowedTime(@Nullable Output> notAllowedTime) {
            $.notAllowedTime = notAllowedTime;
            return this;
        }

        /**
         * @param notAllowedTime Time slots on which upgrade is not allowed.
         * 
         * @return builder
         * 
         */
        public Builder notAllowedTime(List notAllowedTime) {
            return notAllowedTime(Output.of(notAllowedTime));
        }

        /**
         * @param notAllowedTime Time slots on which upgrade is not allowed.
         * 
         * @return builder
         * 
         */
        public Builder notAllowedTime(TimeSpanArgs... notAllowedTime) {
            return notAllowedTime(List.of(notAllowedTime));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param resourceName The name of the managed cluster resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceName(Output resourceName) {
            $.resourceName = resourceName;
            return this;
        }

        /**
         * @param resourceName The name of the managed cluster resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceName(String resourceName) {
            return resourceName(Output.of(resourceName));
        }

        /**
         * @param timeInWeek If two array entries specify the same day of the week, the applied configuration is the union of times in both entries.
         * 
         * @return builder
         * 
         */
        public Builder timeInWeek(@Nullable Output> timeInWeek) {
            $.timeInWeek = timeInWeek;
            return this;
        }

        /**
         * @param timeInWeek If two array entries specify the same day of the week, the applied configuration is the union of times in both entries.
         * 
         * @return builder
         * 
         */
        public Builder timeInWeek(List timeInWeek) {
            return timeInWeek(Output.of(timeInWeek));
        }

        /**
         * @param timeInWeek If two array entries specify the same day of the week, the applied configuration is the union of times in both entries.
         * 
         * @return builder
         * 
         */
        public Builder timeInWeek(TimeInWeekArgs... timeInWeek) {
            return timeInWeek(List.of(timeInWeek));
        }

        public MaintenanceConfigurationArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("MaintenanceConfigurationArgs", "resourceGroupName");
            }
            if ($.resourceName == null) {
                throw new MissingRequiredPropertyException("MaintenanceConfigurationArgs", "resourceName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy