public class ResourceBuilderFacade extends Object
Resource.Builder
that enforces Confluent conventions.Constructor and Description |
---|
ResourceBuilderFacade(String type) |
Modifier and Type | Method and Description |
---|---|
io.opentelemetry.proto.resource.v1.Resource |
build() |
ResourceBuilderFacade |
withId(String id) |
ResourceBuilderFacade |
withLabel(String key,
List<String> values) |
ResourceBuilderFacade |
withLabel(String key,
String value)
Add a label to this Resource.
|
ResourceBuilderFacade |
withLabels(Map<String,String> labels)
Add labels to this Resource.
|
ResourceBuilderFacade |
withNamespacedLabel(String key,
List<String> values) |
ResourceBuilderFacade |
withNamespacedLabel(String key,
String value)
Add a label to this Resource, prefixed with this Resource's type.
|
ResourceBuilderFacade |
withNamespacedLabels(Map<String,String> labels)
Add labels to this Resource, prefixed with this Resource's type.
|
ResourceBuilderFacade |
withVersion(String version) |
public ResourceBuilderFacade(String type)
public ResourceBuilderFacade withVersion(String version)
public ResourceBuilderFacade withId(String id)
public final ResourceBuilderFacade withLabel(String key, String value)
public ResourceBuilderFacade withLabel(String key, List<String> values)
public final ResourceBuilderFacade withLabels(Map<String,String> labels)
public ResourceBuilderFacade withNamespacedLabel(String key, String value)
public ResourceBuilderFacade withNamespacedLabel(String key, List<String> values)
public ResourceBuilderFacade withNamespacedLabels(Map<String,String> labels)
public io.opentelemetry.proto.resource.v1.Resource build()