com.pulumi.azurenative.iotoperations.outputs.TracesResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.iotoperations.outputs;
import com.pulumi.azurenative.iotoperations.outputs.OpenTelemetryExportConfigResponse;
import com.pulumi.azurenative.iotoperations.outputs.SelfTracingResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class TracesResponse {
/**
* @return The cache size in megabytes.
*
*/
private @Nullable Integer cacheSizeMegabytes;
/**
* @return The toggle to enable/disable traces.
*
*/
private @Nullable String mode;
/**
* @return The open telemetry export configuration.
*
*/
private @Nullable OpenTelemetryExportConfigResponse opentelemetryExportConfig;
/**
* @return The self tracing properties.
*
*/
private @Nullable SelfTracingResponse selfTracing;
/**
* @return The span channel capacity.
*
*/
private @Nullable Integer spanChannelCapacity;
private TracesResponse() {}
/**
* @return The cache size in megabytes.
*
*/
public Optional cacheSizeMegabytes() {
return Optional.ofNullable(this.cacheSizeMegabytes);
}
/**
* @return The toggle to enable/disable traces.
*
*/
public Optional mode() {
return Optional.ofNullable(this.mode);
}
/**
* @return The open telemetry export configuration.
*
*/
public Optional opentelemetryExportConfig() {
return Optional.ofNullable(this.opentelemetryExportConfig);
}
/**
* @return The self tracing properties.
*
*/
public Optional selfTracing() {
return Optional.ofNullable(this.selfTracing);
}
/**
* @return The span channel capacity.
*
*/
public Optional spanChannelCapacity() {
return Optional.ofNullable(this.spanChannelCapacity);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TracesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer cacheSizeMegabytes;
private @Nullable String mode;
private @Nullable OpenTelemetryExportConfigResponse opentelemetryExportConfig;
private @Nullable SelfTracingResponse selfTracing;
private @Nullable Integer spanChannelCapacity;
public Builder() {}
public Builder(TracesResponse defaults) {
Objects.requireNonNull(defaults);
this.cacheSizeMegabytes = defaults.cacheSizeMegabytes;
this.mode = defaults.mode;
this.opentelemetryExportConfig = defaults.opentelemetryExportConfig;
this.selfTracing = defaults.selfTracing;
this.spanChannelCapacity = defaults.spanChannelCapacity;
}
@CustomType.Setter
public Builder cacheSizeMegabytes(@Nullable Integer cacheSizeMegabytes) {
this.cacheSizeMegabytes = cacheSizeMegabytes;
return this;
}
@CustomType.Setter
public Builder mode(@Nullable String mode) {
this.mode = mode;
return this;
}
@CustomType.Setter
public Builder opentelemetryExportConfig(@Nullable OpenTelemetryExportConfigResponse opentelemetryExportConfig) {
this.opentelemetryExportConfig = opentelemetryExportConfig;
return this;
}
@CustomType.Setter
public Builder selfTracing(@Nullable SelfTracingResponse selfTracing) {
this.selfTracing = selfTracing;
return this;
}
@CustomType.Setter
public Builder spanChannelCapacity(@Nullable Integer spanChannelCapacity) {
this.spanChannelCapacity = spanChannelCapacity;
return this;
}
public TracesResponse build() {
final var _resultValue = new TracesResponse();
_resultValue.cacheSizeMegabytes = cacheSizeMegabytes;
_resultValue.mode = mode;
_resultValue.opentelemetryExportConfig = opentelemetryExportConfig;
_resultValue.selfTracing = selfTracing;
_resultValue.spanChannelCapacity = spanChannelCapacity;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy