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

com.pulumi.azurenative.containerservice.inputs.TimeInWeekArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.inputs;

import com.pulumi.azurenative.containerservice.enums.WeekDay;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Time in a week.
 * 
 */
public final class TimeInWeekArgs extends com.pulumi.resources.ResourceArgs {

    public static final TimeInWeekArgs Empty = new TimeInWeekArgs();

    /**
     * The day of the week.
     * 
     */
    @Import(name="day")
    private @Nullable Output> day;

    /**
     * @return The day of the week.
     * 
     */
    public Optional>> day() {
        return Optional.ofNullable(this.day);
    }

    /**
     * Each integer hour represents a time range beginning at 0m after the hour ending at the next hour (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - 02:00 UTC time range.
     * 
     */
    @Import(name="hourSlots")
    private @Nullable Output> hourSlots;

    /**
     * @return Each integer hour represents a time range beginning at 0m after the hour ending at the next hour (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - 02:00 UTC time range.
     * 
     */
    public Optional>> hourSlots() {
        return Optional.ofNullable(this.hourSlots);
    }

    private TimeInWeekArgs() {}

    private TimeInWeekArgs(TimeInWeekArgs $) {
        this.day = $.day;
        this.hourSlots = $.hourSlots;
    }

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

    public static final class Builder {
        private TimeInWeekArgs $;

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

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

        /**
         * @param day The day of the week.
         * 
         * @return builder
         * 
         */
        public Builder day(@Nullable Output> day) {
            $.day = day;
            return this;
        }

        /**
         * @param day The day of the week.
         * 
         * @return builder
         * 
         */
        public Builder day(Either day) {
            return day(Output.of(day));
        }

        /**
         * @param day The day of the week.
         * 
         * @return builder
         * 
         */
        public Builder day(String day) {
            return day(Either.ofLeft(day));
        }

        /**
         * @param day The day of the week.
         * 
         * @return builder
         * 
         */
        public Builder day(WeekDay day) {
            return day(Either.ofRight(day));
        }

        /**
         * @param hourSlots Each integer hour represents a time range beginning at 0m after the hour ending at the next hour (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - 02:00 UTC time range.
         * 
         * @return builder
         * 
         */
        public Builder hourSlots(@Nullable Output> hourSlots) {
            $.hourSlots = hourSlots;
            return this;
        }

        /**
         * @param hourSlots Each integer hour represents a time range beginning at 0m after the hour ending at the next hour (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - 02:00 UTC time range.
         * 
         * @return builder
         * 
         */
        public Builder hourSlots(List hourSlots) {
            return hourSlots(Output.of(hourSlots));
        }

        /**
         * @param hourSlots Each integer hour represents a time range beginning at 0m after the hour ending at the next hour (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - 02:00 UTC time range.
         * 
         * @return builder
         * 
         */
        public Builder hourSlots(Integer... hourSlots) {
            return hourSlots(List.of(hourSlots));
        }

        public TimeInWeekArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy