All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.monitoring.outputs.AlertProcessingRuleSuppressionScheduleRecurrence Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** 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.AlertProcessingRuleSuppressionScheduleRecurrenceDaily;
import com.pulumi.azure.monitoring.outputs.AlertProcessingRuleSuppressionScheduleRecurrenceMonthly;
import com.pulumi.azure.monitoring.outputs.AlertProcessingRuleSuppressionScheduleRecurrenceWeekly;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class AlertProcessingRuleSuppressionScheduleRecurrence {
    /**
     * @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 AlertProcessingRuleSuppressionScheduleRecurrence() {}
    /**
     * @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(AlertProcessingRuleSuppressionScheduleRecurrence 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(AlertProcessingRuleSuppressionScheduleRecurrence 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(AlertProcessingRuleSuppressionScheduleRecurrenceDaily... dailies) {
            return dailies(List.of(dailies));
        }
        @CustomType.Setter
        public Builder monthlies(@Nullable List monthlies) {

            this.monthlies = monthlies;
            return this;
        }
        public Builder monthlies(AlertProcessingRuleSuppressionScheduleRecurrenceMonthly... monthlies) {
            return monthlies(List.of(monthlies));
        }
        @CustomType.Setter
        public Builder weeklies(@Nullable List weeklies) {

            this.weeklies = weeklies;
            return this;
        }
        public Builder weeklies(AlertProcessingRuleSuppressionScheduleRecurrenceWeekly... weeklies) {
            return weeklies(List.of(weeklies));
        }
        public AlertProcessingRuleSuppressionScheduleRecurrence build() {
            final var _resultValue = new AlertProcessingRuleSuppressionScheduleRecurrence();
            _resultValue.dailies = dailies;
            _resultValue.monthlies = monthlies;
            _resultValue.weeklies = weeklies;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy