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

com.pulumi.meraki.networks.outputs.AlertsSettingsAlertsResponse Maven / Gradle / Ivy

There is a newer version: 0.4.0-alpha.1731736975
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.meraki.networks.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.meraki.networks.outputs.AlertsSettingsAlertsResponseAlertDestinations;
import com.pulumi.meraki.networks.outputs.AlertsSettingsAlertsResponseFilters;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AlertsSettingsAlertsResponse {
    /**
     * @return A hash of destinations for this specific alert
     * 
     */
    private @Nullable AlertsSettingsAlertsResponseAlertDestinations alertDestinations;
    /**
     * @return A boolean depicting if the alert is turned on or off
     * 
     */
    private @Nullable Boolean enabled;
    /**
     * @return A hash of specific configuration data for the alert. Only filters specific to the alert will be updated.
     * 
     */
    private @Nullable AlertsSettingsAlertsResponseFilters filters;
    /**
     * @return The type of alert
     * 
     */
    private @Nullable String type;

    private AlertsSettingsAlertsResponse() {}
    /**
     * @return A hash of destinations for this specific alert
     * 
     */
    public Optional alertDestinations() {
        return Optional.ofNullable(this.alertDestinations);
    }
    /**
     * @return A boolean depicting if the alert is turned on or off
     * 
     */
    public Optional enabled() {
        return Optional.ofNullable(this.enabled);
    }
    /**
     * @return A hash of specific configuration data for the alert. Only filters specific to the alert will be updated.
     * 
     */
    public Optional filters() {
        return Optional.ofNullable(this.filters);
    }
    /**
     * @return The type of alert
     * 
     */
    public Optional type() {
        return Optional.ofNullable(this.type);
    }

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

    public static Builder builder(AlertsSettingsAlertsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable AlertsSettingsAlertsResponseAlertDestinations alertDestinations;
        private @Nullable Boolean enabled;
        private @Nullable AlertsSettingsAlertsResponseFilters filters;
        private @Nullable String type;
        public Builder() {}
        public Builder(AlertsSettingsAlertsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.alertDestinations = defaults.alertDestinations;
    	      this.enabled = defaults.enabled;
    	      this.filters = defaults.filters;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder alertDestinations(@Nullable AlertsSettingsAlertsResponseAlertDestinations alertDestinations) {

            this.alertDestinations = alertDestinations;
            return this;
        }
        @CustomType.Setter
        public Builder enabled(@Nullable Boolean enabled) {

            this.enabled = enabled;
            return this;
        }
        @CustomType.Setter
        public Builder filters(@Nullable AlertsSettingsAlertsResponseFilters filters) {

            this.filters = filters;
            return this;
        }
        @CustomType.Setter
        public Builder type(@Nullable String type) {

            this.type = type;
            return this;
        }
        public AlertsSettingsAlertsResponse build() {
            final var _resultValue = new AlertsSettingsAlertsResponse();
            _resultValue.alertDestinations = alertDestinations;
            _resultValue.enabled = enabled;
            _resultValue.filters = filters;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy