com.pulumi.azure.monitoring.outputs.GetDataCollectionRuleDataFlow Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.monitoring.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetDataCollectionRuleDataFlow {
/**
* @return The built-in transform to transform stream data.
*
*/
private String builtInTransform;
/**
* @return Specifies a list of destination names. A `azure_monitor_metrics` data source only allows for stream of kind `Microsoft-InsightsMetrics`.
*
*/
private List destinations;
/**
* @return The output stream of the transform. Only required if the data flow changes data to a different stream.
*
*/
private String outputStream;
/**
* @return Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.
*
*/
private List streams;
/**
* @return The KQL query to transform stream data.
*
*/
private String transformKql;
private GetDataCollectionRuleDataFlow() {}
/**
* @return The built-in transform to transform stream data.
*
*/
public String builtInTransform() {
return this.builtInTransform;
}
/**
* @return Specifies a list of destination names. A `azure_monitor_metrics` data source only allows for stream of kind `Microsoft-InsightsMetrics`.
*
*/
public List destinations() {
return this.destinations;
}
/**
* @return The output stream of the transform. Only required if the data flow changes data to a different stream.
*
*/
public String outputStream() {
return this.outputStream;
}
/**
* @return Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.
*
*/
public List streams() {
return this.streams;
}
/**
* @return The KQL query to transform stream data.
*
*/
public String transformKql() {
return this.transformKql;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDataCollectionRuleDataFlow defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String builtInTransform;
private List destinations;
private String outputStream;
private List streams;
private String transformKql;
public Builder() {}
public Builder(GetDataCollectionRuleDataFlow defaults) {
Objects.requireNonNull(defaults);
this.builtInTransform = defaults.builtInTransform;
this.destinations = defaults.destinations;
this.outputStream = defaults.outputStream;
this.streams = defaults.streams;
this.transformKql = defaults.transformKql;
}
@CustomType.Setter
public Builder builtInTransform(String builtInTransform) {
if (builtInTransform == null) {
throw new MissingRequiredPropertyException("GetDataCollectionRuleDataFlow", "builtInTransform");
}
this.builtInTransform = builtInTransform;
return this;
}
@CustomType.Setter
public Builder destinations(List destinations) {
if (destinations == null) {
throw new MissingRequiredPropertyException("GetDataCollectionRuleDataFlow", "destinations");
}
this.destinations = destinations;
return this;
}
public Builder destinations(String... destinations) {
return destinations(List.of(destinations));
}
@CustomType.Setter
public Builder outputStream(String outputStream) {
if (outputStream == null) {
throw new MissingRequiredPropertyException("GetDataCollectionRuleDataFlow", "outputStream");
}
this.outputStream = outputStream;
return this;
}
@CustomType.Setter
public Builder streams(List streams) {
if (streams == null) {
throw new MissingRequiredPropertyException("GetDataCollectionRuleDataFlow", "streams");
}
this.streams = streams;
return this;
}
public Builder streams(String... streams) {
return streams(List.of(streams));
}
@CustomType.Setter
public Builder transformKql(String transformKql) {
if (transformKql == null) {
throw new MissingRequiredPropertyException("GetDataCollectionRuleDataFlow", "transformKql");
}
this.transformKql = transformKql;
return this;
}
public GetDataCollectionRuleDataFlow build() {
final var _resultValue = new GetDataCollectionRuleDataFlow();
_resultValue.builtInTransform = builtInTransform;
_resultValue.destinations = destinations;
_resultValue.outputStream = outputStream;
_resultValue.streams = streams;
_resultValue.transformKql = transformKql;
return _resultValue;
}
}
}