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

com.pulumi.azurenative.securityinsights.HuntRelationArgs 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.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final HuntRelationArgs Empty = new HuntRelationArgs();

    /**
     * The hunt id (GUID)
     * 
     */
    @Import(name="huntId", required=true)
    private Output huntId;

    /**
     * @return The hunt id (GUID)
     * 
     */
    public Output huntId() {
        return this.huntId;
    }

    /**
     * The hunt relation id (GUID)
     * 
     */
    @Import(name="huntRelationId")
    private @Nullable Output huntRelationId;

    /**
     * @return The hunt relation id (GUID)
     * 
     */
    public Optional> huntRelationId() {
        return Optional.ofNullable(this.huntRelationId);
    }

    /**
     * List of labels relevant to this hunt
     * 
     */
    @Import(name="labels")
    private @Nullable Output> labels;

    /**
     * @return List of labels relevant to this hunt
     * 
     */
    public Optional>> labels() {
        return Optional.ofNullable(this.labels);
    }

    /**
     * The id of the related resource
     * 
     */
    @Import(name="relatedResourceId", required=true)
    private Output relatedResourceId;

    /**
     * @return The id of the related resource
     * 
     */
    public Output relatedResourceId() {
        return this.relatedResourceId;
    }

    /**
     * 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;
    }

    /**
     * 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 HuntRelationArgs() {}

    private HuntRelationArgs(HuntRelationArgs $) {
        this.huntId = $.huntId;
        this.huntRelationId = $.huntRelationId;
        this.labels = $.labels;
        this.relatedResourceId = $.relatedResourceId;
        this.resourceGroupName = $.resourceGroupName;
        this.workspaceName = $.workspaceName;
    }

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

    public static final class Builder {
        private HuntRelationArgs $;

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

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

        /**
         * @param huntId The hunt id (GUID)
         * 
         * @return builder
         * 
         */
        public Builder huntId(Output huntId) {
            $.huntId = huntId;
            return this;
        }

        /**
         * @param huntId The hunt id (GUID)
         * 
         * @return builder
         * 
         */
        public Builder huntId(String huntId) {
            return huntId(Output.of(huntId));
        }

        /**
         * @param huntRelationId The hunt relation id (GUID)
         * 
         * @return builder
         * 
         */
        public Builder huntRelationId(@Nullable Output huntRelationId) {
            $.huntRelationId = huntRelationId;
            return this;
        }

        /**
         * @param huntRelationId The hunt relation id (GUID)
         * 
         * @return builder
         * 
         */
        public Builder huntRelationId(String huntRelationId) {
            return huntRelationId(Output.of(huntRelationId));
        }

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

        /**
         * @param labels List of labels relevant to this hunt
         * 
         * @return builder
         * 
         */
        public Builder labels(List labels) {
            return labels(Output.of(labels));
        }

        /**
         * @param labels List of labels relevant to this hunt
         * 
         * @return builder
         * 
         */
        public Builder labels(String... labels) {
            return labels(List.of(labels));
        }

        /**
         * @param relatedResourceId The id of the related resource
         * 
         * @return builder
         * 
         */
        public Builder relatedResourceId(Output relatedResourceId) {
            $.relatedResourceId = relatedResourceId;
            return this;
        }

        /**
         * @param relatedResourceId The id of the related resource
         * 
         * @return builder
         * 
         */
        public Builder relatedResourceId(String relatedResourceId) {
            return relatedResourceId(Output.of(relatedResourceId));
        }

        /**
         * @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));
        }

        /**
         * @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 HuntRelationArgs build() {
            if ($.huntId == null) {
                throw new MissingRequiredPropertyException("HuntRelationArgs", "huntId");
            }
            if ($.relatedResourceId == null) {
                throw new MissingRequiredPropertyException("HuntRelationArgs", "relatedResourceId");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("HuntRelationArgs", "resourceGroupName");
            }
            if ($.workspaceName == null) {
                throw new MissingRequiredPropertyException("HuntRelationArgs", "workspaceName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy