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

com.pulumi.azurenative.costmanagement.inputs.ExportDatasetArgs 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.GranularityType;
import com.pulumi.azurenative.costmanagement.inputs.ExportDatasetConfigurationArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The definition for data in the export.
 * 
 */
public final class ExportDatasetArgs extends com.pulumi.resources.ResourceArgs {

    public static final ExportDatasetArgs Empty = new ExportDatasetArgs();

    /**
     * The export dataset configuration.
     * 
     */
    @Import(name="configuration")
    private @Nullable Output configuration;

    /**
     * @return The export dataset configuration.
     * 
     */
    public Optional> configuration() {
        return Optional.ofNullable(this.configuration);
    }

    /**
     * The granularity of rows in the export. Currently only 'Daily' is supported.
     * 
     */
    @Import(name="granularity")
    private @Nullable Output> granularity;

    /**
     * @return The granularity of rows in the export. Currently only 'Daily' is supported.
     * 
     */
    public Optional>> granularity() {
        return Optional.ofNullable(this.granularity);
    }

    private ExportDatasetArgs() {}

    private ExportDatasetArgs(ExportDatasetArgs $) {
        this.configuration = $.configuration;
        this.granularity = $.granularity;
    }

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

    public static final class Builder {
        private ExportDatasetArgs $;

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

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

        /**
         * @param configuration The export dataset configuration.
         * 
         * @return builder
         * 
         */
        public Builder configuration(@Nullable Output configuration) {
            $.configuration = configuration;
            return this;
        }

        /**
         * @param configuration The export dataset configuration.
         * 
         * @return builder
         * 
         */
        public Builder configuration(ExportDatasetConfigurationArgs configuration) {
            return configuration(Output.of(configuration));
        }

        /**
         * @param granularity The granularity of rows in the export. Currently only 'Daily' is supported.
         * 
         * @return builder
         * 
         */
        public Builder granularity(@Nullable Output> granularity) {
            $.granularity = granularity;
            return this;
        }

        /**
         * @param granularity The granularity of rows in the export. Currently only 'Daily' is supported.
         * 
         * @return builder
         * 
         */
        public Builder granularity(Either granularity) {
            return granularity(Output.of(granularity));
        }

        /**
         * @param granularity The granularity of rows in the export. Currently only 'Daily' is supported.
         * 
         * @return builder
         * 
         */
        public Builder granularity(String granularity) {
            return granularity(Either.ofLeft(granularity));
        }

        /**
         * @param granularity The granularity of rows in the export. Currently only 'Daily' is supported.
         * 
         * @return builder
         * 
         */
        public Builder granularity(GranularityType granularity) {
            return granularity(Either.ofRight(granularity));
        }

        public ExportDatasetArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy