// *** 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.aws.cloudfront.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Double;
import java.util.Objects;

@CustomType
public final class GetResponseHeadersPolicyServerTimingHeadersConfig {
    /**
     * @return Whether CloudFront adds the `Server-Timing` header to HTTP responses that it sends in response to requests that match a cache behavior that&#39;s associated with this response headers policy.
     * 
     */
    private Boolean enabled;
    /**
     * @return Number 0–100 (inclusive) that specifies the percentage of responses that you want CloudFront to add the Server-Timing header to.
     * 
     */
    private Double samplingRate;

    private GetResponseHeadersPolicyServerTimingHeadersConfig() {}
    /**
     * @return Whether CloudFront adds the `Server-Timing` header to HTTP responses that it sends in response to requests that match a cache behavior that&#39;s associated with this response headers policy.
     * 
     */
    public Boolean enabled() {
        return this.enabled;
    }
    /**
     * @return Number 0–100 (inclusive) that specifies the percentage of responses that you want CloudFront to add the Server-Timing header to.
     * 
     */
    public Double samplingRate() {
        return this.samplingRate;
    }

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

    public static Builder builder(GetResponseHeadersPolicyServerTimingHeadersConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Boolean enabled;
        private Double samplingRate;
        public Builder() {}
        public Builder(GetResponseHeadersPolicyServerTimingHeadersConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.enabled = defaults.enabled;
    	      this.samplingRate = defaults.samplingRate;
        }

        @CustomType.Setter
        public Builder enabled(Boolean enabled) {
            this.enabled = Objects.requireNonNull(enabled);
            return this;
        }
        @CustomType.Setter
        public Builder samplingRate(Double samplingRate) {
            this.samplingRate = Objects.requireNonNull(samplingRate);
            return this;
        }
        public GetResponseHeadersPolicyServerTimingHeadersConfig build() {
            final var o = new GetResponseHeadersPolicyServerTimingHeadersConfig();
            o.enabled = enabled;
            o.samplingRate = samplingRate;
            return o;
        }
    }
}
