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

com.pulumi.azurenative.insights.WorkbookArgs 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.insights;

import com.pulumi.azurenative.insights.enums.WorkbookSharedTypeKind;
import com.pulumi.azurenative.insights.inputs.WorkbookResourceIdentityArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final WorkbookArgs Empty = new WorkbookArgs();

    /**
     * Workbook category, as defined by the user at creation time.
     * 
     */
    @Import(name="category", required=true)
    private Output category;

    /**
     * @return Workbook category, as defined by the user at creation time.
     * 
     */
    public Output category() {
        return this.category;
    }

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

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

    /**
     * The user-defined name (display name) of the workbook.
     * 
     */
    @Import(name="displayName", required=true)
    private Output displayName;

    /**
     * @return The user-defined name (display name) of the workbook.
     * 
     */
    public Output displayName() {
        return this.displayName;
    }

    /**
     * Identity used for BYOS
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return Identity used for BYOS
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * The kind of workbook. Only valid value is shared.
     * 
     */
    @Import(name="kind")
    private @Nullable Output> kind;

    /**
     * @return The kind of workbook. Only valid value is shared.
     * 
     */
    public Optional>> kind() {
        return Optional.ofNullable(this.kind);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * 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 resource.
     * 
     */
    @Import(name="resourceName")
    private @Nullable Output resourceName;

    /**
     * @return The name of the resource.
     * 
     */
    public Optional> resourceName() {
        return Optional.ofNullable(this.resourceName);
    }

    /**
     * Configuration of this particular workbook. Configuration data is a string containing valid JSON
     * 
     */
    @Import(name="serializedData", required=true)
    private Output serializedData;

    /**
     * @return Configuration of this particular workbook. Configuration data is a string containing valid JSON
     * 
     */
    public Output serializedData() {
        return this.serializedData;
    }

    /**
     * ResourceId for a source resource.
     * 
     */
    @Import(name="sourceId")
    private @Nullable Output sourceId;

    /**
     * @return ResourceId for a source resource.
     * 
     */
    public Optional> sourceId() {
        return Optional.ofNullable(this.sourceId);
    }

    /**
     * The resourceId to the storage account when bring your own storage is used
     * 
     */
    @Import(name="storageUri")
    private @Nullable Output storageUri;

    /**
     * @return The resourceId to the storage account when bring your own storage is used
     * 
     */
    public Optional> storageUri() {
        return Optional.ofNullable(this.storageUri);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Workbook schema version format, like 'Notebook/1.0', which should match the workbook in serializedData
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return Workbook schema version format, like 'Notebook/1.0', which should match the workbook in serializedData
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private WorkbookArgs() {}

    private WorkbookArgs(WorkbookArgs $) {
        this.category = $.category;
        this.description = $.description;
        this.displayName = $.displayName;
        this.identity = $.identity;
        this.kind = $.kind;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceName = $.resourceName;
        this.serializedData = $.serializedData;
        this.sourceId = $.sourceId;
        this.storageUri = $.storageUri;
        this.tags = $.tags;
        this.version = $.version;
    }

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

    public static final class Builder {
        private WorkbookArgs $;

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

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

        /**
         * @param category Workbook category, as defined by the user at creation time.
         * 
         * @return builder
         * 
         */
        public Builder category(Output category) {
            $.category = category;
            return this;
        }

        /**
         * @param category Workbook category, as defined by the user at creation time.
         * 
         * @return builder
         * 
         */
        public Builder category(String category) {
            return category(Output.of(category));
        }

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

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

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

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

        /**
         * @param identity Identity used for BYOS
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity Identity used for BYOS
         * 
         * @return builder
         * 
         */
        public Builder identity(WorkbookResourceIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param kind The kind of workbook. Only valid value is shared.
         * 
         * @return builder
         * 
         */
        public Builder kind(@Nullable Output> kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind The kind of workbook. Only valid value is shared.
         * 
         * @return builder
         * 
         */
        public Builder kind(Either kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param kind The kind of workbook. Only valid value is shared.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Either.ofLeft(kind));
        }

        /**
         * @param kind The kind of workbook. Only valid value is shared.
         * 
         * @return builder
         * 
         */
        public Builder kind(WorkbookSharedTypeKind kind) {
            return kind(Either.ofRight(kind));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @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 resourceName The name of the resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceName(@Nullable Output resourceName) {
            $.resourceName = resourceName;
            return this;
        }

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

        /**
         * @param serializedData Configuration of this particular workbook. Configuration data is a string containing valid JSON
         * 
         * @return builder
         * 
         */
        public Builder serializedData(Output serializedData) {
            $.serializedData = serializedData;
            return this;
        }

        /**
         * @param serializedData Configuration of this particular workbook. Configuration data is a string containing valid JSON
         * 
         * @return builder
         * 
         */
        public Builder serializedData(String serializedData) {
            return serializedData(Output.of(serializedData));
        }

        /**
         * @param sourceId ResourceId for a source resource.
         * 
         * @return builder
         * 
         */
        public Builder sourceId(@Nullable Output sourceId) {
            $.sourceId = sourceId;
            return this;
        }

        /**
         * @param sourceId ResourceId for a source resource.
         * 
         * @return builder
         * 
         */
        public Builder sourceId(String sourceId) {
            return sourceId(Output.of(sourceId));
        }

        /**
         * @param storageUri The resourceId to the storage account when bring your own storage is used
         * 
         * @return builder
         * 
         */
        public Builder storageUri(@Nullable Output storageUri) {
            $.storageUri = storageUri;
            return this;
        }

        /**
         * @param storageUri The resourceId to the storage account when bring your own storage is used
         * 
         * @return builder
         * 
         */
        public Builder storageUri(String storageUri) {
            return storageUri(Output.of(storageUri));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param version Workbook schema version format, like 'Notebook/1.0', which should match the workbook in serializedData
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version Workbook schema version format, like 'Notebook/1.0', which should match the workbook in serializedData
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public WorkbookArgs build() {
            if ($.category == null) {
                throw new MissingRequiredPropertyException("WorkbookArgs", "category");
            }
            if ($.displayName == null) {
                throw new MissingRequiredPropertyException("WorkbookArgs", "displayName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("WorkbookArgs", "resourceGroupName");
            }
            if ($.serializedData == null) {
                throw new MissingRequiredPropertyException("WorkbookArgs", "serializedData");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy