#[non_exhaustive]pub struct ResponseHeadersPolicyCustomHeaderBuilder { /* private fields */ }
Expand description
A builder for ResponseHeadersPolicyCustomHeader
.
Implementations§
source§impl ResponseHeadersPolicyCustomHeaderBuilder
impl ResponseHeadersPolicyCustomHeaderBuilder
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 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.
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 build(self) -> ResponseHeadersPolicyCustomHeader
pub fn build(self) -> ResponseHeadersPolicyCustomHeader
Consumes the builder and constructs a ResponseHeadersPolicyCustomHeader
.
Trait Implementations§
source§impl Clone for ResponseHeadersPolicyCustomHeaderBuilder
impl Clone for ResponseHeadersPolicyCustomHeaderBuilder
source§fn clone(&self) -> ResponseHeadersPolicyCustomHeaderBuilder
fn clone(&self) -> ResponseHeadersPolicyCustomHeaderBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for ResponseHeadersPolicyCustomHeaderBuilder
impl Default for ResponseHeadersPolicyCustomHeaderBuilder
source§fn default() -> ResponseHeadersPolicyCustomHeaderBuilder
fn default() -> ResponseHeadersPolicyCustomHeaderBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<ResponseHeadersPolicyCustomHeaderBuilder> for ResponseHeadersPolicyCustomHeaderBuilder
impl PartialEq<ResponseHeadersPolicyCustomHeaderBuilder> for ResponseHeadersPolicyCustomHeaderBuilder
source§fn eq(&self, other: &ResponseHeadersPolicyCustomHeaderBuilder) -> bool
fn eq(&self, other: &ResponseHeadersPolicyCustomHeaderBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.