com.pulumi.azurenative.monitor.outputs.SchemaMapResponse 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.monitor.outputs;
import com.pulumi.azurenative.monitor.outputs.RecordMapResponse;
import com.pulumi.azurenative.monitor.outputs.ResourceMapResponse;
import com.pulumi.azurenative.monitor.outputs.ScopeMapResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class SchemaMapResponse {
/**
* @return Record Map.
*
*/
private List recordMap;
/**
* @return Resource Map captures information about the entity for which telemetry is recorded. For example, metrics exposed by a Kubernetes container can be linked to a resource that specifies the cluster, namespace, pod, and container name.Resource may capture an entire hierarchy of entity identification. It may describe the host in the cloud and specific container or an application running in the process.
*
*/
private @Nullable List resourceMap;
/**
* @return A scope map is a logical unit of the application code with which the emitted telemetry can be associated.
*
*/
private @Nullable List scopeMap;
private SchemaMapResponse() {}
/**
* @return Record Map.
*
*/
public List recordMap() {
return this.recordMap;
}
/**
* @return Resource Map captures information about the entity for which telemetry is recorded. For example, metrics exposed by a Kubernetes container can be linked to a resource that specifies the cluster, namespace, pod, and container name.Resource may capture an entire hierarchy of entity identification. It may describe the host in the cloud and specific container or an application running in the process.
*
*/
public List resourceMap() {
return this.resourceMap == null ? List.of() : this.resourceMap;
}
/**
* @return A scope map is a logical unit of the application code with which the emitted telemetry can be associated.
*
*/
public List scopeMap() {
return this.scopeMap == null ? List.of() : this.scopeMap;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SchemaMapResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List recordMap;
private @Nullable List resourceMap;
private @Nullable List scopeMap;
public Builder() {}
public Builder(SchemaMapResponse defaults) {
Objects.requireNonNull(defaults);
this.recordMap = defaults.recordMap;
this.resourceMap = defaults.resourceMap;
this.scopeMap = defaults.scopeMap;
}
@CustomType.Setter
public Builder recordMap(List recordMap) {
if (recordMap == null) {
throw new MissingRequiredPropertyException("SchemaMapResponse", "recordMap");
}
this.recordMap = recordMap;
return this;
}
public Builder recordMap(RecordMapResponse... recordMap) {
return recordMap(List.of(recordMap));
}
@CustomType.Setter
public Builder resourceMap(@Nullable List resourceMap) {
this.resourceMap = resourceMap;
return this;
}
public Builder resourceMap(ResourceMapResponse... resourceMap) {
return resourceMap(List.of(resourceMap));
}
@CustomType.Setter
public Builder scopeMap(@Nullable List scopeMap) {
this.scopeMap = scopeMap;
return this;
}
public Builder scopeMap(ScopeMapResponse... scopeMap) {
return scopeMap(List.of(scopeMap));
}
public SchemaMapResponse build() {
final var _resultValue = new SchemaMapResponse();
_resultValue.recordMap = recordMap;
_resultValue.resourceMap = resourceMap;
_resultValue.scopeMap = scopeMap;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy