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

com.pulumi.azurenative.insights.MyWorkbookArgs 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.Kind;
import com.pulumi.azurenative.insights.inputs.MyWorkbookManagedIdentityArgs;
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 MyWorkbookArgs extends com.pulumi.resources.ResourceArgs {

    public static final MyWorkbookArgs Empty = new MyWorkbookArgs();

    /**
     * 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 user-defined name of the private workbook.
     * 
     */
    @Import(name="displayName", required=true)
    private Output displayName;

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

    /**
     * Azure resource Id
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return Azure resource Id
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * 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. Choices are user and shared.
     * 
     */
    @Import(name="kind")
    private @Nullable Output> kind;

    /**
     * @return The kind of workbook. Choices are user and shared.
     * 
     */
    public Optional>> kind() {
        return Optional.ofNullable(this.kind);
    }

    /**
     * Resource location
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

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

    /**
     * Azure resource name
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Azure resource name
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

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

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

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

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

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

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

    /**
     * BYOS Storage Account URI
     * 
     */
    @Import(name="storageUri")
    private @Nullable Output storageUri;

    /**
     * @return BYOS Storage Account URI
     * 
     */
    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);
    }

    /**
     * Azure resource type
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return Azure resource type
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    /**
     * This instance's version of the data model. This can change as new features are added that can be marked private workbook.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return This instance's version of the data model. This can change as new features are added that can be marked private workbook.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private MyWorkbookArgs() {}

    private MyWorkbookArgs(MyWorkbookArgs $) {
        this.category = $.category;
        this.displayName = $.displayName;
        this.id = $.id;
        this.identity = $.identity;
        this.kind = $.kind;
        this.location = $.location;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceName = $.resourceName;
        this.serializedData = $.serializedData;
        this.sourceId = $.sourceId;
        this.storageUri = $.storageUri;
        this.tags = $.tags;
        this.type = $.type;
        this.version = $.version;
    }

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

    public static final class Builder {
        private MyWorkbookArgs $;

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

        public Builder(MyWorkbookArgs defaults) {
            $ = new MyWorkbookArgs(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 displayName The user-defined name of the private workbook.
         * 
         * @return builder
         * 
         */
        public Builder displayName(Output displayName) {
            $.displayName = displayName;
            return this;
        }

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

        /**
         * @param id Azure resource Id
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id Azure resource Id
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @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(MyWorkbookManagedIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param kind The kind of workbook. Choices are user and shared.
         * 
         * @return builder
         * 
         */
        public Builder kind(@Nullable Output> kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind The kind of workbook. Choices are user and shared.
         * 
         * @return builder
         * 
         */
        public Builder kind(Either kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param kind The kind of workbook. Choices are user and shared.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Either.ofLeft(kind));
        }

        /**
         * @param kind The kind of workbook. Choices are user and shared.
         * 
         * @return builder
         * 
         */
        public Builder kind(Kind kind) {
            return kind(Either.ofRight(kind));
        }

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

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

        /**
         * @param name Azure resource name
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

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

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

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

        /**
         * @param serializedData Configuration of this particular private 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 private workbook. Configuration data is a string containing valid JSON
         * 
         * @return builder
         * 
         */
        public Builder serializedData(String serializedData) {
            return serializedData(Output.of(serializedData));
        }

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

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

        /**
         * @param storageUri BYOS Storage Account URI
         * 
         * @return builder
         * 
         */
        public Builder storageUri(@Nullable Output storageUri) {
            $.storageUri = storageUri;
            return this;
        }

        /**
         * @param storageUri BYOS Storage Account URI
         * 
         * @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 type Azure resource type
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Azure resource type
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param version This instance's version of the data model. This can change as new features are added that can be marked private workbook.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version This instance's version of the data model. This can change as new features are added that can be marked private workbook.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy