com.pulumi.azurenative.alertsmanagement.outputs.MonthlyRecurrenceResponse 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.alertsmanagement.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 java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MonthlyRecurrenceResponse {
/**
* @return Specifies the values for monthly recurrence pattern.
*
*/
private List daysOfMonth;
/**
* @return End time for recurrence.
*
*/
private @Nullable String endTime;
/**
* @return Specifies when the recurrence should be applied.
* Expected value is 'Monthly'.
*
*/
private String recurrenceType;
/**
* @return Start time for recurrence.
*
*/
private @Nullable String startTime;
private MonthlyRecurrenceResponse() {}
/**
* @return Specifies the values for monthly recurrence pattern.
*
*/
public List daysOfMonth() {
return this.daysOfMonth;
}
/**
* @return End time for recurrence.
*
*/
public Optional endTime() {
return Optional.ofNullable(this.endTime);
}
/**
* @return Specifies when the recurrence should be applied.
* Expected value is 'Monthly'.
*
*/
public String recurrenceType() {
return this.recurrenceType;
}
/**
* @return Start time for recurrence.
*
*/
public Optional startTime() {
return Optional.ofNullable(this.startTime);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MonthlyRecurrenceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List daysOfMonth;
private @Nullable String endTime;
private String recurrenceType;
private @Nullable String startTime;
public Builder() {}
public Builder(MonthlyRecurrenceResponse defaults) {
Objects.requireNonNull(defaults);
this.daysOfMonth = defaults.daysOfMonth;
this.endTime = defaults.endTime;
this.recurrenceType = defaults.recurrenceType;
this.startTime = defaults.startTime;
}
@CustomType.Setter
public Builder daysOfMonth(List daysOfMonth) {
if (daysOfMonth == null) {
throw new MissingRequiredPropertyException("MonthlyRecurrenceResponse", "daysOfMonth");
}
this.daysOfMonth = daysOfMonth;
return this;
}
public Builder daysOfMonth(Integer... daysOfMonth) {
return daysOfMonth(List.of(daysOfMonth));
}
@CustomType.Setter
public Builder endTime(@Nullable String endTime) {
this.endTime = endTime;
return this;
}
@CustomType.Setter
public Builder recurrenceType(String recurrenceType) {
if (recurrenceType == null) {
throw new MissingRequiredPropertyException("MonthlyRecurrenceResponse", "recurrenceType");
}
this.recurrenceType = recurrenceType;
return this;
}
@CustomType.Setter
public Builder startTime(@Nullable String startTime) {
this.startTime = startTime;
return this;
}
public MonthlyRecurrenceResponse build() {
final var _resultValue = new MonthlyRecurrenceResponse();
_resultValue.daysOfMonth = daysOfMonth;
_resultValue.endTime = endTime;
_resultValue.recurrenceType = recurrenceType;
_resultValue.startTime = startTime;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy