public static interface ResponseHeadersPolicy.Builder extends SdkPojo, CopyableBuilder<ResponseHeadersPolicy.Builder,ResponseHeadersPolicy>
| Modifier and Type | Method and Description |
|---|---|
ResponseHeadersPolicy.Builder |
id(String id)
The identifier for the response headers policy.
|
ResponseHeadersPolicy.Builder |
lastModifiedTime(Instant lastModifiedTime)
The date and time when the response headers policy was last modified.
|
default ResponseHeadersPolicy.Builder |
responseHeadersPolicyConfig(Consumer<ResponseHeadersPolicyConfig.Builder> responseHeadersPolicyConfig)
A response headers policy configuration.
|
ResponseHeadersPolicy.Builder |
responseHeadersPolicyConfig(ResponseHeadersPolicyConfig responseHeadersPolicyConfig)
A response headers policy configuration.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildResponseHeadersPolicy.Builder id(String id)
The identifier for the response headers policy.
id - The identifier for the response headers policy.ResponseHeadersPolicy.Builder lastModifiedTime(Instant lastModifiedTime)
The date and time when the response headers policy was last modified.
lastModifiedTime - The date and time when the response headers policy was last modified.ResponseHeadersPolicy.Builder responseHeadersPolicyConfig(ResponseHeadersPolicyConfig responseHeadersPolicyConfig)
A response headers policy configuration.
A response headers policy contains information about a set of HTTP response headers and their values. CloudFront adds the headers in the policy to HTTP responses that it sends for requests that match a cache behavior that’s associated with the policy.
responseHeadersPolicyConfig - A response headers policy configuration.
A response headers policy contains information about a set of HTTP response headers and their values. CloudFront adds the headers in the policy to HTTP responses that it sends for requests that match a cache behavior that’s associated with the policy.
default ResponseHeadersPolicy.Builder responseHeadersPolicyConfig(Consumer<ResponseHeadersPolicyConfig.Builder> responseHeadersPolicyConfig)
A response headers policy configuration.
A response headers policy contains information about a set of HTTP response headers and their values. CloudFront adds the headers in the policy to HTTP responses that it sends for requests that match a cache behavior that’s associated with the policy.
This is a convenience that creates an instance of theResponseHeadersPolicyConfig.Builder avoiding
the need to create one manually via ResponseHeadersPolicyConfig.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to responseHeadersPolicyConfig(ResponseHeadersPolicyConfig).responseHeadersPolicyConfig - a consumer that will call methods on ResponseHeadersPolicyConfig.BuilderresponseHeadersPolicyConfig(ResponseHeadersPolicyConfig)Copyright © 2021. All rights reserved.