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

com.pulumi.azurenative.securityinsights.outputs.GetMicrosoftSecurityIncidentCreationAlertRuleResult 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.securityinsights.outputs;

import com.pulumi.azurenative.securityinsights.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetMicrosoftSecurityIncidentCreationAlertRuleResult {
    /**
     * @return The Name of the alert rule template used to create this rule.
     * 
     */
    private @Nullable String alertRuleTemplateName;
    /**
     * @return The description of the alert rule.
     * 
     */
    private @Nullable String description;
    /**
     * @return The display name for alerts created by this alert rule.
     * 
     */
    private String displayName;
    /**
     * @return the alerts' displayNames on which the cases will not be generated
     * 
     */
    private @Nullable List displayNamesExcludeFilter;
    /**
     * @return the alerts' displayNames on which the cases will be generated
     * 
     */
    private @Nullable List displayNamesFilter;
    /**
     * @return Determines whether this alert rule is enabled or disabled.
     * 
     */
    private Boolean enabled;
    /**
     * @return Etag of the azure resource
     * 
     */
    private @Nullable String etag;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return The kind of the alert rule
     * Expected value is 'MicrosoftSecurityIncidentCreation'.
     * 
     */
    private String kind;
    /**
     * @return The last time that this alert has been modified.
     * 
     */
    private String lastModifiedUtc;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return The alerts' productName on which the cases will be generated
     * 
     */
    private String productFilter;
    /**
     * @return the alerts' severities on which the cases will be generated
     * 
     */
    private @Nullable List severitiesFilter;
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;

    private GetMicrosoftSecurityIncidentCreationAlertRuleResult() {}
    /**
     * @return The Name of the alert rule template used to create this rule.
     * 
     */
    public Optional alertRuleTemplateName() {
        return Optional.ofNullable(this.alertRuleTemplateName);
    }
    /**
     * @return The description of the alert rule.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return The display name for alerts created by this alert rule.
     * 
     */
    public String displayName() {
        return this.displayName;
    }
    /**
     * @return the alerts' displayNames on which the cases will not be generated
     * 
     */
    public List displayNamesExcludeFilter() {
        return this.displayNamesExcludeFilter == null ? List.of() : this.displayNamesExcludeFilter;
    }
    /**
     * @return the alerts' displayNames on which the cases will be generated
     * 
     */
    public List displayNamesFilter() {
        return this.displayNamesFilter == null ? List.of() : this.displayNamesFilter;
    }
    /**
     * @return Determines whether this alert rule is enabled or disabled.
     * 
     */
    public Boolean enabled() {
        return this.enabled;
    }
    /**
     * @return Etag of the azure resource
     * 
     */
    public Optional etag() {
        return Optional.ofNullable(this.etag);
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The kind of the alert rule
     * Expected value is 'MicrosoftSecurityIncidentCreation'.
     * 
     */
    public String kind() {
        return this.kind;
    }
    /**
     * @return The last time that this alert has been modified.
     * 
     */
    public String lastModifiedUtc() {
        return this.lastModifiedUtc;
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The alerts' productName on which the cases will be generated
     * 
     */
    public String productFilter() {
        return this.productFilter;
    }
    /**
     * @return the alerts' severities on which the cases will be generated
     * 
     */
    public List severitiesFilter() {
        return this.severitiesFilter == null ? List.of() : this.severitiesFilter;
    }
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetMicrosoftSecurityIncidentCreationAlertRuleResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String alertRuleTemplateName;
        private @Nullable String description;
        private String displayName;
        private @Nullable List displayNamesExcludeFilter;
        private @Nullable List displayNamesFilter;
        private Boolean enabled;
        private @Nullable String etag;
        private String id;
        private String kind;
        private String lastModifiedUtc;
        private String name;
        private String productFilter;
        private @Nullable List severitiesFilter;
        private SystemDataResponse systemData;
        private String type;
        public Builder() {}
        public Builder(GetMicrosoftSecurityIncidentCreationAlertRuleResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.alertRuleTemplateName = defaults.alertRuleTemplateName;
    	      this.description = defaults.description;
    	      this.displayName = defaults.displayName;
    	      this.displayNamesExcludeFilter = defaults.displayNamesExcludeFilter;
    	      this.displayNamesFilter = defaults.displayNamesFilter;
    	      this.enabled = defaults.enabled;
    	      this.etag = defaults.etag;
    	      this.id = defaults.id;
    	      this.kind = defaults.kind;
    	      this.lastModifiedUtc = defaults.lastModifiedUtc;
    	      this.name = defaults.name;
    	      this.productFilter = defaults.productFilter;
    	      this.severitiesFilter = defaults.severitiesFilter;
    	      this.systemData = defaults.systemData;
    	      this.type = defaults.type;
        }

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

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

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder displayName(String displayName) {
            if (displayName == null) {
              throw new MissingRequiredPropertyException("GetMicrosoftSecurityIncidentCreationAlertRuleResult", "displayName");
            }
            this.displayName = displayName;
            return this;
        }
        @CustomType.Setter
        public Builder displayNamesExcludeFilter(@Nullable List displayNamesExcludeFilter) {

            this.displayNamesExcludeFilter = displayNamesExcludeFilter;
            return this;
        }
        public Builder displayNamesExcludeFilter(String... displayNamesExcludeFilter) {
            return displayNamesExcludeFilter(List.of(displayNamesExcludeFilter));
        }
        @CustomType.Setter
        public Builder displayNamesFilter(@Nullable List displayNamesFilter) {

            this.displayNamesFilter = displayNamesFilter;
            return this;
        }
        public Builder displayNamesFilter(String... displayNamesFilter) {
            return displayNamesFilter(List.of(displayNamesFilter));
        }
        @CustomType.Setter
        public Builder enabled(Boolean enabled) {
            if (enabled == null) {
              throw new MissingRequiredPropertyException("GetMicrosoftSecurityIncidentCreationAlertRuleResult", "enabled");
            }
            this.enabled = enabled;
            return this;
        }
        @CustomType.Setter
        public Builder etag(@Nullable String etag) {

            this.etag = etag;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetMicrosoftSecurityIncidentCreationAlertRuleResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder kind(String kind) {
            if (kind == null) {
              throw new MissingRequiredPropertyException("GetMicrosoftSecurityIncidentCreationAlertRuleResult", "kind");
            }
            this.kind = kind;
            return this;
        }
        @CustomType.Setter
        public Builder lastModifiedUtc(String lastModifiedUtc) {
            if (lastModifiedUtc == null) {
              throw new MissingRequiredPropertyException("GetMicrosoftSecurityIncidentCreationAlertRuleResult", "lastModifiedUtc");
            }
            this.lastModifiedUtc = lastModifiedUtc;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetMicrosoftSecurityIncidentCreationAlertRuleResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder productFilter(String productFilter) {
            if (productFilter == null) {
              throw new MissingRequiredPropertyException("GetMicrosoftSecurityIncidentCreationAlertRuleResult", "productFilter");
            }
            this.productFilter = productFilter;
            return this;
        }
        @CustomType.Setter
        public Builder severitiesFilter(@Nullable List severitiesFilter) {

            this.severitiesFilter = severitiesFilter;
            return this;
        }
        public Builder severitiesFilter(String... severitiesFilter) {
            return severitiesFilter(List.of(severitiesFilter));
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetMicrosoftSecurityIncidentCreationAlertRuleResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetMicrosoftSecurityIncidentCreationAlertRuleResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetMicrosoftSecurityIncidentCreationAlertRuleResult build() {
            final var _resultValue = new GetMicrosoftSecurityIncidentCreationAlertRuleResult();
            _resultValue.alertRuleTemplateName = alertRuleTemplateName;
            _resultValue.description = description;
            _resultValue.displayName = displayName;
            _resultValue.displayNamesExcludeFilter = displayNamesExcludeFilter;
            _resultValue.displayNamesFilter = displayNamesFilter;
            _resultValue.enabled = enabled;
            _resultValue.etag = etag;
            _resultValue.id = id;
            _resultValue.kind = kind;
            _resultValue.lastModifiedUtc = lastModifiedUtc;
            _resultValue.name = name;
            _resultValue.productFilter = productFilter;
            _resultValue.severitiesFilter = severitiesFilter;
            _resultValue.systemData = systemData;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy