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

com.pulumi.azurenative.securityinsights.inputs.IncidentPropertiesActionArgs 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.inputs;

import com.pulumi.azurenative.securityinsights.enums.IncidentClassification;
import com.pulumi.azurenative.securityinsights.enums.IncidentClassificationReason;
import com.pulumi.azurenative.securityinsights.enums.IncidentSeverity;
import com.pulumi.azurenative.securityinsights.enums.IncidentStatus;
import com.pulumi.azurenative.securityinsights.inputs.IncidentLabelArgs;
import com.pulumi.azurenative.securityinsights.inputs.IncidentOwnerInfoArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class IncidentPropertiesActionArgs extends com.pulumi.resources.ResourceArgs {

    public static final IncidentPropertiesActionArgs Empty = new IncidentPropertiesActionArgs();

    /**
     * The reason the incident was closed
     * 
     */
    @Import(name="classification")
    private @Nullable Output> classification;

    /**
     * @return The reason the incident was closed
     * 
     */
    public Optional>> classification() {
        return Optional.ofNullable(this.classification);
    }

    /**
     * Describes the reason the incident was closed.
     * 
     */
    @Import(name="classificationComment")
    private @Nullable Output classificationComment;

    /**
     * @return Describes the reason the incident was closed.
     * 
     */
    public Optional> classificationComment() {
        return Optional.ofNullable(this.classificationComment);
    }

    /**
     * The classification reason the incident was closed with
     * 
     */
    @Import(name="classificationReason")
    private @Nullable Output> classificationReason;

    /**
     * @return The classification reason the incident was closed with
     * 
     */
    public Optional>> classificationReason() {
        return Optional.ofNullable(this.classificationReason);
    }

    /**
     * List of labels to add to the incident.
     * 
     */
    @Import(name="labels")
    private @Nullable Output> labels;

    /**
     * @return List of labels to add to the incident.
     * 
     */
    public Optional>> labels() {
        return Optional.ofNullable(this.labels);
    }

    /**
     * Information on the user an incident is assigned to
     * 
     */
    @Import(name="owner")
    private @Nullable Output owner;

    /**
     * @return Information on the user an incident is assigned to
     * 
     */
    public Optional> owner() {
        return Optional.ofNullable(this.owner);
    }

    /**
     * The severity of the incident
     * 
     */
    @Import(name="severity")
    private @Nullable Output> severity;

    /**
     * @return The severity of the incident
     * 
     */
    public Optional>> severity() {
        return Optional.ofNullable(this.severity);
    }

    /**
     * The status of the incident
     * 
     */
    @Import(name="status")
    private @Nullable Output> status;

    /**
     * @return The status of the incident
     * 
     */
    public Optional>> status() {
        return Optional.ofNullable(this.status);
    }

    private IncidentPropertiesActionArgs() {}

    private IncidentPropertiesActionArgs(IncidentPropertiesActionArgs $) {
        this.classification = $.classification;
        this.classificationComment = $.classificationComment;
        this.classificationReason = $.classificationReason;
        this.labels = $.labels;
        this.owner = $.owner;
        this.severity = $.severity;
        this.status = $.status;
    }

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

    public static final class Builder {
        private IncidentPropertiesActionArgs $;

        public Builder() {
            $ = new IncidentPropertiesActionArgs();
        }

        public Builder(IncidentPropertiesActionArgs defaults) {
            $ = new IncidentPropertiesActionArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param classification The reason the incident was closed
         * 
         * @return builder
         * 
         */
        public Builder classification(@Nullable Output> classification) {
            $.classification = classification;
            return this;
        }

        /**
         * @param classification The reason the incident was closed
         * 
         * @return builder
         * 
         */
        public Builder classification(Either classification) {
            return classification(Output.of(classification));
        }

        /**
         * @param classification The reason the incident was closed
         * 
         * @return builder
         * 
         */
        public Builder classification(String classification) {
            return classification(Either.ofLeft(classification));
        }

        /**
         * @param classification The reason the incident was closed
         * 
         * @return builder
         * 
         */
        public Builder classification(IncidentClassification classification) {
            return classification(Either.ofRight(classification));
        }

        /**
         * @param classificationComment Describes the reason the incident was closed.
         * 
         * @return builder
         * 
         */
        public Builder classificationComment(@Nullable Output classificationComment) {
            $.classificationComment = classificationComment;
            return this;
        }

        /**
         * @param classificationComment Describes the reason the incident was closed.
         * 
         * @return builder
         * 
         */
        public Builder classificationComment(String classificationComment) {
            return classificationComment(Output.of(classificationComment));
        }

        /**
         * @param classificationReason The classification reason the incident was closed with
         * 
         * @return builder
         * 
         */
        public Builder classificationReason(@Nullable Output> classificationReason) {
            $.classificationReason = classificationReason;
            return this;
        }

        /**
         * @param classificationReason The classification reason the incident was closed with
         * 
         * @return builder
         * 
         */
        public Builder classificationReason(Either classificationReason) {
            return classificationReason(Output.of(classificationReason));
        }

        /**
         * @param classificationReason The classification reason the incident was closed with
         * 
         * @return builder
         * 
         */
        public Builder classificationReason(String classificationReason) {
            return classificationReason(Either.ofLeft(classificationReason));
        }

        /**
         * @param classificationReason The classification reason the incident was closed with
         * 
         * @return builder
         * 
         */
        public Builder classificationReason(IncidentClassificationReason classificationReason) {
            return classificationReason(Either.ofRight(classificationReason));
        }

        /**
         * @param labels List of labels to add to the incident.
         * 
         * @return builder
         * 
         */
        public Builder labels(@Nullable Output> labels) {
            $.labels = labels;
            return this;
        }

        /**
         * @param labels List of labels to add to the incident.
         * 
         * @return builder
         * 
         */
        public Builder labels(List labels) {
            return labels(Output.of(labels));
        }

        /**
         * @param labels List of labels to add to the incident.
         * 
         * @return builder
         * 
         */
        public Builder labels(IncidentLabelArgs... labels) {
            return labels(List.of(labels));
        }

        /**
         * @param owner Information on the user an incident is assigned to
         * 
         * @return builder
         * 
         */
        public Builder owner(@Nullable Output owner) {
            $.owner = owner;
            return this;
        }

        /**
         * @param owner Information on the user an incident is assigned to
         * 
         * @return builder
         * 
         */
        public Builder owner(IncidentOwnerInfoArgs owner) {
            return owner(Output.of(owner));
        }

        /**
         * @param severity The severity of the incident
         * 
         * @return builder
         * 
         */
        public Builder severity(@Nullable Output> severity) {
            $.severity = severity;
            return this;
        }

        /**
         * @param severity The severity of the incident
         * 
         * @return builder
         * 
         */
        public Builder severity(Either severity) {
            return severity(Output.of(severity));
        }

        /**
         * @param severity The severity of the incident
         * 
         * @return builder
         * 
         */
        public Builder severity(String severity) {
            return severity(Either.ofLeft(severity));
        }

        /**
         * @param severity The severity of the incident
         * 
         * @return builder
         * 
         */
        public Builder severity(IncidentSeverity severity) {
            return severity(Either.ofRight(severity));
        }

        /**
         * @param status The status of the incident
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output> status) {
            $.status = status;
            return this;
        }

        /**
         * @param status The status of the incident
         * 
         * @return builder
         * 
         */
        public Builder status(Either status) {
            return status(Output.of(status));
        }

        /**
         * @param status The status of the incident
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Either.ofLeft(status));
        }

        /**
         * @param status The status of the incident
         * 
         * @return builder
         * 
         */
        public Builder status(IncidentStatus status) {
            return status(Either.ofRight(status));
        }

        public IncidentPropertiesActionArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy