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

com.pulumi.azurenative.appplatform.outputs.MonitoringSettingPropertiesResponse 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.azurenative.appplatform.outputs;

import com.pulumi.azurenative.appplatform.outputs.ApplicationInsightsAgentVersionsResponse;
import com.pulumi.azurenative.appplatform.outputs.ErrorResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class MonitoringSettingPropertiesResponse {
    /**
     * @return Indicates the versions of application insight agent
     * 
     */
    private @Nullable ApplicationInsightsAgentVersionsResponse appInsightsAgentVersions;
    /**
     * @return Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
     * 
     */
    private @Nullable String appInsightsInstrumentationKey;
    /**
     * @return Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0]
     * 
     */
    private @Nullable Double appInsightsSamplingRate;
    /**
     * @return Error when apply Monitoring Setting changes.
     * 
     */
    private @Nullable ErrorResponse error;
    /**
     * @return State of the Monitoring Setting.
     * 
     */
    private String provisioningState;
    /**
     * @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
     * 
     */
    private @Nullable Boolean traceEnabled;

    private MonitoringSettingPropertiesResponse() {}
    /**
     * @return Indicates the versions of application insight agent
     * 
     */
    public Optional appInsightsAgentVersions() {
        return Optional.ofNullable(this.appInsightsAgentVersions);
    }
    /**
     * @return Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings
     * 
     */
    public Optional appInsightsInstrumentationKey() {
        return Optional.ofNullable(this.appInsightsInstrumentationKey);
    }
    /**
     * @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);
    }
    /**
     * @return Error when apply Monitoring Setting changes.
     * 
     */
    public Optional error() {
        return Optional.ofNullable(this.error);
    }
    /**
     * @return State of the Monitoring Setting.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @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);
    }

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

    public static Builder builder(MonitoringSettingPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable ApplicationInsightsAgentVersionsResponse appInsightsAgentVersions;
        private @Nullable String appInsightsInstrumentationKey;
        private @Nullable Double appInsightsSamplingRate;
        private @Nullable ErrorResponse error;
        private String provisioningState;
        private @Nullable Boolean traceEnabled;
        public Builder() {}
        public Builder(MonitoringSettingPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.appInsightsAgentVersions = defaults.appInsightsAgentVersions;
    	      this.appInsightsInstrumentationKey = defaults.appInsightsInstrumentationKey;
    	      this.appInsightsSamplingRate = defaults.appInsightsSamplingRate;
    	      this.error = defaults.error;
    	      this.provisioningState = defaults.provisioningState;
    	      this.traceEnabled = defaults.traceEnabled;
        }

        @CustomType.Setter
        public Builder appInsightsAgentVersions(@Nullable ApplicationInsightsAgentVersionsResponse appInsightsAgentVersions) {

            this.appInsightsAgentVersions = appInsightsAgentVersions;
            return this;
        }
        @CustomType.Setter
        public Builder appInsightsInstrumentationKey(@Nullable String appInsightsInstrumentationKey) {

            this.appInsightsInstrumentationKey = appInsightsInstrumentationKey;
            return this;
        }
        @CustomType.Setter
        public Builder appInsightsSamplingRate(@Nullable Double appInsightsSamplingRate) {

            this.appInsightsSamplingRate = appInsightsSamplingRate;
            return this;
        }
        @CustomType.Setter
        public Builder error(@Nullable ErrorResponse error) {

            this.error = error;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("MonitoringSettingPropertiesResponse", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder traceEnabled(@Nullable Boolean traceEnabled) {

            this.traceEnabled = traceEnabled;
            return this;
        }
        public MonitoringSettingPropertiesResponse build() {
            final var _resultValue = new MonitoringSettingPropertiesResponse();
            _resultValue.appInsightsAgentVersions = appInsightsAgentVersions;
            _resultValue.appInsightsInstrumentationKey = appInsightsInstrumentationKey;
            _resultValue.appInsightsSamplingRate = appInsightsSamplingRate;
            _resultValue.error = error;
            _resultValue.provisioningState = provisioningState;
            _resultValue.traceEnabled = traceEnabled;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy