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

com.pulumi.azure.devtest.ScheduleArgs Maven / Gradle / Ivy

// *** 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;

import com.pulumi.azure.devtest.inputs.ScheduleDailyRecurrenceArgs;
import com.pulumi.azure.devtest.inputs.ScheduleHourlyRecurrenceArgs;
import com.pulumi.azure.devtest.inputs.ScheduleNotificationSettingsArgs;
import com.pulumi.azure.devtest.inputs.ScheduleWeeklyRecurrenceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ScheduleArgs Empty = new ScheduleArgs();

    /**
     * The properties of a daily schedule. If the schedule occurs once each day of the week, specify the daily recurrence. A `daily_recurrence` block as defined below.
     * 
     */
    @Import(name="dailyRecurrence")
    private @Nullable Output dailyRecurrence;

    /**
     * @return The properties of a daily schedule. If the schedule occurs once each day of the week, specify the daily recurrence. A `daily_recurrence` block as defined below.
     * 
     */
    public Optional> dailyRecurrence() {
        return Optional.ofNullable(this.dailyRecurrence);
    }

    /**
     * The properties of an hourly schedule. If the schedule occurs multiple times a day, specify the hourly recurrence. A `hourly_recurrence` block as defined below.
     * 
     */
    @Import(name="hourlyRecurrence")
    private @Nullable Output hourlyRecurrence;

    /**
     * @return The properties of an hourly schedule. If the schedule occurs multiple times a day, specify the hourly recurrence. A `hourly_recurrence` block as defined below.
     * 
     */
    public Optional> hourlyRecurrence() {
        return Optional.ofNullable(this.hourlyRecurrence);
    }

    /**
     * The name of the dev test lab. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="labName", required=true)
    private Output labName;

    /**
     * @return The name of the dev test lab. Changing this forces a new resource to be created.
     * 
     */
    public Output labName() {
        return this.labName;
    }

    /**
     * The location where the schedule is created. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The location where the schedule is created. Changing this forces a new resource to be created.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The name of the dev test lab schedule. Valid value for name depends on the `task_type`. For instance for task_type `LabVmsStartupTask` the name needs to be `LabVmAutoStart`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the dev test lab schedule. Valid value for name depends on the `task_type`. For instance for task_type `LabVmsStartupTask` the name needs to be `LabVmAutoStart`. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The notification setting of a schedule. A `notification_settings` block as defined below.
     * 
     */
    @Import(name="notificationSettings", required=true)
    private Output notificationSettings;

    /**
     * @return The notification setting of a schedule. A `notification_settings` block as defined below.
     * 
     */
    public Output notificationSettings() {
        return this.notificationSettings;
    }

    /**
     * The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The status of this schedule. Possible values are `Enabled` and `Disabled`. Defaults to `Disabled`.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return The status of this schedule. Possible values are `Enabled` and `Disabled`. Defaults to `Disabled`.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * A mapping of tags to assign to the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags to assign to the resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The task type of the schedule. Possible values include `LabVmsShutdownTask` and `LabVmAutoStart`.
     * 
     */
    @Import(name="taskType", required=true)
    private Output taskType;

    /**
     * @return The task type of the schedule. Possible values include `LabVmsShutdownTask` and `LabVmAutoStart`.
     * 
     */
    public Output taskType() {
        return this.taskType;
    }

    /**
     * The time zone ID (e.g. Pacific Standard time).
     * 
     */
    @Import(name="timeZoneId", required=true)
    private Output timeZoneId;

    /**
     * @return The time zone ID (e.g. Pacific Standard time).
     * 
     */
    public Output timeZoneId() {
        return this.timeZoneId;
    }

    /**
     * The properties of a weekly schedule. If the schedule occurs only some days of the week, specify the weekly recurrence. A `weekly_recurrence` block as defined below.
     * 
     */
    @Import(name="weeklyRecurrence")
    private @Nullable Output weeklyRecurrence;

    /**
     * @return The properties of a weekly schedule. If the schedule occurs only some days of the week, specify the weekly recurrence. A `weekly_recurrence` block as defined below.
     * 
     */
    public Optional> weeklyRecurrence() {
        return Optional.ofNullable(this.weeklyRecurrence);
    }

    private ScheduleArgs() {}

    private ScheduleArgs(ScheduleArgs $) {
        this.dailyRecurrence = $.dailyRecurrence;
        this.hourlyRecurrence = $.hourlyRecurrence;
        this.labName = $.labName;
        this.location = $.location;
        this.name = $.name;
        this.notificationSettings = $.notificationSettings;
        this.resourceGroupName = $.resourceGroupName;
        this.status = $.status;
        this.tags = $.tags;
        this.taskType = $.taskType;
        this.timeZoneId = $.timeZoneId;
        this.weeklyRecurrence = $.weeklyRecurrence;
    }

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

    public static final class Builder {
        private ScheduleArgs $;

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

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

        /**
         * @param dailyRecurrence The properties of a daily schedule. If the schedule occurs once each day of the week, specify the daily recurrence. A `daily_recurrence` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder dailyRecurrence(@Nullable Output dailyRecurrence) {
            $.dailyRecurrence = dailyRecurrence;
            return this;
        }

        /**
         * @param dailyRecurrence The properties of a daily schedule. If the schedule occurs once each day of the week, specify the daily recurrence. A `daily_recurrence` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder dailyRecurrence(ScheduleDailyRecurrenceArgs dailyRecurrence) {
            return dailyRecurrence(Output.of(dailyRecurrence));
        }

        /**
         * @param hourlyRecurrence The properties of an hourly schedule. If the schedule occurs multiple times a day, specify the hourly recurrence. A `hourly_recurrence` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder hourlyRecurrence(@Nullable Output hourlyRecurrence) {
            $.hourlyRecurrence = hourlyRecurrence;
            return this;
        }

        /**
         * @param hourlyRecurrence The properties of an hourly schedule. If the schedule occurs multiple times a day, specify the hourly recurrence. A `hourly_recurrence` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder hourlyRecurrence(ScheduleHourlyRecurrenceArgs hourlyRecurrence) {
            return hourlyRecurrence(Output.of(hourlyRecurrence));
        }

        /**
         * @param labName The name of the dev test lab. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder labName(Output labName) {
            $.labName = labName;
            return this;
        }

        /**
         * @param labName The name of the dev test lab. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder labName(String labName) {
            return labName(Output.of(labName));
        }

        /**
         * @param location The location where the schedule is created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The location where the schedule is created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param name The name of the dev test lab schedule. Valid value for name depends on the `task_type`. For instance for task_type `LabVmsStartupTask` the name needs to be `LabVmAutoStart`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the dev test lab schedule. Valid value for name depends on the `task_type`. For instance for task_type `LabVmsStartupTask` the name needs to be `LabVmAutoStart`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param notificationSettings The notification setting of a schedule. A `notification_settings` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder notificationSettings(Output notificationSettings) {
            $.notificationSettings = notificationSettings;
            return this;
        }

        /**
         * @param notificationSettings The notification setting of a schedule. A `notification_settings` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder notificationSettings(ScheduleNotificationSettingsArgs notificationSettings) {
            return notificationSettings(Output.of(notificationSettings));
        }

        /**
         * @param resourceGroupName The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param status The status of this schedule. Possible values are `Enabled` and `Disabled`. Defaults to `Disabled`.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status The status of this schedule. Possible values are `Enabled` and `Disabled`. Defaults to `Disabled`.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param taskType The task type of the schedule. Possible values include `LabVmsShutdownTask` and `LabVmAutoStart`.
         * 
         * @return builder
         * 
         */
        public Builder taskType(Output taskType) {
            $.taskType = taskType;
            return this;
        }

        /**
         * @param taskType The task type of the schedule. Possible values include `LabVmsShutdownTask` and `LabVmAutoStart`.
         * 
         * @return builder
         * 
         */
        public Builder taskType(String taskType) {
            return taskType(Output.of(taskType));
        }

        /**
         * @param timeZoneId The time zone ID (e.g. Pacific Standard time).
         * 
         * @return builder
         * 
         */
        public Builder timeZoneId(Output timeZoneId) {
            $.timeZoneId = timeZoneId;
            return this;
        }

        /**
         * @param timeZoneId The time zone ID (e.g. Pacific Standard time).
         * 
         * @return builder
         * 
         */
        public Builder timeZoneId(String timeZoneId) {
            return timeZoneId(Output.of(timeZoneId));
        }

        /**
         * @param weeklyRecurrence The properties of a weekly schedule. If the schedule occurs only some days of the week, specify the weekly recurrence. A `weekly_recurrence` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder weeklyRecurrence(@Nullable Output weeklyRecurrence) {
            $.weeklyRecurrence = weeklyRecurrence;
            return this;
        }

        /**
         * @param weeklyRecurrence The properties of a weekly schedule. If the schedule occurs only some days of the week, specify the weekly recurrence. A `weekly_recurrence` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder weeklyRecurrence(ScheduleWeeklyRecurrenceArgs weeklyRecurrence) {
            return weeklyRecurrence(Output.of(weeklyRecurrence));
        }

        public ScheduleArgs build() {
            if ($.labName == null) {
                throw new MissingRequiredPropertyException("ScheduleArgs", "labName");
            }
            if ($.notificationSettings == null) {
                throw new MissingRequiredPropertyException("ScheduleArgs", "notificationSettings");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ScheduleArgs", "resourceGroupName");
            }
            if ($.taskType == null) {
                throw new MissingRequiredPropertyException("ScheduleArgs", "taskType");
            }
            if ($.timeZoneId == null) {
                throw new MissingRequiredPropertyException("ScheduleArgs", "timeZoneId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy