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

com.pulumi.azurenative.scheduler.outputs.JobRecurrenceResponse Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.scheduler.outputs;

import com.pulumi.azurenative.scheduler.outputs.JobRecurrenceScheduleResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class JobRecurrenceResponse {
    /**
     * @return Gets or sets the maximum number of times that the job should run.
     * 
     */
    private @Nullable Integer count;
    /**
     * @return Gets or sets the time at which the job will complete.
     * 
     */
    private @Nullable String endTime;
    /**
     * @return Gets or sets the frequency of recurrence (second, minute, hour, day, week, month).
     * 
     */
    private @Nullable String frequency;
    /**
     * @return Gets or sets the interval between retries.
     * 
     */
    private @Nullable Integer interval;
    private @Nullable JobRecurrenceScheduleResponse schedule;

    private JobRecurrenceResponse() {}
    /**
     * @return Gets or sets the maximum number of times that the job should run.
     * 
     */
    public Optional count() {
        return Optional.ofNullable(this.count);
    }
    /**
     * @return Gets or sets the time at which the job will complete.
     * 
     */
    public Optional endTime() {
        return Optional.ofNullable(this.endTime);
    }
    /**
     * @return Gets or sets the frequency of recurrence (second, minute, hour, day, week, month).
     * 
     */
    public Optional frequency() {
        return Optional.ofNullable(this.frequency);
    }
    /**
     * @return Gets or sets the interval between retries.
     * 
     */
    public Optional interval() {
        return Optional.ofNullable(this.interval);
    }
    public Optional schedule() {
        return Optional.ofNullable(this.schedule);
    }

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

    public static Builder builder(JobRecurrenceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer count;
        private @Nullable String endTime;
        private @Nullable String frequency;
        private @Nullable Integer interval;
        private @Nullable JobRecurrenceScheduleResponse schedule;
        public Builder() {}
        public Builder(JobRecurrenceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.count = defaults.count;
    	      this.endTime = defaults.endTime;
    	      this.frequency = defaults.frequency;
    	      this.interval = defaults.interval;
    	      this.schedule = defaults.schedule;
        }

        @CustomType.Setter
        public Builder count(@Nullable Integer count) {

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

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

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

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

            this.schedule = schedule;
            return this;
        }
        public JobRecurrenceResponse build() {
            final var _resultValue = new JobRecurrenceResponse();
            _resultValue.count = count;
            _resultValue.endTime = endTime;
            _resultValue.frequency = frequency;
            _resultValue.interval = interval;
            _resultValue.schedule = schedule;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy