com.pulumi.azure.monitoring.outputs.AlertProcessingRuleActionGroupScheduleRecurrence Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.monitoring.outputs;
import com.pulumi.azure.monitoring.outputs.AlertProcessingRuleActionGroupScheduleRecurrenceDaily;
import com.pulumi.azure.monitoring.outputs.AlertProcessingRuleActionGroupScheduleRecurrenceMonthly;
import com.pulumi.azure.monitoring.outputs.AlertProcessingRuleActionGroupScheduleRecurrenceWeekly;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class AlertProcessingRuleActionGroupScheduleRecurrence {
/**
* @return One or more `daily` blocks as defined above.
*
*/
private @Nullable List dailies;
/**
* @return One or more `monthly` blocks as defined above.
*
*/
private @Nullable List monthlies;
/**
* @return One or more `weekly` blocks as defined below.
*
*/
private @Nullable List weeklies;
private AlertProcessingRuleActionGroupScheduleRecurrence() {}
/**
* @return One or more `daily` blocks as defined above.
*
*/
public List dailies() {
return this.dailies == null ? List.of() : this.dailies;
}
/**
* @return One or more `monthly` blocks as defined above.
*
*/
public List monthlies() {
return this.monthlies == null ? List.of() : this.monthlies;
}
/**
* @return One or more `weekly` blocks as defined below.
*
*/
public List weeklies() {
return this.weeklies == null ? List.of() : this.weeklies;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AlertProcessingRuleActionGroupScheduleRecurrence defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List dailies;
private @Nullable List monthlies;
private @Nullable List weeklies;
public Builder() {}
public Builder(AlertProcessingRuleActionGroupScheduleRecurrence defaults) {
Objects.requireNonNull(defaults);
this.dailies = defaults.dailies;
this.monthlies = defaults.monthlies;
this.weeklies = defaults.weeklies;
}
@CustomType.Setter
public Builder dailies(@Nullable List dailies) {
this.dailies = dailies;
return this;
}
public Builder dailies(AlertProcessingRuleActionGroupScheduleRecurrenceDaily... dailies) {
return dailies(List.of(dailies));
}
@CustomType.Setter
public Builder monthlies(@Nullable List monthlies) {
this.monthlies = monthlies;
return this;
}
public Builder monthlies(AlertProcessingRuleActionGroupScheduleRecurrenceMonthly... monthlies) {
return monthlies(List.of(monthlies));
}
@CustomType.Setter
public Builder weeklies(@Nullable List weeklies) {
this.weeklies = weeklies;
return this;
}
public Builder weeklies(AlertProcessingRuleActionGroupScheduleRecurrenceWeekly... weeklies) {
return weeklies(List.of(weeklies));
}
public AlertProcessingRuleActionGroupScheduleRecurrence build() {
final var _resultValue = new AlertProcessingRuleActionGroupScheduleRecurrence();
_resultValue.dailies = dailies;
_resultValue.monthlies = monthlies;
_resultValue.weeklies = weeklies;
return _resultValue;
}
}
}