com.pulumi.azurenative.costmanagement.inputs.ReportConfigAggregationArgs 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.inputs;
import com.pulumi.azurenative.costmanagement.enums.FunctionType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
/**
* The aggregation expression to be used in the report.
*
*/
public final class ReportConfigAggregationArgs extends com.pulumi.resources.ResourceArgs {
public static final ReportConfigAggregationArgs Empty = new ReportConfigAggregationArgs();
/**
* The name of the aggregation function to use.
*
*/
@Import(name="function", required=true)
private Output> function;
/**
* @return The name of the aggregation function to use.
*
*/
public Output> function() {
return this.function;
}
/**
* The name of the column to aggregate.
*
*/
@Import(name="name", required=true)
private Output name;
/**
* @return The name of the column to aggregate.
*
*/
public Output name() {
return this.name;
}
private ReportConfigAggregationArgs() {}
private ReportConfigAggregationArgs(ReportConfigAggregationArgs $) {
this.function = $.function;
this.name = $.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ReportConfigAggregationArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ReportConfigAggregationArgs $;
public Builder() {
$ = new ReportConfigAggregationArgs();
}
public Builder(ReportConfigAggregationArgs defaults) {
$ = new ReportConfigAggregationArgs(Objects.requireNonNull(defaults));
}
/**
* @param function The name of the aggregation function to use.
*
* @return builder
*
*/
public Builder function(Output> function) {
$.function = function;
return this;
}
/**
* @param function The name of the aggregation function to use.
*
* @return builder
*
*/
public Builder function(Either function) {
return function(Output.of(function));
}
/**
* @param function The name of the aggregation function to use.
*
* @return builder
*
*/
public Builder function(String function) {
return function(Either.ofLeft(function));
}
/**
* @param function The name of the aggregation function to use.
*
* @return builder
*
*/
public Builder function(FunctionType function) {
return function(Either.ofRight(function));
}
/**
* @param name The name of the column to aggregate.
*
* @return builder
*
*/
public Builder name(Output name) {
$.name = name;
return this;
}
/**
* @param name The name of the column to aggregate.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
public ReportConfigAggregationArgs build() {
if ($.function == null) {
throw new MissingRequiredPropertyException("ReportConfigAggregationArgs", "function");
}
if ($.name == null) {
throw new MissingRequiredPropertyException("ReportConfigAggregationArgs", "name");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy