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

com.pulumi.sumologic.outputs.LogSearchScheduleNotificationServiceNowSearchNotificationFields Maven / Gradle / Ivy

The 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.sumologic.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class LogSearchScheduleNotificationServiceNowSearchNotificationFields {
    /**
     * @return The category that the event source uses to identify the event.
     * 
     */
    private @Nullable String eventType;
    /**
     * @return The physical or virtual device on which the event occurred.
     * 
     */
    private @Nullable String node;
    /**
     * @return The component on the node to which the event applies.
     * 
     */
    private @Nullable String resource;
    /**
     * @return An integer value representing the severity of the alert. Supported values are:
     * * 0 for Clear
     * * 1 for Critical
     * * 2 for Major
     * * 3 for Minor
     * * 4 for Warning
     * 
     */
    private @Nullable Integer severity;

    private LogSearchScheduleNotificationServiceNowSearchNotificationFields() {}
    /**
     * @return The category that the event source uses to identify the event.
     * 
     */
    public Optional eventType() {
        return Optional.ofNullable(this.eventType);
    }
    /**
     * @return The physical or virtual device on which the event occurred.
     * 
     */
    public Optional node() {
        return Optional.ofNullable(this.node);
    }
    /**
     * @return The component on the node to which the event applies.
     * 
     */
    public Optional resource() {
        return Optional.ofNullable(this.resource);
    }
    /**
     * @return An integer value representing the severity of the alert. Supported values are:
     * * 0 for Clear
     * * 1 for Critical
     * * 2 for Major
     * * 3 for Minor
     * * 4 for Warning
     * 
     */
    public Optional severity() {
        return Optional.ofNullable(this.severity);
    }

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

    public static Builder builder(LogSearchScheduleNotificationServiceNowSearchNotificationFields defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String eventType;
        private @Nullable String node;
        private @Nullable String resource;
        private @Nullable Integer severity;
        public Builder() {}
        public Builder(LogSearchScheduleNotificationServiceNowSearchNotificationFields defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.eventType = defaults.eventType;
    	      this.node = defaults.node;
    	      this.resource = defaults.resource;
    	      this.severity = defaults.severity;
        }

        @CustomType.Setter
        public Builder eventType(@Nullable String eventType) {

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

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

            this.resource = resource;
            return this;
        }
        @CustomType.Setter
        public Builder severity(@Nullable Integer severity) {

            this.severity = severity;
            return this;
        }
        public LogSearchScheduleNotificationServiceNowSearchNotificationFields build() {
            final var _resultValue = new LogSearchScheduleNotificationServiceNowSearchNotificationFields();
            _resultValue.eventType = eventType;
            _resultValue.node = node;
            _resultValue.resource = resource;
            _resultValue.severity = severity;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy