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

com.pulumi.azure.containerservice.inputs.GroupDiagnosticsLogAnalyticsArgs Maven / Gradle / Ivy

// *** 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.azure.containerservice.inputs;

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 GroupDiagnosticsLogAnalyticsArgs extends com.pulumi.resources.ResourceArgs {

    public static final GroupDiagnosticsLogAnalyticsArgs Empty = new GroupDiagnosticsLogAnalyticsArgs();

    /**
     * The log type which should be used. Possible values are `ContainerInsights` and `ContainerInstanceLogs`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="logType")
    private @Nullable Output logType;

    /**
     * @return The log type which should be used. Possible values are `ContainerInsights` and `ContainerInstanceLogs`. Changing this forces a new resource to be created.
     * 
     */
    public Optional> logType() {
        return Optional.ofNullable(this.logType);
    }

    /**
     * Any metadata required for Log Analytics. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="metadata")
    private @Nullable Output> metadata;

    /**
     * @return Any metadata required for Log Analytics. Changing this forces a new resource to be created.
     * 
     */
    public Optional>> metadata() {
        return Optional.ofNullable(this.metadata);
    }

    /**
     * The Workspace ID of the Log Analytics Workspace. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="workspaceId", required=true)
    private Output workspaceId;

    /**
     * @return The Workspace ID of the Log Analytics Workspace. Changing this forces a new resource to be created.
     * 
     */
    public Output workspaceId() {
        return this.workspaceId;
    }

    /**
     * The Workspace Key of the Log Analytics Workspace. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="workspaceKey", required=true)
    private Output workspaceKey;

    /**
     * @return The Workspace Key of the Log Analytics Workspace. Changing this forces a new resource to be created.
     * 
     */
    public Output workspaceKey() {
        return this.workspaceKey;
    }

    private GroupDiagnosticsLogAnalyticsArgs() {}

    private GroupDiagnosticsLogAnalyticsArgs(GroupDiagnosticsLogAnalyticsArgs $) {
        this.logType = $.logType;
        this.metadata = $.metadata;
        this.workspaceId = $.workspaceId;
        this.workspaceKey = $.workspaceKey;
    }

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

    public static final class Builder {
        private GroupDiagnosticsLogAnalyticsArgs $;

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

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

        /**
         * @param logType The log type which should be used. Possible values are `ContainerInsights` and `ContainerInstanceLogs`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder logType(@Nullable Output logType) {
            $.logType = logType;
            return this;
        }

        /**
         * @param logType The log type which should be used. Possible values are `ContainerInsights` and `ContainerInstanceLogs`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder logType(String logType) {
            return logType(Output.of(logType));
        }

        /**
         * @param metadata Any metadata required for Log Analytics. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder metadata(@Nullable Output> metadata) {
            $.metadata = metadata;
            return this;
        }

        /**
         * @param metadata Any metadata required for Log Analytics. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder metadata(Map metadata) {
            return metadata(Output.of(metadata));
        }

        /**
         * @param workspaceId The Workspace ID of the Log Analytics Workspace. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder workspaceId(Output workspaceId) {
            $.workspaceId = workspaceId;
            return this;
        }

        /**
         * @param workspaceId The Workspace ID of the Log Analytics Workspace. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder workspaceId(String workspaceId) {
            return workspaceId(Output.of(workspaceId));
        }

        /**
         * @param workspaceKey The Workspace Key of the Log Analytics Workspace. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder workspaceKey(Output workspaceKey) {
            $.workspaceKey = workspaceKey;
            return this;
        }

        /**
         * @param workspaceKey The Workspace Key of the Log Analytics Workspace. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder workspaceKey(String workspaceKey) {
            return workspaceKey(Output.of(workspaceKey));
        }

        public GroupDiagnosticsLogAnalyticsArgs build() {
            if ($.workspaceId == null) {
                throw new MissingRequiredPropertyException("GroupDiagnosticsLogAnalyticsArgs", "workspaceId");
            }
            if ($.workspaceKey == null) {
                throw new MissingRequiredPropertyException("GroupDiagnosticsLogAnalyticsArgs", "workspaceKey");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy