// *** 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.gcp.container.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.container.outputs.ClusterResourceUsageExportConfigBigqueryDestination;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ClusterResourceUsageExportConfig {
    /**
     * @return Parameters for using BigQuery as the destination of resource usage export.
     * 
     * * `bigquery_destination.dataset_id` (Required) - The ID of a BigQuery Dataset. For Example:
     * ```java
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import java.util.List;
     * import java.util.ArrayList;
     * import java.util.Map;
     * import java.io.File;
     * import java.nio.file.Files;
     * import java.nio.file.Paths;
     * 
     * public class App {
     *     public static void main(String[] args) {
     *         Pulumi.run(App::stack);
     *     }
     * 
     *     public static void stack(Context ctx) {
     *     }
     * }
     * ```
     * 
     */
    private ClusterResourceUsageExportConfigBigqueryDestination bigqueryDestination;
    /**
     * @return Whether to enable network egress metering for this cluster. If enabled, a daemonset will be created
     * in the cluster to meter network egress traffic.
     * 
     */
    private @Nullable Boolean enableNetworkEgressMetering;
    /**
     * @return Whether to enable resource
     * consumption metering on this cluster. When enabled, a table will be created in
     * the resource export BigQuery dataset to store resource consumption data. The
     * resulting table can be joined with the resource usage table or with BigQuery
     * billing export. Defaults to `true`.
     * 
     */
    private @Nullable Boolean enableResourceConsumptionMetering;

    private ClusterResourceUsageExportConfig() {}
    /**
     * @return Parameters for using BigQuery as the destination of resource usage export.
     * 
     * * `bigquery_destination.dataset_id` (Required) - The ID of a BigQuery Dataset. For Example:
     * ```java
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import java.util.List;
     * import java.util.ArrayList;
     * import java.util.Map;
     * import java.io.File;
     * import java.nio.file.Files;
     * import java.nio.file.Paths;
     * 
     * public class App {
     *     public static void main(String[] args) {
     *         Pulumi.run(App::stack);
     *     }
     * 
     *     public static void stack(Context ctx) {
     *     }
     * }
     * ```
     * 
     */
    public ClusterResourceUsageExportConfigBigqueryDestination bigqueryDestination() {
        return this.bigqueryDestination;
    }
    /**
     * @return Whether to enable network egress metering for this cluster. If enabled, a daemonset will be created
     * in the cluster to meter network egress traffic.
     * 
     */
    public Optional<Boolean> enableNetworkEgressMetering() {
        return Optional.ofNullable(this.enableNetworkEgressMetering);
    }
    /**
     * @return Whether to enable resource
     * consumption metering on this cluster. When enabled, a table will be created in
     * the resource export BigQuery dataset to store resource consumption data. The
     * resulting table can be joined with the resource usage table or with BigQuery
     * billing export. Defaults to `true`.
     * 
     */
    public Optional<Boolean> enableResourceConsumptionMetering() {
        return Optional.ofNullable(this.enableResourceConsumptionMetering);
    }

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

    public static Builder builder(ClusterResourceUsageExportConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private ClusterResourceUsageExportConfigBigqueryDestination bigqueryDestination;
        private @Nullable Boolean enableNetworkEgressMetering;
        private @Nullable Boolean enableResourceConsumptionMetering;
        public Builder() {}
        public Builder(ClusterResourceUsageExportConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.bigqueryDestination = defaults.bigqueryDestination;
    	      this.enableNetworkEgressMetering = defaults.enableNetworkEgressMetering;
    	      this.enableResourceConsumptionMetering = defaults.enableResourceConsumptionMetering;
        }

        @CustomType.Setter
        public Builder bigqueryDestination(ClusterResourceUsageExportConfigBigqueryDestination bigqueryDestination) {
            this.bigqueryDestination = Objects.requireNonNull(bigqueryDestination);
            return this;
        }
        @CustomType.Setter
        public Builder enableNetworkEgressMetering(@Nullable Boolean enableNetworkEgressMetering) {
            this.enableNetworkEgressMetering = enableNetworkEgressMetering;
            return this;
        }
        @CustomType.Setter
        public Builder enableResourceConsumptionMetering(@Nullable Boolean enableResourceConsumptionMetering) {
            this.enableResourceConsumptionMetering = enableResourceConsumptionMetering;
            return this;
        }
        public ClusterResourceUsageExportConfig build() {
            final var o = new ClusterResourceUsageExportConfig();
            o.bigqueryDestination = bigqueryDestination;
            o.enableNetworkEgressMetering = enableNetworkEgressMetering;
            o.enableResourceConsumptionMetering = enableResourceConsumptionMetering;
            return o;
        }
    }
}
