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

com.pulumi.azurenative.securityinsights.BookmarkArgs 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.IncidentInfoArgs;
import com.pulumi.azurenative.securityinsights.inputs.UserInfoArgs;
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 BookmarkArgs extends com.pulumi.resources.ResourceArgs {

    public static final BookmarkArgs Empty = new BookmarkArgs();

    /**
     * Bookmark ID
     * 
     */
    @Import(name="bookmarkId")
    private @Nullable Output bookmarkId;

    /**
     * @return Bookmark ID
     * 
     */
    public Optional> bookmarkId() {
        return Optional.ofNullable(this.bookmarkId);
    }

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

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

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

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

    /**
     * The display name of the bookmark
     * 
     */
    @Import(name="displayName", required=true)
    private Output displayName;

    /**
     * @return The display name of the bookmark
     * 
     */
    public Output displayName() {
        return this.displayName;
    }

    /**
     * The bookmark event time
     * 
     */
    @Import(name="eventTime")
    private @Nullable Output eventTime;

    /**
     * @return The bookmark event time
     * 
     */
    public Optional> eventTime() {
        return Optional.ofNullable(this.eventTime);
    }

    /**
     * Describes an incident that relates to bookmark
     * 
     */
    @Import(name="incidentInfo")
    private @Nullable Output incidentInfo;

    /**
     * @return Describes an incident that relates to bookmark
     * 
     */
    public Optional> incidentInfo() {
        return Optional.ofNullable(this.incidentInfo);
    }

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

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

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

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

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

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

    /**
     * The end time for the query
     * 
     */
    @Import(name="queryEndTime")
    private @Nullable Output queryEndTime;

    /**
     * @return The end time for the query
     * 
     */
    public Optional> queryEndTime() {
        return Optional.ofNullable(this.queryEndTime);
    }

    /**
     * The query result of the bookmark.
     * 
     */
    @Import(name="queryResult")
    private @Nullable Output queryResult;

    /**
     * @return The query result of the bookmark.
     * 
     */
    public Optional> queryResult() {
        return Optional.ofNullable(this.queryResult);
    }

    /**
     * The start time for the query
     * 
     */
    @Import(name="queryStartTime")
    private @Nullable Output queryStartTime;

    /**
     * @return The start time for the query
     * 
     */
    public Optional> queryStartTime() {
        return Optional.ofNullable(this.queryStartTime);
    }

    /**
     * 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 last time the bookmark was updated
     * 
     */
    @Import(name="updated")
    private @Nullable Output updated;

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

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

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

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

    private BookmarkArgs(BookmarkArgs $) {
        this.bookmarkId = $.bookmarkId;
        this.created = $.created;
        this.createdBy = $.createdBy;
        this.displayName = $.displayName;
        this.eventTime = $.eventTime;
        this.incidentInfo = $.incidentInfo;
        this.labels = $.labels;
        this.notes = $.notes;
        this.query = $.query;
        this.queryEndTime = $.queryEndTime;
        this.queryResult = $.queryResult;
        this.queryStartTime = $.queryStartTime;
        this.resourceGroupName = $.resourceGroupName;
        this.updated = $.updated;
        this.updatedBy = $.updatedBy;
        this.workspaceName = $.workspaceName;
    }

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

    public static final class Builder {
        private BookmarkArgs $;

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

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

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

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

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

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

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

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

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

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

        /**
         * @param eventTime The bookmark event time
         * 
         * @return builder
         * 
         */
        public Builder eventTime(@Nullable Output eventTime) {
            $.eventTime = eventTime;
            return this;
        }

        /**
         * @param eventTime The bookmark event time
         * 
         * @return builder
         * 
         */
        public Builder eventTime(String eventTime) {
            return eventTime(Output.of(eventTime));
        }

        /**
         * @param incidentInfo Describes an incident that relates to bookmark
         * 
         * @return builder
         * 
         */
        public Builder incidentInfo(@Nullable Output incidentInfo) {
            $.incidentInfo = incidentInfo;
            return this;
        }

        /**
         * @param incidentInfo Describes an incident that relates to bookmark
         * 
         * @return builder
         * 
         */
        public Builder incidentInfo(IncidentInfoArgs incidentInfo) {
            return incidentInfo(Output.of(incidentInfo));
        }

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

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

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

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

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

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

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

        /**
         * @param queryEndTime The end time for the query
         * 
         * @return builder
         * 
         */
        public Builder queryEndTime(@Nullable Output queryEndTime) {
            $.queryEndTime = queryEndTime;
            return this;
        }

        /**
         * @param queryEndTime The end time for the query
         * 
         * @return builder
         * 
         */
        public Builder queryEndTime(String queryEndTime) {
            return queryEndTime(Output.of(queryEndTime));
        }

        /**
         * @param queryResult The query result of the bookmark.
         * 
         * @return builder
         * 
         */
        public Builder queryResult(@Nullable Output queryResult) {
            $.queryResult = queryResult;
            return this;
        }

        /**
         * @param queryResult The query result of the bookmark.
         * 
         * @return builder
         * 
         */
        public Builder queryResult(String queryResult) {
            return queryResult(Output.of(queryResult));
        }

        /**
         * @param queryStartTime The start time for the query
         * 
         * @return builder
         * 
         */
        public Builder queryStartTime(@Nullable Output queryStartTime) {
            $.queryStartTime = queryStartTime;
            return this;
        }

        /**
         * @param queryStartTime The start time for the query
         * 
         * @return builder
         * 
         */
        public Builder queryStartTime(String queryStartTime) {
            return queryStartTime(Output.of(queryStartTime));
        }

        /**
         * @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 updated The last time the bookmark was updated
         * 
         * @return builder
         * 
         */
        public Builder updated(@Nullable Output updated) {
            $.updated = updated;
            return this;
        }

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

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy