com.pulumi.azurenative.storsimple.outputs.ScheduleRecurrenceResponse 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.storsimple.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class ScheduleRecurrenceResponse {
/**
* @return The recurrence type.
*
*/
private String recurrenceType;
/**
* @return The recurrence value.
*
*/
private Integer recurrenceValue;
/**
* @return The week days list. Applicable only for schedules of recurrence type 'weekly'.
*
*/
private @Nullable List weeklyDaysList;
private ScheduleRecurrenceResponse() {}
/**
* @return The recurrence type.
*
*/
public String recurrenceType() {
return this.recurrenceType;
}
/**
* @return The recurrence value.
*
*/
public Integer recurrenceValue() {
return this.recurrenceValue;
}
/**
* @return The week days list. Applicable only for schedules of recurrence type 'weekly'.
*
*/
public List weeklyDaysList() {
return this.weeklyDaysList == null ? List.of() : this.weeklyDaysList;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ScheduleRecurrenceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String recurrenceType;
private Integer recurrenceValue;
private @Nullable List weeklyDaysList;
public Builder() {}
public Builder(ScheduleRecurrenceResponse defaults) {
Objects.requireNonNull(defaults);
this.recurrenceType = defaults.recurrenceType;
this.recurrenceValue = defaults.recurrenceValue;
this.weeklyDaysList = defaults.weeklyDaysList;
}
@CustomType.Setter
public Builder recurrenceType(String recurrenceType) {
if (recurrenceType == null) {
throw new MissingRequiredPropertyException("ScheduleRecurrenceResponse", "recurrenceType");
}
this.recurrenceType = recurrenceType;
return this;
}
@CustomType.Setter
public Builder recurrenceValue(Integer recurrenceValue) {
if (recurrenceValue == null) {
throw new MissingRequiredPropertyException("ScheduleRecurrenceResponse", "recurrenceValue");
}
this.recurrenceValue = recurrenceValue;
return this;
}
@CustomType.Setter
public Builder weeklyDaysList(@Nullable List weeklyDaysList) {
this.weeklyDaysList = weeklyDaysList;
return this;
}
public Builder weeklyDaysList(String... weeklyDaysList) {
return weeklyDaysList(List.of(weeklyDaysList));
}
public ScheduleRecurrenceResponse build() {
final var _resultValue = new ScheduleRecurrenceResponse();
_resultValue.recurrenceType = recurrenceType;
_resultValue.recurrenceValue = recurrenceValue;
_resultValue.weeklyDaysList = weeklyDaysList;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy