com.pulumi.azure.monitoring.outputs.DataCollectionRuleDataFlow 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;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DataCollectionRuleDataFlow {
/**
* @return The built-in transform to transform stream data.
*
*/
private @Nullable 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 @Nullable String outputStream;
/**
* @return Specifies a list of streams. Possible values include but not limited to `Microsoft-Event`, `Microsoft-InsightsMetrics`, `Microsoft-Perf`, `Microsoft-Syslog`, `Microsoft-WindowsEvent`, and `Microsoft-PrometheusMetrics`.
*
*/
private List streams;
/**
* @return The KQL query to transform stream data.
*
*/
private @Nullable String transformKql;
private DataCollectionRuleDataFlow() {}
/**
* @return The built-in transform to transform stream data.
*
*/
public Optional builtInTransform() {
return Optional.ofNullable(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 Optional outputStream() {
return Optional.ofNullable(this.outputStream);
}
/**
* @return Specifies a list of streams. Possible values include but not limited to `Microsoft-Event`, `Microsoft-InsightsMetrics`, `Microsoft-Perf`, `Microsoft-Syslog`, `Microsoft-WindowsEvent`, and `Microsoft-PrometheusMetrics`.
*
*/
public List streams() {
return this.streams;
}
/**
* @return The KQL query to transform stream data.
*
*/
public Optional transformKql() {
return Optional.ofNullable(this.transformKql);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DataCollectionRuleDataFlow defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String builtInTransform;
private List destinations;
private @Nullable String outputStream;
private List streams;
private @Nullable String transformKql;
public Builder() {}
public Builder(DataCollectionRuleDataFlow 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(@Nullable String builtInTransform) {
this.builtInTransform = builtInTransform;
return this;
}
@CustomType.Setter
public Builder destinations(List destinations) {
if (destinations == null) {
throw new MissingRequiredPropertyException("DataCollectionRuleDataFlow", "destinations");
}
this.destinations = destinations;
return this;
}
public Builder destinations(String... destinations) {
return destinations(List.of(destinations));
}
@CustomType.Setter
public Builder outputStream(@Nullable String outputStream) {
this.outputStream = outputStream;
return this;
}
@CustomType.Setter
public Builder streams(List streams) {
if (streams == null) {
throw new MissingRequiredPropertyException("DataCollectionRuleDataFlow", "streams");
}
this.streams = streams;
return this;
}
public Builder streams(String... streams) {
return streams(List.of(streams));
}
@CustomType.Setter
public Builder transformKql(@Nullable String transformKql) {
this.transformKql = transformKql;
return this;
}
public DataCollectionRuleDataFlow build() {
final var _resultValue = new DataCollectionRuleDataFlow();
_resultValue.builtInTransform = builtInTransform;
_resultValue.destinations = destinations;
_resultValue.outputStream = outputStream;
_resultValue.streams = streams;
_resultValue.transformKql = transformKql;
return _resultValue;
}
}
}