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

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


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

    public static final WatchlistItemArgs Empty = new WatchlistItemArgs();

    /**
     * The time the watchlist item was created
     * 
     */
    @Import(name="created")
    private @Nullable Output created;

    /**
     * @return The time the watchlist item was created
     * 
     */
    public Optional> created() {
        return Optional.ofNullable(this.created);
    }

    /**
     * Describes a user that created the watchlist item
     * 
     */
    @Import(name="createdBy")
    private @Nullable Output createdBy;

    /**
     * @return Describes a user that created the watchlist item
     * 
     */
    public Optional> createdBy() {
        return Optional.ofNullable(this.createdBy);
    }

    /**
     * key-value pairs for a watchlist item entity mapping
     * 
     */
    @Import(name="entityMapping")
    private @Nullable Output entityMapping;

    /**
     * @return key-value pairs for a watchlist item entity mapping
     * 
     */
    public Optional> entityMapping() {
        return Optional.ofNullable(this.entityMapping);
    }

    /**
     * A flag that indicates if the watchlist item is deleted or not
     * 
     */
    @Import(name="isDeleted")
    private @Nullable Output isDeleted;

    /**
     * @return A flag that indicates if the watchlist item is deleted or not
     * 
     */
    public Optional> isDeleted() {
        return Optional.ofNullable(this.isDeleted);
    }

    /**
     * key-value pairs for a watchlist item
     * 
     */
    @Import(name="itemsKeyValue", required=true)
    private Output itemsKeyValue;

    /**
     * @return key-value pairs for a watchlist item
     * 
     */
    public Output itemsKeyValue() {
        return this.itemsKeyValue;
    }

    /**
     * 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 tenantId to which the watchlist item belongs to
     * 
     */
    @Import(name="tenantId")
    private @Nullable Output tenantId;

    /**
     * @return The tenantId to which the watchlist item belongs to
     * 
     */
    public Optional> tenantId() {
        return Optional.ofNullable(this.tenantId);
    }

    /**
     * The last time the watchlist item was updated
     * 
     */
    @Import(name="updated")
    private @Nullable Output updated;

    /**
     * @return The last time the watchlist item was updated
     * 
     */
    public Optional> updated() {
        return Optional.ofNullable(this.updated);
    }

    /**
     * Describes a user that updated the watchlist item
     * 
     */
    @Import(name="updatedBy")
    private @Nullable Output updatedBy;

    /**
     * @return Describes a user that updated the watchlist item
     * 
     */
    public Optional> updatedBy() {
        return Optional.ofNullable(this.updatedBy);
    }

    /**
     * The watchlist alias
     * 
     */
    @Import(name="watchlistAlias", required=true)
    private Output watchlistAlias;

    /**
     * @return The watchlist alias
     * 
     */
    public Output watchlistAlias() {
        return this.watchlistAlias;
    }

    /**
     * The id (a Guid) of the watchlist item
     * 
     */
    @Import(name="watchlistItemId")
    private @Nullable Output watchlistItemId;

    /**
     * @return The id (a Guid) of the watchlist item
     * 
     */
    public Optional> watchlistItemId() {
        return Optional.ofNullable(this.watchlistItemId);
    }

    /**
     * The type of the watchlist item
     * 
     */
    @Import(name="watchlistItemType")
    private @Nullable Output watchlistItemType;

    /**
     * @return The type of the watchlist item
     * 
     */
    public Optional> watchlistItemType() {
        return Optional.ofNullable(this.watchlistItemType);
    }

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

    private WatchlistItemArgs(WatchlistItemArgs $) {
        this.created = $.created;
        this.createdBy = $.createdBy;
        this.entityMapping = $.entityMapping;
        this.isDeleted = $.isDeleted;
        this.itemsKeyValue = $.itemsKeyValue;
        this.resourceGroupName = $.resourceGroupName;
        this.tenantId = $.tenantId;
        this.updated = $.updated;
        this.updatedBy = $.updatedBy;
        this.watchlistAlias = $.watchlistAlias;
        this.watchlistItemId = $.watchlistItemId;
        this.watchlistItemType = $.watchlistItemType;
        this.workspaceName = $.workspaceName;
    }

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

    public static final class Builder {
        private WatchlistItemArgs $;

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

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

        /**
         * @param created The time the watchlist item was created
         * 
         * @return builder
         * 
         */
        public Builder created(@Nullable Output created) {
            $.created = created;
            return this;
        }

        /**
         * @param created The time the watchlist item was created
         * 
         * @return builder
         * 
         */
        public Builder created(String created) {
            return created(Output.of(created));
        }

        /**
         * @param createdBy Describes a user that created the watchlist item
         * 
         * @return builder
         * 
         */
        public Builder createdBy(@Nullable Output createdBy) {
            $.createdBy = createdBy;
            return this;
        }

        /**
         * @param createdBy Describes a user that created the watchlist item
         * 
         * @return builder
         * 
         */
        public Builder createdBy(WatchlistUserInfoArgs createdBy) {
            return createdBy(Output.of(createdBy));
        }

        /**
         * @param entityMapping key-value pairs for a watchlist item entity mapping
         * 
         * @return builder
         * 
         */
        public Builder entityMapping(@Nullable Output entityMapping) {
            $.entityMapping = entityMapping;
            return this;
        }

        /**
         * @param entityMapping key-value pairs for a watchlist item entity mapping
         * 
         * @return builder
         * 
         */
        public Builder entityMapping(Object entityMapping) {
            return entityMapping(Output.of(entityMapping));
        }

        /**
         * @param isDeleted A flag that indicates if the watchlist item is deleted or not
         * 
         * @return builder
         * 
         */
        public Builder isDeleted(@Nullable Output isDeleted) {
            $.isDeleted = isDeleted;
            return this;
        }

        /**
         * @param isDeleted A flag that indicates if the watchlist item is deleted or not
         * 
         * @return builder
         * 
         */
        public Builder isDeleted(Boolean isDeleted) {
            return isDeleted(Output.of(isDeleted));
        }

        /**
         * @param itemsKeyValue key-value pairs for a watchlist item
         * 
         * @return builder
         * 
         */
        public Builder itemsKeyValue(Output itemsKeyValue) {
            $.itemsKeyValue = itemsKeyValue;
            return this;
        }

        /**
         * @param itemsKeyValue key-value pairs for a watchlist item
         * 
         * @return builder
         * 
         */
        public Builder itemsKeyValue(Object itemsKeyValue) {
            return itemsKeyValue(Output.of(itemsKeyValue));
        }

        /**
         * @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 tenantId The tenantId to which the watchlist item belongs to
         * 
         * @return builder
         * 
         */
        public Builder tenantId(@Nullable Output tenantId) {
            $.tenantId = tenantId;
            return this;
        }

        /**
         * @param tenantId The tenantId to which the watchlist item belongs to
         * 
         * @return builder
         * 
         */
        public Builder tenantId(String tenantId) {
            return tenantId(Output.of(tenantId));
        }

        /**
         * @param updated The last time the watchlist item was updated
         * 
         * @return builder
         * 
         */
        public Builder updated(@Nullable Output updated) {
            $.updated = updated;
            return this;
        }

        /**
         * @param updated The last time the watchlist item was updated
         * 
         * @return builder
         * 
         */
        public Builder updated(String updated) {
            return updated(Output.of(updated));
        }

        /**
         * @param updatedBy Describes a user that updated the watchlist item
         * 
         * @return builder
         * 
         */
        public Builder updatedBy(@Nullable Output updatedBy) {
            $.updatedBy = updatedBy;
            return this;
        }

        /**
         * @param updatedBy Describes a user that updated the watchlist item
         * 
         * @return builder
         * 
         */
        public Builder updatedBy(WatchlistUserInfoArgs updatedBy) {
            return updatedBy(Output.of(updatedBy));
        }

        /**
         * @param watchlistAlias The watchlist alias
         * 
         * @return builder
         * 
         */
        public Builder watchlistAlias(Output watchlistAlias) {
            $.watchlistAlias = watchlistAlias;
            return this;
        }

        /**
         * @param watchlistAlias The watchlist alias
         * 
         * @return builder
         * 
         */
        public Builder watchlistAlias(String watchlistAlias) {
            return watchlistAlias(Output.of(watchlistAlias));
        }

        /**
         * @param watchlistItemId The id (a Guid) of the watchlist item
         * 
         * @return builder
         * 
         */
        public Builder watchlistItemId(@Nullable Output watchlistItemId) {
            $.watchlistItemId = watchlistItemId;
            return this;
        }

        /**
         * @param watchlistItemId The id (a Guid) of the watchlist item
         * 
         * @return builder
         * 
         */
        public Builder watchlistItemId(String watchlistItemId) {
            return watchlistItemId(Output.of(watchlistItemId));
        }

        /**
         * @param watchlistItemType The type of the watchlist item
         * 
         * @return builder
         * 
         */
        public Builder watchlistItemType(@Nullable Output watchlistItemType) {
            $.watchlistItemType = watchlistItemType;
            return this;
        }

        /**
         * @param watchlistItemType The type of the watchlist item
         * 
         * @return builder
         * 
         */
        public Builder watchlistItemType(String watchlistItemType) {
            return watchlistItemType(Output.of(watchlistItemType));
        }

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

}