
com.pulumi.azurenative.scheduler.outputs.JobRecurrenceScheduleMonthlyOccurrenceResponse 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.azurenative.scheduler.outputs;
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 JobRecurrenceScheduleMonthlyOccurrenceResponse {
/**
* @return Gets or sets the day. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday.
*
*/
private @Nullable String day;
/**
* @return Gets or sets the occurrence. Must be between -5 and 5.
*
*/
private @Nullable Integer occurrence;
private JobRecurrenceScheduleMonthlyOccurrenceResponse() {}
/**
* @return Gets or sets the day. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday.
*
*/
public Optional day() {
return Optional.ofNullable(this.day);
}
/**
* @return Gets or sets the occurrence. Must be between -5 and 5.
*
*/
public Optional occurrence() {
return Optional.ofNullable(this.occurrence);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(JobRecurrenceScheduleMonthlyOccurrenceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String day;
private @Nullable Integer occurrence;
public Builder() {}
public Builder(JobRecurrenceScheduleMonthlyOccurrenceResponse defaults) {
Objects.requireNonNull(defaults);
this.day = defaults.day;
this.occurrence = defaults.occurrence;
}
@CustomType.Setter
public Builder day(@Nullable String day) {
this.day = day;
return this;
}
@CustomType.Setter
public Builder occurrence(@Nullable Integer occurrence) {
this.occurrence = occurrence;
return this;
}
public JobRecurrenceScheduleMonthlyOccurrenceResponse build() {
final var _resultValue = new JobRecurrenceScheduleMonthlyOccurrenceResponse();
_resultValue.day = day;
_resultValue.occurrence = occurrence;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy