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

com.pulumi.azurenative.securityinsights.IncidentTaskArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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;

import com.pulumi.azurenative.securityinsights.enums.IncidentTaskStatus;
import com.pulumi.azurenative.securityinsights.inputs.ClientInfoArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final IncidentTaskArgs Empty = new IncidentTaskArgs();

    /**
     * Information on the client (user or application) that made some action
     * 
     */
    @Import(name="createdBy")
    private @Nullable Output createdBy;

    /**
     * @return Information on the client (user or application) that made some action
     * 
     */
    public Optional> createdBy() {
        return Optional.ofNullable(this.createdBy);
    }

    /**
     * The description of the task
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

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

    /**
     * Incident ID
     * 
     */
    @Import(name="incidentId", required=true)
    private Output incidentId;

    /**
     * @return Incident ID
     * 
     */
    public Output incidentId() {
        return this.incidentId;
    }

    /**
     * Incident task ID
     * 
     */
    @Import(name="incidentTaskId")
    private @Nullable Output incidentTaskId;

    /**
     * @return Incident task ID
     * 
     */
    public Optional> incidentTaskId() {
        return Optional.ofNullable(this.incidentTaskId);
    }

    /**
     * Information on the client (user or application) that made some action
     * 
     */
    @Import(name="lastModifiedBy")
    private @Nullable Output lastModifiedBy;

    /**
     * @return Information on the client (user or application) that made some action
     * 
     */
    public Optional> lastModifiedBy() {
        return Optional.ofNullable(this.lastModifiedBy);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    @Import(name="status", required=true)
    private Output> status;

    public Output> status() {
        return this.status;
    }

    /**
     * The title of the task
     * 
     */
    @Import(name="title", required=true)
    private Output title;

    /**
     * @return The title of the task
     * 
     */
    public Output title() {
        return this.title;
    }

    /**
     * The name of the workspace.
     * 
     */
    @Import(name="workspaceName", required=true)
    private Output workspaceName;

    /**
     * @return The name of the workspace.
     * 
     */
    public Output workspaceName() {
        return this.workspaceName;
    }

    private IncidentTaskArgs() {}

    private IncidentTaskArgs(IncidentTaskArgs $) {
        this.createdBy = $.createdBy;
        this.description = $.description;
        this.incidentId = $.incidentId;
        this.incidentTaskId = $.incidentTaskId;
        this.lastModifiedBy = $.lastModifiedBy;
        this.resourceGroupName = $.resourceGroupName;
        this.status = $.status;
        this.title = $.title;
        this.workspaceName = $.workspaceName;
    }

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

    public static final class Builder {
        private IncidentTaskArgs $;

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

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

        /**
         * @param createdBy Information on the client (user or application) that made some action
         * 
         * @return builder
         * 
         */
        public Builder createdBy(@Nullable Output createdBy) {
            $.createdBy = createdBy;
            return this;
        }

        /**
         * @param createdBy Information on the client (user or application) that made some action
         * 
         * @return builder
         * 
         */
        public Builder createdBy(ClientInfoArgs createdBy) {
            return createdBy(Output.of(createdBy));
        }

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

        /**
         * @param description The description of the task
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param incidentId Incident ID
         * 
         * @return builder
         * 
         */
        public Builder incidentId(Output incidentId) {
            $.incidentId = incidentId;
            return this;
        }

        /**
         * @param incidentId Incident ID
         * 
         * @return builder
         * 
         */
        public Builder incidentId(String incidentId) {
            return incidentId(Output.of(incidentId));
        }

        /**
         * @param incidentTaskId Incident task ID
         * 
         * @return builder
         * 
         */
        public Builder incidentTaskId(@Nullable Output incidentTaskId) {
            $.incidentTaskId = incidentTaskId;
            return this;
        }

        /**
         * @param incidentTaskId Incident task ID
         * 
         * @return builder
         * 
         */
        public Builder incidentTaskId(String incidentTaskId) {
            return incidentTaskId(Output.of(incidentTaskId));
        }

        /**
         * @param lastModifiedBy Information on the client (user or application) that made some action
         * 
         * @return builder
         * 
         */
        public Builder lastModifiedBy(@Nullable Output lastModifiedBy) {
            $.lastModifiedBy = lastModifiedBy;
            return this;
        }

        /**
         * @param lastModifiedBy Information on the client (user or application) that made some action
         * 
         * @return builder
         * 
         */
        public Builder lastModifiedBy(ClientInfoArgs lastModifiedBy) {
            return lastModifiedBy(Output.of(lastModifiedBy));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        public Builder status(Output> status) {
            $.status = status;
            return this;
        }

        public Builder status(Either status) {
            return status(Output.of(status));
        }

        public Builder status(String status) {
            return status(Either.ofLeft(status));
        }

        public Builder status(IncidentTaskStatus status) {
            return status(Either.ofRight(status));
        }

        /**
         * @param title The title of the task
         * 
         * @return builder
         * 
         */
        public Builder title(Output title) {
            $.title = title;
            return this;
        }

        /**
         * @param title The title of the task
         * 
         * @return builder
         * 
         */
        public Builder title(String title) {
            return title(Output.of(title));
        }

        /**
         * @param workspaceName The name of the workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(Output workspaceName) {
            $.workspaceName = workspaceName;
            return this;
        }

        /**
         * @param workspaceName The name of the workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(String workspaceName) {
            return workspaceName(Output.of(workspaceName));
        }

        public IncidentTaskArgs build() {
            if ($.incidentId == null) {
                throw new MissingRequiredPropertyException("IncidentTaskArgs", "incidentId");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("IncidentTaskArgs", "resourceGroupName");
            }
            if ($.status == null) {
                throw new MissingRequiredPropertyException("IncidentTaskArgs", "status");
            }
            if ($.title == null) {
                throw new MissingRequiredPropertyException("IncidentTaskArgs", "title");
            }
            if ($.workspaceName == null) {
                throw new MissingRequiredPropertyException("IncidentTaskArgs", "workspaceName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy