com.pulumi.azurenative.insights.outputs.PrometheusForwarderDataSourceResponse 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.insights.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PrometheusForwarderDataSourceResponse {
/**
* @return The list of label inclusion filters in the form of label "name-value" pairs.
* Currently only one label is supported: 'microsoft_metrics_include_label'.
* Label values are matched case-insensitively.
*
*/
private @Nullable Map labelIncludeFilter;
/**
* @return A friendly name for the data source.
* This name should be unique across all data sources (regardless of type) within the data collection rule.
*
*/
private @Nullable String name;
/**
* @return List of streams that this data source will be sent to.
*
*/
private @Nullable List streams;
private PrometheusForwarderDataSourceResponse() {}
/**
* @return The list of label inclusion filters in the form of label "name-value" pairs.
* Currently only one label is supported: 'microsoft_metrics_include_label'.
* Label values are matched case-insensitively.
*
*/
public Map labelIncludeFilter() {
return this.labelIncludeFilter == null ? Map.of() : this.labelIncludeFilter;
}
/**
* @return A friendly name for the data source.
* This name should be unique across all data sources (regardless of type) within the data collection rule.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return List of streams that this data source will be sent to.
*
*/
public List streams() {
return this.streams == null ? List.of() : this.streams;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PrometheusForwarderDataSourceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Map labelIncludeFilter;
private @Nullable String name;
private @Nullable List streams;
public Builder() {}
public Builder(PrometheusForwarderDataSourceResponse defaults) {
Objects.requireNonNull(defaults);
this.labelIncludeFilter = defaults.labelIncludeFilter;
this.name = defaults.name;
this.streams = defaults.streams;
}
@CustomType.Setter
public Builder labelIncludeFilter(@Nullable Map labelIncludeFilter) {
this.labelIncludeFilter = labelIncludeFilter;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder streams(@Nullable List streams) {
this.streams = streams;
return this;
}
public Builder streams(String... streams) {
return streams(List.of(streams));
}
public PrometheusForwarderDataSourceResponse build() {
final var _resultValue = new PrometheusForwarderDataSourceResponse();
_resultValue.labelIncludeFilter = labelIncludeFilter;
_resultValue.name = name;
_resultValue.streams = streams;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy