#[non_exhaustive]pub struct ResponseHeadersPolicyCustomHeaderBuilder { /* private fields */ }
Expand description
A builder for ResponseHeadersPolicyCustomHeader
.
Implementations§
source§impl ResponseHeadersPolicyCustomHeaderBuilder
impl ResponseHeadersPolicyCustomHeaderBuilder
sourcepub fn header(self, input: impl Into<String>) -> Self
pub fn header(self, input: impl Into<String>) -> Self
The HTTP response header name.
This field is required.sourcepub fn set_header(self, input: Option<String>) -> Self
pub fn set_header(self, input: Option<String>) -> Self
The HTTP response header name.
sourcepub fn get_header(&self) -> &Option<String>
pub fn get_header(&self) -> &Option<String>
The HTTP response header name.
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
The value for the HTTP response header.
This field is required.sourcepub fn override(self, input: bool) -> Self
pub fn override(self, input: bool) -> Self
A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.
This field is required.sourcepub fn set_override(self, input: Option<bool>) -> Self
pub fn set_override(self, input: Option<bool>) -> Self
A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.
sourcepub fn get_override(&self) -> &Option<bool>
pub fn get_override(&self) -> &Option<bool>
A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.
sourcepub fn build(self) -> Result<ResponseHeadersPolicyCustomHeader, BuildError>
pub fn build(self) -> Result<ResponseHeadersPolicyCustomHeader, BuildError>
Consumes the builder and constructs a ResponseHeadersPolicyCustomHeader
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResponseHeadersPolicyCustomHeaderBuilder
impl Clone for ResponseHeadersPolicyCustomHeaderBuilder
source§fn clone(&self) -> ResponseHeadersPolicyCustomHeaderBuilder
fn clone(&self) -> ResponseHeadersPolicyCustomHeaderBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ResponseHeadersPolicyCustomHeaderBuilder
impl Default for ResponseHeadersPolicyCustomHeaderBuilder
source§fn default() -> ResponseHeadersPolicyCustomHeaderBuilder
fn default() -> ResponseHeadersPolicyCustomHeaderBuilder
source§impl PartialEq for ResponseHeadersPolicyCustomHeaderBuilder
impl PartialEq for ResponseHeadersPolicyCustomHeaderBuilder
source§fn eq(&self, other: &ResponseHeadersPolicyCustomHeaderBuilder) -> bool
fn eq(&self, other: &ResponseHeadersPolicyCustomHeaderBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.