// *** 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.logging.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.gcp.logging.inputs.MetricBucketOptionsExplicitBucketsArgs;
import com.pulumi.gcp.logging.inputs.MetricBucketOptionsExponentialBucketsArgs;
import com.pulumi.gcp.logging.inputs.MetricBucketOptionsLinearBucketsArgs;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final MetricBucketOptionsArgs Empty = new MetricBucketOptionsArgs();

    /**
     * Specifies a set of buckets with arbitrary widths.
     * Structure is documented below.
     * 
     */
    @Import(name="explicitBuckets")
    private @Nullable Output<MetricBucketOptionsExplicitBucketsArgs> explicitBuckets;

    /**
     * @return Specifies a set of buckets with arbitrary widths.
     * Structure is documented below.
     * 
     */
    public Optional<Output<MetricBucketOptionsExplicitBucketsArgs>> explicitBuckets() {
        return Optional.ofNullable(this.explicitBuckets);
    }

    /**
     * Specifies an exponential sequence of buckets that have a width that is proportional to the value of
     * the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.
     * Structure is documented below.
     * 
     */
    @Import(name="exponentialBuckets")
    private @Nullable Output<MetricBucketOptionsExponentialBucketsArgs> exponentialBuckets;

    /**
     * @return Specifies an exponential sequence of buckets that have a width that is proportional to the value of
     * the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.
     * Structure is documented below.
     * 
     */
    public Optional<Output<MetricBucketOptionsExponentialBucketsArgs>> exponentialBuckets() {
        return Optional.ofNullable(this.exponentialBuckets);
    }

    /**
     * Specifies a linear sequence of buckets that all have the same width (except overflow and underflow).
     * Each bucket represents a constant absolute uncertainty on the specific value in the bucket.
     * Structure is documented below.
     * 
     */
    @Import(name="linearBuckets")
    private @Nullable Output<MetricBucketOptionsLinearBucketsArgs> linearBuckets;

    /**
     * @return Specifies a linear sequence of buckets that all have the same width (except overflow and underflow).
     * Each bucket represents a constant absolute uncertainty on the specific value in the bucket.
     * Structure is documented below.
     * 
     */
    public Optional<Output<MetricBucketOptionsLinearBucketsArgs>> linearBuckets() {
        return Optional.ofNullable(this.linearBuckets);
    }

    private MetricBucketOptionsArgs() {}

    private MetricBucketOptionsArgs(MetricBucketOptionsArgs $) {
        this.explicitBuckets = $.explicitBuckets;
        this.exponentialBuckets = $.exponentialBuckets;
        this.linearBuckets = $.linearBuckets;
    }

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

    public static final class Builder {
        private MetricBucketOptionsArgs $;

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

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

        /**
         * @param explicitBuckets Specifies a set of buckets with arbitrary widths.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder explicitBuckets(@Nullable Output<MetricBucketOptionsExplicitBucketsArgs> explicitBuckets) {
            $.explicitBuckets = explicitBuckets;
            return this;
        }

        /**
         * @param explicitBuckets Specifies a set of buckets with arbitrary widths.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder explicitBuckets(MetricBucketOptionsExplicitBucketsArgs explicitBuckets) {
            return explicitBuckets(Output.of(explicitBuckets));
        }

        /**
         * @param exponentialBuckets Specifies an exponential sequence of buckets that have a width that is proportional to the value of
         * the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder exponentialBuckets(@Nullable Output<MetricBucketOptionsExponentialBucketsArgs> exponentialBuckets) {
            $.exponentialBuckets = exponentialBuckets;
            return this;
        }

        /**
         * @param exponentialBuckets Specifies an exponential sequence of buckets that have a width that is proportional to the value of
         * the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder exponentialBuckets(MetricBucketOptionsExponentialBucketsArgs exponentialBuckets) {
            return exponentialBuckets(Output.of(exponentialBuckets));
        }

        /**
         * @param linearBuckets Specifies a linear sequence of buckets that all have the same width (except overflow and underflow).
         * Each bucket represents a constant absolute uncertainty on the specific value in the bucket.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder linearBuckets(@Nullable Output<MetricBucketOptionsLinearBucketsArgs> linearBuckets) {
            $.linearBuckets = linearBuckets;
            return this;
        }

        /**
         * @param linearBuckets Specifies a linear sequence of buckets that all have the same width (except overflow and underflow).
         * Each bucket represents a constant absolute uncertainty on the specific value in the bucket.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder linearBuckets(MetricBucketOptionsLinearBucketsArgs linearBuckets) {
            return linearBuckets(Output.of(linearBuckets));
        }

        public MetricBucketOptionsArgs build() {
            return $;
        }
    }

}
