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

com.pulumi.azurenative.labservices.ScheduleArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.labservices.inputs.RecurrencePatternArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
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 name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
     * 
     */
    @Import(name="labName", required=true)
    private Output labName;

    /**
     * @return The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
     * 
     */
    public Output labName() {
        return this.labName;
    }

    /**
     * Notes for this schedule.
     * 
     */
    @Import(name="notes")
    private @Nullable Output notes;

    /**
     * @return Notes for this schedule.
     * 
     */
    public Optional> notes() {
        return Optional.ofNullable(this.notes);
    }

    /**
     * The recurrence pattern of the scheduled actions.
     * 
     */
    @Import(name="recurrencePattern")
    private @Nullable Output recurrencePattern;

    /**
     * @return The recurrence pattern of the scheduled actions.
     * 
     */
    public Optional> recurrencePattern() {
        return Optional.ofNullable(this.recurrencePattern);
    }

    /**
     * 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 schedule that uniquely identifies it within containing lab. Used in resource URIs.
     * 
     */
    @Import(name="scheduleName")
    private @Nullable Output scheduleName;

    /**
     * @return The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.
     * 
     */
    public Optional> scheduleName() {
        return Optional.ofNullable(this.scheduleName);
    }

    /**
     * When lab user virtual machines will be started. Timestamp offsets will be ignored and timeZoneId is used instead.
     * 
     */
    @Import(name="startAt")
    private @Nullable Output startAt;

    /**
     * @return When lab user virtual machines will be started. Timestamp offsets will be ignored and timeZoneId is used instead.
     * 
     */
    public Optional> startAt() {
        return Optional.ofNullable(this.startAt);
    }

    /**
     * When lab user virtual machines will be stopped. Timestamp offsets will be ignored and timeZoneId is used instead.
     * 
     */
    @Import(name="stopAt", required=true)
    private Output stopAt;

    /**
     * @return When lab user virtual machines will be stopped. Timestamp offsets will be ignored and timeZoneId is used instead.
     * 
     */
    public Output stopAt() {
        return this.stopAt;
    }

    /**
     * The IANA timezone id for the schedule.
     * 
     */
    @Import(name="timeZoneId", required=true)
    private Output timeZoneId;

    /**
     * @return The IANA timezone id for the schedule.
     * 
     */
    public Output timeZoneId() {
        return this.timeZoneId;
    }

    private ScheduleArgs() {}

    private ScheduleArgs(ScheduleArgs $) {
        this.labName = $.labName;
        this.notes = $.notes;
        this.recurrencePattern = $.recurrencePattern;
        this.resourceGroupName = $.resourceGroupName;
        this.scheduleName = $.scheduleName;
        this.startAt = $.startAt;
        this.stopAt = $.stopAt;
        this.timeZoneId = $.timeZoneId;
    }

    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 labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
         * 
         * @return builder
         * 
         */
        public Builder labName(Output labName) {
            $.labName = labName;
            return this;
        }

        /**
         * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
         * 
         * @return builder
         * 
         */
        public Builder labName(String labName) {
            return labName(Output.of(labName));
        }

        /**
         * @param notes Notes for this schedule.
         * 
         * @return builder
         * 
         */
        public Builder notes(@Nullable Output notes) {
            $.notes = notes;
            return this;
        }

        /**
         * @param notes Notes for this schedule.
         * 
         * @return builder
         * 
         */
        public Builder notes(String notes) {
            return notes(Output.of(notes));
        }

        /**
         * @param recurrencePattern The recurrence pattern of the scheduled actions.
         * 
         * @return builder
         * 
         */
        public Builder recurrencePattern(@Nullable Output recurrencePattern) {
            $.recurrencePattern = recurrencePattern;
            return this;
        }

        /**
         * @param recurrencePattern The recurrence pattern of the scheduled actions.
         * 
         * @return builder
         * 
         */
        public Builder recurrencePattern(RecurrencePatternArgs recurrencePattern) {
            return recurrencePattern(Output.of(recurrencePattern));
        }

        /**
         * @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 scheduleName The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.
         * 
         * @return builder
         * 
         */
        public Builder scheduleName(@Nullable Output scheduleName) {
            $.scheduleName = scheduleName;
            return this;
        }

        /**
         * @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.
         * 
         * @return builder
         * 
         */
        public Builder scheduleName(String scheduleName) {
            return scheduleName(Output.of(scheduleName));
        }

        /**
         * @param startAt When lab user virtual machines will be started. Timestamp offsets will be ignored and timeZoneId is used instead.
         * 
         * @return builder
         * 
         */
        public Builder startAt(@Nullable Output startAt) {
            $.startAt = startAt;
            return this;
        }

        /**
         * @param startAt When lab user virtual machines will be started. Timestamp offsets will be ignored and timeZoneId is used instead.
         * 
         * @return builder
         * 
         */
        public Builder startAt(String startAt) {
            return startAt(Output.of(startAt));
        }

        /**
         * @param stopAt When lab user virtual machines will be stopped. Timestamp offsets will be ignored and timeZoneId is used instead.
         * 
         * @return builder
         * 
         */
        public Builder stopAt(Output stopAt) {
            $.stopAt = stopAt;
            return this;
        }

        /**
         * @param stopAt When lab user virtual machines will be stopped. Timestamp offsets will be ignored and timeZoneId is used instead.
         * 
         * @return builder
         * 
         */
        public Builder stopAt(String stopAt) {
            return stopAt(Output.of(stopAt));
        }

        /**
         * @param timeZoneId The IANA timezone id for the schedule.
         * 
         * @return builder
         * 
         */
        public Builder timeZoneId(Output timeZoneId) {
            $.timeZoneId = timeZoneId;
            return this;
        }

        /**
         * @param timeZoneId The IANA timezone id for the schedule.
         * 
         * @return builder
         * 
         */
        public Builder timeZoneId(String timeZoneId) {
            return timeZoneId(Output.of(timeZoneId));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy