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

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

import com.pulumi.azurenative.automation.outputs.AdvancedScheduleResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.Object;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetScheduleResult {
    /**
     * @return Gets or sets the advanced schedule.
     * 
     */
    private @Nullable AdvancedScheduleResponse advancedSchedule;
    /**
     * @return Gets or sets the creation time.
     * 
     */
    private @Nullable String creationTime;
    /**
     * @return Gets or sets the description.
     * 
     */
    private @Nullable String description;
    /**
     * @return Gets or sets the end time of the schedule.
     * 
     */
    private @Nullable String expiryTime;
    /**
     * @return Gets or sets the expiry time's offset in minutes.
     * 
     */
    private @Nullable Double expiryTimeOffsetMinutes;
    /**
     * @return Gets or sets the frequency of the schedule.
     * 
     */
    private @Nullable String frequency;
    /**
     * @return Fully qualified resource Id for the resource
     * 
     */
    private String id;
    /**
     * @return Gets or sets the interval of the schedule.
     * 
     */
    private @Nullable Object interval;
    /**
     * @return Gets or sets a value indicating whether this schedule is enabled.
     * 
     */
    private @Nullable Boolean isEnabled;
    /**
     * @return Gets or sets the last modified time.
     * 
     */
    private @Nullable String lastModifiedTime;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return Gets or sets the next run time of the schedule.
     * 
     */
    private @Nullable String nextRun;
    /**
     * @return Gets or sets the next run time's offset in minutes.
     * 
     */
    private @Nullable Double nextRunOffsetMinutes;
    /**
     * @return Gets or sets the start time of the schedule.
     * 
     */
    private @Nullable String startTime;
    /**
     * @return Gets the start time's offset in minutes.
     * 
     */
    private Double startTimeOffsetMinutes;
    /**
     * @return Gets or sets the time zone of the schedule.
     * 
     */
    private @Nullable String timeZone;
    /**
     * @return The type of the resource.
     * 
     */
    private String type;

    private GetScheduleResult() {}
    /**
     * @return Gets or sets the advanced schedule.
     * 
     */
    public Optional advancedSchedule() {
        return Optional.ofNullable(this.advancedSchedule);
    }
    /**
     * @return Gets or sets the creation time.
     * 
     */
    public Optional creationTime() {
        return Optional.ofNullable(this.creationTime);
    }
    /**
     * @return Gets or sets the description.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return Gets or sets the end time of the schedule.
     * 
     */
    public Optional expiryTime() {
        return Optional.ofNullable(this.expiryTime);
    }
    /**
     * @return Gets or sets the expiry time's offset in minutes.
     * 
     */
    public Optional expiryTimeOffsetMinutes() {
        return Optional.ofNullable(this.expiryTimeOffsetMinutes);
    }
    /**
     * @return Gets or sets the frequency of the schedule.
     * 
     */
    public Optional frequency() {
        return Optional.ofNullable(this.frequency);
    }
    /**
     * @return Fully qualified resource Id for the resource
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Gets or sets the interval of the schedule.
     * 
     */
    public Optional interval() {
        return Optional.ofNullable(this.interval);
    }
    /**
     * @return Gets or sets a value indicating whether this schedule is enabled.
     * 
     */
    public Optional isEnabled() {
        return Optional.ofNullable(this.isEnabled);
    }
    /**
     * @return Gets or sets the last modified time.
     * 
     */
    public Optional lastModifiedTime() {
        return Optional.ofNullable(this.lastModifiedTime);
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Gets or sets the next run time of the schedule.
     * 
     */
    public Optional nextRun() {
        return Optional.ofNullable(this.nextRun);
    }
    /**
     * @return Gets or sets the next run time's offset in minutes.
     * 
     */
    public Optional nextRunOffsetMinutes() {
        return Optional.ofNullable(this.nextRunOffsetMinutes);
    }
    /**
     * @return Gets or sets the start time of the schedule.
     * 
     */
    public Optional startTime() {
        return Optional.ofNullable(this.startTime);
    }
    /**
     * @return Gets the start time's offset in minutes.
     * 
     */
    public Double startTimeOffsetMinutes() {
        return this.startTimeOffsetMinutes;
    }
    /**
     * @return Gets or sets the time zone of the schedule.
     * 
     */
    public Optional timeZone() {
        return Optional.ofNullable(this.timeZone);
    }
    /**
     * @return The type of the resource.
     * 
     */
    public String type() {
        return this.type;
    }

    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 @Nullable AdvancedScheduleResponse advancedSchedule;
        private @Nullable String creationTime;
        private @Nullable String description;
        private @Nullable String expiryTime;
        private @Nullable Double expiryTimeOffsetMinutes;
        private @Nullable String frequency;
        private String id;
        private @Nullable Object interval;
        private @Nullable Boolean isEnabled;
        private @Nullable String lastModifiedTime;
        private String name;
        private @Nullable String nextRun;
        private @Nullable Double nextRunOffsetMinutes;
        private @Nullable String startTime;
        private Double startTimeOffsetMinutes;
        private @Nullable String timeZone;
        private String type;
        public Builder() {}
        public Builder(GetScheduleResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.advancedSchedule = defaults.advancedSchedule;
    	      this.creationTime = defaults.creationTime;
    	      this.description = defaults.description;
    	      this.expiryTime = defaults.expiryTime;
    	      this.expiryTimeOffsetMinutes = defaults.expiryTimeOffsetMinutes;
    	      this.frequency = defaults.frequency;
    	      this.id = defaults.id;
    	      this.interval = defaults.interval;
    	      this.isEnabled = defaults.isEnabled;
    	      this.lastModifiedTime = defaults.lastModifiedTime;
    	      this.name = defaults.name;
    	      this.nextRun = defaults.nextRun;
    	      this.nextRunOffsetMinutes = defaults.nextRunOffsetMinutes;
    	      this.startTime = defaults.startTime;
    	      this.startTimeOffsetMinutes = defaults.startTimeOffsetMinutes;
    	      this.timeZone = defaults.timeZone;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder advancedSchedule(@Nullable AdvancedScheduleResponse advancedSchedule) {

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

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

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

            this.expiryTime = expiryTime;
            return this;
        }
        @CustomType.Setter
        public Builder expiryTimeOffsetMinutes(@Nullable Double expiryTimeOffsetMinutes) {

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

            this.frequency = frequency;
            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 interval(@Nullable Object interval) {

            this.interval = interval;
            return this;
        }
        @CustomType.Setter
        public Builder isEnabled(@Nullable Boolean isEnabled) {

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

            this.lastModifiedTime = lastModifiedTime;
            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 nextRun(@Nullable String nextRun) {

            this.nextRun = nextRun;
            return this;
        }
        @CustomType.Setter
        public Builder nextRunOffsetMinutes(@Nullable Double nextRunOffsetMinutes) {

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

            this.startTime = startTime;
            return this;
        }
        @CustomType.Setter
        public Builder startTimeOffsetMinutes(Double startTimeOffsetMinutes) {
            if (startTimeOffsetMinutes == null) {
              throw new MissingRequiredPropertyException("GetScheduleResult", "startTimeOffsetMinutes");
            }
            this.startTimeOffsetMinutes = startTimeOffsetMinutes;
            return this;
        }
        @CustomType.Setter
        public Builder timeZone(@Nullable String timeZone) {

            this.timeZone = timeZone;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetScheduleResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetScheduleResult build() {
            final var _resultValue = new GetScheduleResult();
            _resultValue.advancedSchedule = advancedSchedule;
            _resultValue.creationTime = creationTime;
            _resultValue.description = description;
            _resultValue.expiryTime = expiryTime;
            _resultValue.expiryTimeOffsetMinutes = expiryTimeOffsetMinutes;
            _resultValue.frequency = frequency;
            _resultValue.id = id;
            _resultValue.interval = interval;
            _resultValue.isEnabled = isEnabled;
            _resultValue.lastModifiedTime = lastModifiedTime;
            _resultValue.name = name;
            _resultValue.nextRun = nextRun;
            _resultValue.nextRunOffsetMinutes = nextRunOffsetMinutes;
            _resultValue.startTime = startTime;
            _resultValue.startTimeOffsetMinutes = startTimeOffsetMinutes;
            _resultValue.timeZone = timeZone;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}