
com.pulumi.azurenative.costmanagement.outputs.ReportDatasetResponse 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.costmanagement.outputs;
import com.pulumi.azurenative.costmanagement.outputs.ReportAggregationResponse;
import com.pulumi.azurenative.costmanagement.outputs.ReportDatasetConfigurationResponse;
import com.pulumi.azurenative.costmanagement.outputs.ReportFilterResponse;
import com.pulumi.azurenative.costmanagement.outputs.ReportGroupingResponse;
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 ReportDatasetResponse {
/**
* @return Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
*
*/
private @Nullable Map aggregation;
/**
* @return Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
*
*/
private @Nullable ReportDatasetConfigurationResponse configuration;
/**
* @return Has filter expression to use in the report.
*
*/
private @Nullable ReportFilterResponse filter;
/**
* @return The granularity of rows in the report.
*
*/
private @Nullable String granularity;
/**
* @return Array of group by expression to use in the report. Report can have up to 2 group by clauses.
*
*/
private @Nullable List grouping;
private ReportDatasetResponse() {}
/**
* @return Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
*
*/
public Map aggregation() {
return this.aggregation == null ? Map.of() : this.aggregation;
}
/**
* @return Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
*
*/
public Optional configuration() {
return Optional.ofNullable(this.configuration);
}
/**
* @return Has filter expression to use in the report.
*
*/
public Optional filter() {
return Optional.ofNullable(this.filter);
}
/**
* @return The granularity of rows in the report.
*
*/
public Optional granularity() {
return Optional.ofNullable(this.granularity);
}
/**
* @return Array of group by expression to use in the report. Report can have up to 2 group by clauses.
*
*/
public List grouping() {
return this.grouping == null ? List.of() : this.grouping;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ReportDatasetResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Map aggregation;
private @Nullable ReportDatasetConfigurationResponse configuration;
private @Nullable ReportFilterResponse filter;
private @Nullable String granularity;
private @Nullable List grouping;
public Builder() {}
public Builder(ReportDatasetResponse defaults) {
Objects.requireNonNull(defaults);
this.aggregation = defaults.aggregation;
this.configuration = defaults.configuration;
this.filter = defaults.filter;
this.granularity = defaults.granularity;
this.grouping = defaults.grouping;
}
@CustomType.Setter
public Builder aggregation(@Nullable Map aggregation) {
this.aggregation = aggregation;
return this;
}
@CustomType.Setter
public Builder configuration(@Nullable ReportDatasetConfigurationResponse configuration) {
this.configuration = configuration;
return this;
}
@CustomType.Setter
public Builder filter(@Nullable ReportFilterResponse filter) {
this.filter = filter;
return this;
}
@CustomType.Setter
public Builder granularity(@Nullable String granularity) {
this.granularity = granularity;
return this;
}
@CustomType.Setter
public Builder grouping(@Nullable List grouping) {
this.grouping = grouping;
return this;
}
public Builder grouping(ReportGroupingResponse... grouping) {
return grouping(List.of(grouping));
}
public ReportDatasetResponse build() {
final var _resultValue = new ReportDatasetResponse();
_resultValue.aggregation = aggregation;
_resultValue.configuration = configuration;
_resultValue.filter = filter;
_resultValue.granularity = granularity;
_resultValue.grouping = grouping;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy