
com.pulumi.azurenative.costmanagement.outputs.ReportDefinitionResponse Maven / Gradle / Ivy
// *** 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.ReportDatasetResponse;
import com.pulumi.azurenative.costmanagement.outputs.ReportTimePeriodResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ReportDefinitionResponse {
/**
* @return Has definition for data in this report.
*
*/
private @Nullable ReportDatasetResponse dataset;
/**
* @return Has time period for pulling data for the report.
*
*/
private @Nullable ReportTimePeriodResponse timePeriod;
/**
* @return The time frame for pulling data for the report. If custom, then a specific time period must be provided.
*
*/
private String timeframe;
/**
* @return The type of the report.
*
*/
private String type;
private ReportDefinitionResponse() {}
/**
* @return Has definition for data in this report.
*
*/
public Optional dataset() {
return Optional.ofNullable(this.dataset);
}
/**
* @return Has time period for pulling data for the report.
*
*/
public Optional timePeriod() {
return Optional.ofNullable(this.timePeriod);
}
/**
* @return The time frame for pulling data for the report. If custom, then a specific time period must be provided.
*
*/
public String timeframe() {
return this.timeframe;
}
/**
* @return The type of the report.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ReportDefinitionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable ReportDatasetResponse dataset;
private @Nullable ReportTimePeriodResponse timePeriod;
private String timeframe;
private String type;
public Builder() {}
public Builder(ReportDefinitionResponse defaults) {
Objects.requireNonNull(defaults);
this.dataset = defaults.dataset;
this.timePeriod = defaults.timePeriod;
this.timeframe = defaults.timeframe;
this.type = defaults.type;
}
@CustomType.Setter
public Builder dataset(@Nullable ReportDatasetResponse dataset) {
this.dataset = dataset;
return this;
}
@CustomType.Setter
public Builder timePeriod(@Nullable ReportTimePeriodResponse timePeriod) {
this.timePeriod = timePeriod;
return this;
}
@CustomType.Setter
public Builder timeframe(String timeframe) {
if (timeframe == null) {
throw new MissingRequiredPropertyException("ReportDefinitionResponse", "timeframe");
}
this.timeframe = timeframe;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("ReportDefinitionResponse", "type");
}
this.type = type;
return this;
}
public ReportDefinitionResponse build() {
final var _resultValue = new ReportDefinitionResponse();
_resultValue.dataset = dataset;
_resultValue.timePeriod = timePeriod;
_resultValue.timeframe = timeframe;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy