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

com.pulumi.azurenative.costmanagement.ReportByResourceGroupNameArgs 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;

import com.pulumi.azurenative.costmanagement.enums.FormatType;
import com.pulumi.azurenative.costmanagement.inputs.ReportDefinitionArgs;
import com.pulumi.azurenative.costmanagement.inputs.ReportDeliveryInfoArgs;
import com.pulumi.azurenative.costmanagement.inputs.ReportScheduleArgs;
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;


public final class ReportByResourceGroupNameArgs extends com.pulumi.resources.ResourceArgs {

    public static final ReportByResourceGroupNameArgs Empty = new ReportByResourceGroupNameArgs();

    /**
     * Has definition for the report.
     * 
     */
    @Import(name="definition", required=true)
    private Output definition;

    /**
     * @return Has definition for the report.
     * 
     */
    public Output definition() {
        return this.definition;
    }

    /**
     * Has delivery information for the report.
     * 
     */
    @Import(name="deliveryInfo", required=true)
    private Output deliveryInfo;

    /**
     * @return Has delivery information for the report.
     * 
     */
    public Output deliveryInfo() {
        return this.deliveryInfo;
    }

    /**
     * The format of the report being delivered.
     * 
     */
    @Import(name="format")
    private @Nullable Output> format;

    /**
     * @return The format of the report being delivered.
     * 
     */
    public Optional>> format() {
        return Optional.ofNullable(this.format);
    }

    /**
     * Report Name.
     * 
     */
    @Import(name="reportName")
    private @Nullable Output reportName;

    /**
     * @return Report Name.
     * 
     */
    public Optional> reportName() {
        return Optional.ofNullable(this.reportName);
    }

    /**
     * Azure Resource Group Name.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Azure Resource Group Name.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Has schedule information for the report.
     * 
     */
    @Import(name="schedule")
    private @Nullable Output schedule;

    /**
     * @return Has schedule information for the report.
     * 
     */
    public Optional> schedule() {
        return Optional.ofNullable(this.schedule);
    }

    private ReportByResourceGroupNameArgs() {}

    private ReportByResourceGroupNameArgs(ReportByResourceGroupNameArgs $) {
        this.definition = $.definition;
        this.deliveryInfo = $.deliveryInfo;
        this.format = $.format;
        this.reportName = $.reportName;
        this.resourceGroupName = $.resourceGroupName;
        this.schedule = $.schedule;
    }

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

    public static final class Builder {
        private ReportByResourceGroupNameArgs $;

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

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

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

        /**
         * @param definition Has definition for the report.
         * 
         * @return builder
         * 
         */
        public Builder definition(ReportDefinitionArgs definition) {
            return definition(Output.of(definition));
        }

        /**
         * @param deliveryInfo Has delivery information for the report.
         * 
         * @return builder
         * 
         */
        public Builder deliveryInfo(Output deliveryInfo) {
            $.deliveryInfo = deliveryInfo;
            return this;
        }

        /**
         * @param deliveryInfo Has delivery information for the report.
         * 
         * @return builder
         * 
         */
        public Builder deliveryInfo(ReportDeliveryInfoArgs deliveryInfo) {
            return deliveryInfo(Output.of(deliveryInfo));
        }

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

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

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

        /**
         * @param format The format of the report being delivered.
         * 
         * @return builder
         * 
         */
        public Builder format(FormatType format) {
            return format(Either.ofRight(format));
        }

        /**
         * @param reportName Report Name.
         * 
         * @return builder
         * 
         */
        public Builder reportName(@Nullable Output reportName) {
            $.reportName = reportName;
            return this;
        }

        /**
         * @param reportName Report Name.
         * 
         * @return builder
         * 
         */
        public Builder reportName(String reportName) {
            return reportName(Output.of(reportName));
        }

        /**
         * @param resourceGroupName Azure Resource Group Name.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Azure Resource Group Name.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param schedule Has schedule information for the report.
         * 
         * @return builder
         * 
         */
        public Builder schedule(@Nullable Output schedule) {
            $.schedule = schedule;
            return this;
        }

        /**
         * @param schedule Has schedule information for the report.
         * 
         * @return builder
         * 
         */
        public Builder schedule(ReportScheduleArgs schedule) {
            return schedule(Output.of(schedule));
        }

        public ReportByResourceGroupNameArgs build() {
            if ($.definition == null) {
                throw new MissingRequiredPropertyException("ReportByResourceGroupNameArgs", "definition");
            }
            if ($.deliveryInfo == null) {
                throw new MissingRequiredPropertyException("ReportByResourceGroupNameArgs", "deliveryInfo");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ReportByResourceGroupNameArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy