Interface ResponseHeadersPolicyServerTimingHeadersConfig.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ResponseHeadersPolicyServerTimingHeadersConfig.Builder,ResponseHeadersPolicyServerTimingHeadersConfig>,SdkBuilder<ResponseHeadersPolicyServerTimingHeadersConfig.Builder,ResponseHeadersPolicyServerTimingHeadersConfig>,SdkPojo
- Enclosing class:
- ResponseHeadersPolicyServerTimingHeadersConfig
@Mutable @NotThreadSafe public static interface ResponseHeadersPolicyServerTimingHeadersConfig.Builder extends SdkPojo, CopyableBuilder<ResponseHeadersPolicyServerTimingHeadersConfig.Builder,ResponseHeadersPolicyServerTimingHeadersConfig>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResponseHeadersPolicyServerTimingHeadersConfig.Builderenabled(Boolean enabled)A Boolean that determines whether CloudFront adds theServer-Timingheader to HTTP responses that it sends in response to requests that match a cache behavior that's associated with this response headers policy.ResponseHeadersPolicyServerTimingHeadersConfig.BuildersamplingRate(Double samplingRate)A number 0–100 (inclusive) that specifies the percentage of responses that you want CloudFront to add theServer-Timingheader to.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
enabled
ResponseHeadersPolicyServerTimingHeadersConfig.Builder enabled(Boolean enabled)
A Boolean that determines whether CloudFront adds the
Server-Timingheader to HTTP responses that it sends in response to requests that match a cache behavior that's associated with this response headers policy.- Parameters:
enabled- A Boolean that determines whether CloudFront adds theServer-Timingheader to HTTP responses that it sends in response to requests that match a cache behavior that's associated with this response headers policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
samplingRate
ResponseHeadersPolicyServerTimingHeadersConfig.Builder samplingRate(Double samplingRate)
A number 0–100 (inclusive) that specifies the percentage of responses that you want CloudFront to add the
Server-Timingheader to. When you set the sampling rate to 100, CloudFront adds theServer-Timingheader to the HTTP response for every request that matches the cache behavior that this response headers policy is attached to. When you set it to 50, CloudFront adds the header to 50% of the responses for requests that match the cache behavior. You can set the sampling rate to any number 0–100 with up to four decimal places.- Parameters:
samplingRate- A number 0–100 (inclusive) that specifies the percentage of responses that you want CloudFront to add theServer-Timingheader to. When you set the sampling rate to 100, CloudFront adds theServer-Timingheader to the HTTP response for every request that matches the cache behavior that this response headers policy is attached to. When you set it to 50, CloudFront adds the header to 50% of the responses for requests that match the cache behavior. You can set the sampling rate to any number 0–100 with up to four decimal places.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-