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

com.pulumi.azure.devtest.inputs.ScheduleWeeklyRecurrenceArgs 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.devtest.inputs;

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 ScheduleWeeklyRecurrenceArgs extends com.pulumi.resources.ResourceArgs {

    public static final ScheduleWeeklyRecurrenceArgs Empty = new ScheduleWeeklyRecurrenceArgs();

    /**
     * The time when the schedule takes effect.
     * 
     */
    @Import(name="time", required=true)
    private Output time;

    /**
     * @return The time when the schedule takes effect.
     * 
     */
    public Output time() {
        return this.time;
    }

    /**
     * A list of days that this schedule takes effect . Possible values include `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
     * 
     */
    @Import(name="weekDays")
    private @Nullable Output> weekDays;

    /**
     * @return A list of days that this schedule takes effect . Possible values include `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
     * 
     */
    public Optional>> weekDays() {
        return Optional.ofNullable(this.weekDays);
    }

    private ScheduleWeeklyRecurrenceArgs() {}

    private ScheduleWeeklyRecurrenceArgs(ScheduleWeeklyRecurrenceArgs $) {
        this.time = $.time;
        this.weekDays = $.weekDays;
    }

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

    public static final class Builder {
        private ScheduleWeeklyRecurrenceArgs $;

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

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

        /**
         * @param time The time when the schedule takes effect.
         * 
         * @return builder
         * 
         */
        public Builder time(Output time) {
            $.time = time;
            return this;
        }

        /**
         * @param time The time when the schedule takes effect.
         * 
         * @return builder
         * 
         */
        public Builder time(String time) {
            return time(Output.of(time));
        }

        /**
         * @param weekDays A list of days that this schedule takes effect . Possible values include `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
         * 
         * @return builder
         * 
         */
        public Builder weekDays(@Nullable Output> weekDays) {
            $.weekDays = weekDays;
            return this;
        }

        /**
         * @param weekDays A list of days that this schedule takes effect . Possible values include `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
         * 
         * @return builder
         * 
         */
        public Builder weekDays(List weekDays) {
            return weekDays(Output.of(weekDays));
        }

        /**
         * @param weekDays A list of days that this schedule takes effect . Possible values include `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
         * 
         * @return builder
         * 
         */
        public Builder weekDays(String... weekDays) {
            return weekDays(List.of(weekDays));
        }

        public ScheduleWeeklyRecurrenceArgs build() {
            if ($.time == null) {
                throw new MissingRequiredPropertyException("ScheduleWeeklyRecurrenceArgs", "time");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy