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

com.pulumi.azurenative.alertsmanagement.outputs.SuppressionConfigResponse Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.azurenative.alertsmanagement.outputs;

import com.pulumi.azurenative.alertsmanagement.outputs.SuppressionScheduleResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class SuppressionConfigResponse {
    /**
     * @return Specifies when the suppression should be applied
     * 
     */
    private String recurrenceType;
    /**
     * @return suppression schedule configuration
     * 
     */
    private @Nullable SuppressionScheduleResponse schedule;

    private SuppressionConfigResponse() {}
    /**
     * @return Specifies when the suppression should be applied
     * 
     */
    public String recurrenceType() {
        return this.recurrenceType;
    }
    /**
     * @return suppression schedule configuration
     * 
     */
    public Optional schedule() {
        return Optional.ofNullable(this.schedule);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(SuppressionConfigResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String recurrenceType;
        private @Nullable SuppressionScheduleResponse schedule;
        public Builder() {}
        public Builder(SuppressionConfigResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.recurrenceType = defaults.recurrenceType;
    	      this.schedule = defaults.schedule;
        }

        @CustomType.Setter
        public Builder recurrenceType(String recurrenceType) {
            if (recurrenceType == null) {
              throw new MissingRequiredPropertyException("SuppressionConfigResponse", "recurrenceType");
            }
            this.recurrenceType = recurrenceType;
            return this;
        }
        @CustomType.Setter
        public Builder schedule(@Nullable SuppressionScheduleResponse schedule) {

            this.schedule = schedule;
            return this;
        }
        public SuppressionConfigResponse build() {
            final var _resultValue = new SuppressionConfigResponse();
            _resultValue.recurrenceType = recurrenceType;
            _resultValue.schedule = schedule;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy