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

com.pulumi.azurenative.appplatform.inputs.MonitoringSettingPropertiesArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.appplatform.inputs.ErrorArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Monitoring Setting properties payload
 * 
 */
public final class MonitoringSettingPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final MonitoringSettingPropertiesArgs Empty = new MonitoringSettingPropertiesArgs();

    /**
     * Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
     * 
     */
    @Import(name="appInsightsInstrumentationKey")
    private @Nullable Output appInsightsInstrumentationKey;

    /**
     * @return Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
     * 
     */
    public Optional> appInsightsInstrumentationKey() {
        return Optional.ofNullable(this.appInsightsInstrumentationKey);
    }

    /**
     * Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]
     * 
     */
    @Import(name="appInsightsSamplingRate")
    private @Nullable Output appInsightsSamplingRate;

    /**
     * @return Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]
     * 
     */
    public Optional> appInsightsSamplingRate() {
        return Optional.ofNullable(this.appInsightsSamplingRate);
    }

    /**
     * Error when apply Monitoring Setting changes.
     * 
     */
    @Import(name="error")
    private @Nullable Output error;

    /**
     * @return Error when apply Monitoring Setting changes.
     * 
     */
    public Optional> error() {
        return Optional.ofNullable(this.error);
    }

    /**
     * Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not
     * 
     */
    @Import(name="traceEnabled")
    private @Nullable Output traceEnabled;

    /**
     * @return Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not
     * 
     */
    public Optional> traceEnabled() {
        return Optional.ofNullable(this.traceEnabled);
    }

    private MonitoringSettingPropertiesArgs() {}

    private MonitoringSettingPropertiesArgs(MonitoringSettingPropertiesArgs $) {
        this.appInsightsInstrumentationKey = $.appInsightsInstrumentationKey;
        this.appInsightsSamplingRate = $.appInsightsSamplingRate;
        this.error = $.error;
        this.traceEnabled = $.traceEnabled;
    }

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

    public static final class Builder {
        private MonitoringSettingPropertiesArgs $;

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

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

        /**
         * @param appInsightsInstrumentationKey Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
         * 
         * @return builder
         * 
         */
        public Builder appInsightsInstrumentationKey(@Nullable Output appInsightsInstrumentationKey) {
            $.appInsightsInstrumentationKey = appInsightsInstrumentationKey;
            return this;
        }

        /**
         * @param appInsightsInstrumentationKey Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
         * 
         * @return builder
         * 
         */
        public Builder appInsightsInstrumentationKey(String appInsightsInstrumentationKey) {
            return appInsightsInstrumentationKey(Output.of(appInsightsInstrumentationKey));
        }

        /**
         * @param appInsightsSamplingRate Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]
         * 
         * @return builder
         * 
         */
        public Builder appInsightsSamplingRate(@Nullable Output appInsightsSamplingRate) {
            $.appInsightsSamplingRate = appInsightsSamplingRate;
            return this;
        }

        /**
         * @param appInsightsSamplingRate Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]
         * 
         * @return builder
         * 
         */
        public Builder appInsightsSamplingRate(Double appInsightsSamplingRate) {
            return appInsightsSamplingRate(Output.of(appInsightsSamplingRate));
        }

        /**
         * @param error Error when apply Monitoring Setting changes.
         * 
         * @return builder
         * 
         */
        public Builder error(@Nullable Output error) {
            $.error = error;
            return this;
        }

        /**
         * @param error Error when apply Monitoring Setting changes.
         * 
         * @return builder
         * 
         */
        public Builder error(ErrorArgs error) {
            return error(Output.of(error));
        }

        /**
         * @param traceEnabled Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not
         * 
         * @return builder
         * 
         */
        public Builder traceEnabled(@Nullable Output traceEnabled) {
            $.traceEnabled = traceEnabled;
            return this;
        }

        /**
         * @param traceEnabled Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not
         * 
         * @return builder
         * 
         */
        public Builder traceEnabled(Boolean traceEnabled) {
            return traceEnabled(Output.of(traceEnabled));
        }

        public MonitoringSettingPropertiesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy