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

com.pulumi.azurenative.hdinsight.inputs.ClusterPoolResourcePropertiesLogAnalyticsProfileArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.hdinsight.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Cluster pool log analytics profile to enable OMS agent for AKS cluster.
 * 
 */
public final class ClusterPoolResourcePropertiesLogAnalyticsProfileArgs extends com.pulumi.resources.ResourceArgs {

    public static final ClusterPoolResourcePropertiesLogAnalyticsProfileArgs Empty = new ClusterPoolResourcePropertiesLogAnalyticsProfileArgs();

    /**
     * True if log analytics is enabled for cluster pool, otherwise false.
     * 
     */
    @Import(name="enabled", required=true)
    private Output enabled;

    /**
     * @return True if log analytics is enabled for cluster pool, otherwise false.
     * 
     */
    public Output enabled() {
        return this.enabled;
    }

    /**
     * Log analytics workspace to associate with the OMS agent.
     * 
     */
    @Import(name="workspaceId")
    private @Nullable Output workspaceId;

    /**
     * @return Log analytics workspace to associate with the OMS agent.
     * 
     */
    public Optional> workspaceId() {
        return Optional.ofNullable(this.workspaceId);
    }

    private ClusterPoolResourcePropertiesLogAnalyticsProfileArgs() {}

    private ClusterPoolResourcePropertiesLogAnalyticsProfileArgs(ClusterPoolResourcePropertiesLogAnalyticsProfileArgs $) {
        this.enabled = $.enabled;
        this.workspaceId = $.workspaceId;
    }

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

    public static final class Builder {
        private ClusterPoolResourcePropertiesLogAnalyticsProfileArgs $;

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

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

        /**
         * @param enabled True if log analytics is enabled for cluster pool, otherwise false.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled True if log analytics is enabled for cluster pool, otherwise false.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param workspaceId Log analytics workspace to associate with the OMS agent.
         * 
         * @return builder
         * 
         */
        public Builder workspaceId(@Nullable Output workspaceId) {
            $.workspaceId = workspaceId;
            return this;
        }

        /**
         * @param workspaceId Log analytics workspace to associate with the OMS agent.
         * 
         * @return builder
         * 
         */
        public Builder workspaceId(String workspaceId) {
            return workspaceId(Output.of(workspaceId));
        }

        public ClusterPoolResourcePropertiesLogAnalyticsProfileArgs build() {
            if ($.enabled == null) {
                throw new MissingRequiredPropertyException("ClusterPoolResourcePropertiesLogAnalyticsProfileArgs", "enabled");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy