com.pulumi.azurenative.automation.outputs.AdvancedScheduleMonthlyOccurrenceResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.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 AdvancedScheduleMonthlyOccurrenceResponse {
/**
* @return Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday.
*
*/
private @Nullable String day;
/**
* @return Occurrence of the week within the month. Must be between 1 and 5
*
*/
private @Nullable Integer occurrence;
private AdvancedScheduleMonthlyOccurrenceResponse() {}
/**
* @return Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday.
*
*/
public Optional day() {
return Optional.ofNullable(this.day);
}
/**
* @return Occurrence of the week within the month. Must be between 1 and 5
*
*/
public Optional occurrence() {
return Optional.ofNullable(this.occurrence);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AdvancedScheduleMonthlyOccurrenceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String day;
private @Nullable Integer occurrence;
public Builder() {}
public Builder(AdvancedScheduleMonthlyOccurrenceResponse 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 AdvancedScheduleMonthlyOccurrenceResponse build() {
final var _resultValue = new AdvancedScheduleMonthlyOccurrenceResponse();
_resultValue.day = day;
_resultValue.occurrence = occurrence;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy