All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.costmanagement.inputs.ReportDefinitionArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** 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.ReportType;
import com.pulumi.azurenative.costmanagement.enums.TimeframeType;
import com.pulumi.azurenative.costmanagement.inputs.ReportDatasetArgs;
import com.pulumi.azurenative.costmanagement.inputs.ReportTimePeriodArgs;
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;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The definition of a report.
 * 
 */
public final class ReportDefinitionArgs extends com.pulumi.resources.ResourceArgs {

    public static final ReportDefinitionArgs Empty = new ReportDefinitionArgs();

    /**
     * Has definition for data in this report.
     * 
     */
    @Import(name="dataset")
    private @Nullable Output dataset;

    /**
     * @return Has definition for data in this report.
     * 
     */
    public Optional> dataset() {
        return Optional.ofNullable(this.dataset);
    }

    /**
     * Has time period for pulling data for the report.
     * 
     */
    @Import(name="timePeriod")
    private @Nullable Output timePeriod;

    /**
     * @return Has time period for pulling data for the report.
     * 
     */
    public Optional> timePeriod() {
        return Optional.ofNullable(this.timePeriod);
    }

    /**
     * The time frame for pulling data for the report. If custom, then a specific time period must be provided.
     * 
     */
    @Import(name="timeframe", required=true)
    private Output> timeframe;

    /**
     * @return The time frame for pulling data for the report. If custom, then a specific time period must be provided.
     * 
     */
    public Output> timeframe() {
        return this.timeframe;
    }

    /**
     * The type of the report.
     * 
     */
    @Import(name="type", required=true)
    private Output> type;

    /**
     * @return The type of the report.
     * 
     */
    public Output> type() {
        return this.type;
    }

    private ReportDefinitionArgs() {}

    private ReportDefinitionArgs(ReportDefinitionArgs $) {
        this.dataset = $.dataset;
        this.timePeriod = $.timePeriod;
        this.timeframe = $.timeframe;
        this.type = $.type;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(ReportDefinitionArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private ReportDefinitionArgs $;

        public Builder() {
            $ = new ReportDefinitionArgs();
        }

        public Builder(ReportDefinitionArgs defaults) {
            $ = new ReportDefinitionArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param dataset Has definition for data in this report.
         * 
         * @return builder
         * 
         */
        public Builder dataset(@Nullable Output dataset) {
            $.dataset = dataset;
            return this;
        }

        /**
         * @param dataset Has definition for data in this report.
         * 
         * @return builder
         * 
         */
        public Builder dataset(ReportDatasetArgs dataset) {
            return dataset(Output.of(dataset));
        }

        /**
         * @param timePeriod Has time period for pulling data for the report.
         * 
         * @return builder
         * 
         */
        public Builder timePeriod(@Nullable Output timePeriod) {
            $.timePeriod = timePeriod;
            return this;
        }

        /**
         * @param timePeriod Has time period for pulling data for the report.
         * 
         * @return builder
         * 
         */
        public Builder timePeriod(ReportTimePeriodArgs timePeriod) {
            return timePeriod(Output.of(timePeriod));
        }

        /**
         * @param timeframe The time frame for pulling data for the report. If custom, then a specific time period must be provided.
         * 
         * @return builder
         * 
         */
        public Builder timeframe(Output> timeframe) {
            $.timeframe = timeframe;
            return this;
        }

        /**
         * @param timeframe The time frame for pulling data for the report. If custom, then a specific time period must be provided.
         * 
         * @return builder
         * 
         */
        public Builder timeframe(Either timeframe) {
            return timeframe(Output.of(timeframe));
        }

        /**
         * @param timeframe The time frame for pulling data for the report. If custom, then a specific time period must be provided.
         * 
         * @return builder
         * 
         */
        public Builder timeframe(String timeframe) {
            return timeframe(Either.ofLeft(timeframe));
        }

        /**
         * @param timeframe The time frame for pulling data for the report. If custom, then a specific time period must be provided.
         * 
         * @return builder
         * 
         */
        public Builder timeframe(TimeframeType timeframe) {
            return timeframe(Either.ofRight(timeframe));
        }

        /**
         * @param type The type of the report.
         * 
         * @return builder
         * 
         */
        public Builder type(Output> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of the report.
         * 
         * @return builder
         * 
         */
        public Builder type(Either type) {
            return type(Output.of(type));
        }

        /**
         * @param type The type of the report.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Either.ofLeft(type));
        }

        /**
         * @param type The type of the report.
         * 
         * @return builder
         * 
         */
        public Builder type(ReportType type) {
            return type(Either.ofRight(type));
        }

        public ReportDefinitionArgs build() {
            if ($.timeframe == null) {
                throw new MissingRequiredPropertyException("ReportDefinitionArgs", "timeframe");
            }
            if ($.type == null) {
                throw new MissingRequiredPropertyException("ReportDefinitionArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy