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

com.pulumi.azurenative.devtestlab.outputs.GetScheduleResult 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.devtestlab.outputs;

import com.pulumi.azurenative.devtestlab.outputs.DayDetailsResponse;
import com.pulumi.azurenative.devtestlab.outputs.HourDetailsResponse;
import com.pulumi.azurenative.devtestlab.outputs.NotificationSettingsResponse;
import com.pulumi.azurenative.devtestlab.outputs.WeekDetailsResponse;
import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class GetScheduleResult {
    /**
     * @return The creation date of the schedule.
     * 
     */
    private String createdDate;
    /**
     * @return If the schedule will occur once each day of the week, specify the daily recurrence.
     * 
     */
    private @Nullable DayDetailsResponse dailyRecurrence;
    /**
     * @return If the schedule will occur multiple times a day, specify the hourly recurrence.
     * 
     */
    private @Nullable HourDetailsResponse hourlyRecurrence;
    /**
     * @return The identifier of the resource.
     * 
     */
    private String id;
    /**
     * @return The location of the resource.
     * 
     */
    private @Nullable String location;
    /**
     * @return The name of the resource.
     * 
     */
    private String name;
    /**
     * @return Notification settings.
     * 
     */
    private @Nullable NotificationSettingsResponse notificationSettings;
    /**
     * @return The provisioning status of the resource.
     * 
     */
    private String provisioningState;
    /**
     * @return The status of the schedule (i.e. Enabled, Disabled)
     * 
     */
    private @Nullable String status;
    /**
     * @return The tags of the resource.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return The resource ID to which the schedule belongs
     * 
     */
    private @Nullable String targetResourceId;
    /**
     * @return The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).
     * 
     */
    private @Nullable String taskType;
    /**
     * @return The time zone ID (e.g. China Standard Time, Greenland Standard Time, Pacific Standard time, etc.). The possible values for this property can be found in `IReadOnlyCollection<string> TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds` (https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md)
     * 
     */
    private @Nullable String timeZoneId;
    /**
     * @return The type of the resource.
     * 
     */
    private String type;
    /**
     * @return The unique immutable identifier of a resource (Guid).
     * 
     */
    private String uniqueIdentifier;
    /**
     * @return If the schedule will occur only some days of the week, specify the weekly recurrence.
     * 
     */
    private @Nullable WeekDetailsResponse weeklyRecurrence;

    private GetScheduleResult() {}
    /**
     * @return The creation date of the schedule.
     * 
     */
    public String createdDate() {
        return this.createdDate;
    }
    /**
     * @return If the schedule will occur once each day of the week, specify the daily recurrence.
     * 
     */
    public Optional dailyRecurrence() {
        return Optional.ofNullable(this.dailyRecurrence);
    }
    /**
     * @return If the schedule will occur multiple times a day, specify the hourly recurrence.
     * 
     */
    public Optional hourlyRecurrence() {
        return Optional.ofNullable(this.hourlyRecurrence);
    }
    /**
     * @return The identifier of the resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The location of the resource.
     * 
     */
    public Optional location() {
        return Optional.ofNullable(this.location);
    }
    /**
     * @return The name of the resource.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Notification settings.
     * 
     */
    public Optional notificationSettings() {
        return Optional.ofNullable(this.notificationSettings);
    }
    /**
     * @return The provisioning status of the resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The status of the schedule (i.e. Enabled, Disabled)
     * 
     */
    public Optional status() {
        return Optional.ofNullable(this.status);
    }
    /**
     * @return The tags of the resource.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return The resource ID to which the schedule belongs
     * 
     */
    public Optional targetResourceId() {
        return Optional.ofNullable(this.targetResourceId);
    }
    /**
     * @return The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).
     * 
     */
    public Optional taskType() {
        return Optional.ofNullable(this.taskType);
    }
    /**
     * @return The time zone ID (e.g. China Standard Time, Greenland Standard Time, Pacific Standard time, etc.). The possible values for this property can be found in `IReadOnlyCollection<string> TimeZoneConverter.TZConvert.KnownWindowsTimeZoneIds` (https://github.com/mattjohnsonpint/TimeZoneConverter/blob/main/README.md)
     * 
     */
    public Optional timeZoneId() {
        return Optional.ofNullable(this.timeZoneId);
    }
    /**
     * @return The type of the resource.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return The unique immutable identifier of a resource (Guid).
     * 
     */
    public String uniqueIdentifier() {
        return this.uniqueIdentifier;
    }
    /**
     * @return If the schedule will occur only some days of the week, specify the weekly recurrence.
     * 
     */
    public Optional weeklyRecurrence() {
        return Optional.ofNullable(this.weeklyRecurrence);
    }

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

    public static Builder builder(GetScheduleResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String createdDate;
        private @Nullable DayDetailsResponse dailyRecurrence;
        private @Nullable HourDetailsResponse hourlyRecurrence;
        private String id;
        private @Nullable String location;
        private String name;
        private @Nullable NotificationSettingsResponse notificationSettings;
        private String provisioningState;
        private @Nullable String status;
        private @Nullable Map tags;
        private @Nullable String targetResourceId;
        private @Nullable String taskType;
        private @Nullable String timeZoneId;
        private String type;
        private String uniqueIdentifier;
        private @Nullable WeekDetailsResponse weeklyRecurrence;
        public Builder() {}
        public Builder(GetScheduleResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.createdDate = defaults.createdDate;
    	      this.dailyRecurrence = defaults.dailyRecurrence;
    	      this.hourlyRecurrence = defaults.hourlyRecurrence;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.notificationSettings = defaults.notificationSettings;
    	      this.provisioningState = defaults.provisioningState;
    	      this.status = defaults.status;
    	      this.tags = defaults.tags;
    	      this.targetResourceId = defaults.targetResourceId;
    	      this.taskType = defaults.taskType;
    	      this.timeZoneId = defaults.timeZoneId;
    	      this.type = defaults.type;
    	      this.uniqueIdentifier = defaults.uniqueIdentifier;
    	      this.weeklyRecurrence = defaults.weeklyRecurrence;
        }

        @CustomType.Setter
        public Builder createdDate(String createdDate) {
            if (createdDate == null) {
              throw new MissingRequiredPropertyException("GetScheduleResult", "createdDate");
            }
            this.createdDate = createdDate;
            return this;
        }
        @CustomType.Setter
        public Builder dailyRecurrence(@Nullable DayDetailsResponse dailyRecurrence) {

            this.dailyRecurrence = dailyRecurrence;
            return this;
        }
        @CustomType.Setter
        public Builder hourlyRecurrence(@Nullable HourDetailsResponse hourlyRecurrence) {

            this.hourlyRecurrence = hourlyRecurrence;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetScheduleResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder location(@Nullable String location) {

            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetScheduleResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder notificationSettings(@Nullable NotificationSettingsResponse notificationSettings) {

            this.notificationSettings = notificationSettings;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetScheduleResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder status(@Nullable String status) {

            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder targetResourceId(@Nullable String targetResourceId) {

            this.targetResourceId = targetResourceId;
            return this;
        }
        @CustomType.Setter
        public Builder taskType(@Nullable String taskType) {

            this.taskType = taskType;
            return this;
        }
        @CustomType.Setter
        public Builder timeZoneId(@Nullable String timeZoneId) {

            this.timeZoneId = timeZoneId;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetScheduleResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder uniqueIdentifier(String uniqueIdentifier) {
            if (uniqueIdentifier == null) {
              throw new MissingRequiredPropertyException("GetScheduleResult", "uniqueIdentifier");
            }
            this.uniqueIdentifier = uniqueIdentifier;
            return this;
        }
        @CustomType.Setter
        public Builder weeklyRecurrence(@Nullable WeekDetailsResponse weeklyRecurrence) {

            this.weeklyRecurrence = weeklyRecurrence;
            return this;
        }
        public GetScheduleResult build() {
            final var _resultValue = new GetScheduleResult();
            _resultValue.createdDate = createdDate;
            _resultValue.dailyRecurrence = dailyRecurrence;
            _resultValue.hourlyRecurrence = hourlyRecurrence;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.notificationSettings = notificationSettings;
            _resultValue.provisioningState = provisioningState;
            _resultValue.status = status;
            _resultValue.tags = tags;
            _resultValue.targetResourceId = targetResourceId;
            _resultValue.taskType = taskType;
            _resultValue.timeZoneId = timeZoneId;
            _resultValue.type = type;
            _resultValue.uniqueIdentifier = uniqueIdentifier;
            _resultValue.weeklyRecurrence = weeklyRecurrence;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy