com.pulumi.azurenative.iotoperations.outputs.OpenTelemetryExportConfigResponse 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.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class OpenTelemetryExportConfigResponse {
/**
* @return How often to export the metrics to the open telemetry collector.
*
*/
private @Nullable Integer intervalSeconds;
/**
* @return The open telemetry collector endpoint to export to.
*
*/
private String otlpGrpcEndpoint;
private OpenTelemetryExportConfigResponse() {}
/**
* @return How often to export the metrics to the open telemetry collector.
*
*/
public Optional intervalSeconds() {
return Optional.ofNullable(this.intervalSeconds);
}
/**
* @return The open telemetry collector endpoint to export to.
*
*/
public String otlpGrpcEndpoint() {
return this.otlpGrpcEndpoint;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(OpenTelemetryExportConfigResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer intervalSeconds;
private String otlpGrpcEndpoint;
public Builder() {}
public Builder(OpenTelemetryExportConfigResponse defaults) {
Objects.requireNonNull(defaults);
this.intervalSeconds = defaults.intervalSeconds;
this.otlpGrpcEndpoint = defaults.otlpGrpcEndpoint;
}
@CustomType.Setter
public Builder intervalSeconds(@Nullable Integer intervalSeconds) {
this.intervalSeconds = intervalSeconds;
return this;
}
@CustomType.Setter
public Builder otlpGrpcEndpoint(String otlpGrpcEndpoint) {
if (otlpGrpcEndpoint == null) {
throw new MissingRequiredPropertyException("OpenTelemetryExportConfigResponse", "otlpGrpcEndpoint");
}
this.otlpGrpcEndpoint = otlpGrpcEndpoint;
return this;
}
public OpenTelemetryExportConfigResponse build() {
final var _resultValue = new OpenTelemetryExportConfigResponse();
_resultValue.intervalSeconds = intervalSeconds;
_resultValue.otlpGrpcEndpoint = otlpGrpcEndpoint;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy