Interface ResponseHeadersPolicyConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ResponseHeadersPolicyConfig.Builder,,ResponseHeadersPolicyConfig> SdkBuilder<ResponseHeadersPolicyConfig.Builder,,ResponseHeadersPolicyConfig> SdkPojo
- Enclosing class:
ResponseHeadersPolicyConfig
-
Method Summary
Modifier and TypeMethodDescriptionA comment to describe the response headers policy.corsConfig(Consumer<ResponseHeadersPolicyCorsConfig.Builder> corsConfig) A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).corsConfig(ResponseHeadersPolicyCorsConfig corsConfig) A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).customHeadersConfig(Consumer<ResponseHeadersPolicyCustomHeadersConfig.Builder> customHeadersConfig) A configuration for a set of custom HTTP response headers.customHeadersConfig(ResponseHeadersPolicyCustomHeadersConfig customHeadersConfig) A configuration for a set of custom HTTP response headers.A name to identify the response headers policy.removeHeadersConfig(Consumer<ResponseHeadersPolicyRemoveHeadersConfig.Builder> removeHeadersConfig) A configuration for a set of HTTP headers to remove from the HTTP response.removeHeadersConfig(ResponseHeadersPolicyRemoveHeadersConfig removeHeadersConfig) A configuration for a set of HTTP headers to remove from the HTTP response.securityHeadersConfig(Consumer<ResponseHeadersPolicySecurityHeadersConfig.Builder> securityHeadersConfig) A configuration for a set of security-related HTTP response headers.securityHeadersConfig(ResponseHeadersPolicySecurityHeadersConfig securityHeadersConfig) A configuration for a set of security-related HTTP response headers.serverTimingHeadersConfig(Consumer<ResponseHeadersPolicyServerTimingHeadersConfig.Builder> serverTimingHeadersConfig) A configuration for enabling theServer-Timingheader in HTTP responses sent from CloudFront.serverTimingHeadersConfig(ResponseHeadersPolicyServerTimingHeadersConfig serverTimingHeadersConfig) A configuration for enabling theServer-Timingheader in HTTP responses sent from CloudFront.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
comment
A comment to describe the response headers policy.
The comment cannot be longer than 128 characters.
- Parameters:
comment- A comment to describe the response headers policy.The comment cannot be longer than 128 characters.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
A name to identify the response headers policy.
The name must be unique for response headers policies in this Amazon Web Services account.
- Parameters:
name- A name to identify the response headers policy.The name must be unique for response headers policies in this Amazon Web Services account.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
corsConfig
A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).
- Parameters:
corsConfig- A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
corsConfig
default ResponseHeadersPolicyConfig.Builder corsConfig(Consumer<ResponseHeadersPolicyCorsConfig.Builder> corsConfig) A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).
This is a convenience method that creates an instance of theResponseHeadersPolicyCorsConfig.Builderavoiding the need to create one manually viaResponseHeadersPolicyCorsConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocorsConfig(ResponseHeadersPolicyCorsConfig).- Parameters:
corsConfig- a consumer that will call methods onResponseHeadersPolicyCorsConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
securityHeadersConfig
ResponseHeadersPolicyConfig.Builder securityHeadersConfig(ResponseHeadersPolicySecurityHeadersConfig securityHeadersConfig) A configuration for a set of security-related HTTP response headers.
- Parameters:
securityHeadersConfig- A configuration for a set of security-related HTTP response headers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityHeadersConfig
default ResponseHeadersPolicyConfig.Builder securityHeadersConfig(Consumer<ResponseHeadersPolicySecurityHeadersConfig.Builder> securityHeadersConfig) A configuration for a set of security-related HTTP response headers.
This is a convenience method that creates an instance of theResponseHeadersPolicySecurityHeadersConfig.Builderavoiding the need to create one manually viaResponseHeadersPolicySecurityHeadersConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosecurityHeadersConfig(ResponseHeadersPolicySecurityHeadersConfig).- Parameters:
securityHeadersConfig- a consumer that will call methods onResponseHeadersPolicySecurityHeadersConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
serverTimingHeadersConfig
ResponseHeadersPolicyConfig.Builder serverTimingHeadersConfig(ResponseHeadersPolicyServerTimingHeadersConfig serverTimingHeadersConfig) A configuration for enabling the
Server-Timingheader in HTTP responses sent from CloudFront.- Parameters:
serverTimingHeadersConfig- A configuration for enabling theServer-Timingheader in HTTP responses sent from CloudFront.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverTimingHeadersConfig
default ResponseHeadersPolicyConfig.Builder serverTimingHeadersConfig(Consumer<ResponseHeadersPolicyServerTimingHeadersConfig.Builder> serverTimingHeadersConfig) A configuration for enabling the
This is a convenience method that creates an instance of theServer-Timingheader in HTTP responses sent from CloudFront.ResponseHeadersPolicyServerTimingHeadersConfig.Builderavoiding the need to create one manually viaResponseHeadersPolicyServerTimingHeadersConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toserverTimingHeadersConfig(ResponseHeadersPolicyServerTimingHeadersConfig).- Parameters:
serverTimingHeadersConfig- a consumer that will call methods onResponseHeadersPolicyServerTimingHeadersConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
customHeadersConfig
ResponseHeadersPolicyConfig.Builder customHeadersConfig(ResponseHeadersPolicyCustomHeadersConfig customHeadersConfig) A configuration for a set of custom HTTP response headers.
- Parameters:
customHeadersConfig- A configuration for a set of custom HTTP response headers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customHeadersConfig
default ResponseHeadersPolicyConfig.Builder customHeadersConfig(Consumer<ResponseHeadersPolicyCustomHeadersConfig.Builder> customHeadersConfig) A configuration for a set of custom HTTP response headers.
This is a convenience method that creates an instance of theResponseHeadersPolicyCustomHeadersConfig.Builderavoiding the need to create one manually viaResponseHeadersPolicyCustomHeadersConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocustomHeadersConfig(ResponseHeadersPolicyCustomHeadersConfig).- Parameters:
customHeadersConfig- a consumer that will call methods onResponseHeadersPolicyCustomHeadersConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
removeHeadersConfig
ResponseHeadersPolicyConfig.Builder removeHeadersConfig(ResponseHeadersPolicyRemoveHeadersConfig removeHeadersConfig) A configuration for a set of HTTP headers to remove from the HTTP response.
- Parameters:
removeHeadersConfig- A configuration for a set of HTTP headers to remove from the HTTP response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
removeHeadersConfig
default ResponseHeadersPolicyConfig.Builder removeHeadersConfig(Consumer<ResponseHeadersPolicyRemoveHeadersConfig.Builder> removeHeadersConfig) A configuration for a set of HTTP headers to remove from the HTTP response.
This is a convenience method that creates an instance of theResponseHeadersPolicyRemoveHeadersConfig.Builderavoiding the need to create one manually viaResponseHeadersPolicyRemoveHeadersConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toremoveHeadersConfig(ResponseHeadersPolicyRemoveHeadersConfig).- Parameters:
removeHeadersConfig- a consumer that will call methods onResponseHeadersPolicyRemoveHeadersConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-