#[non_exhaustive]pub struct OriginRequestPolicySummaryBuilder { /* private fields */ }
Expand description
A builder for OriginRequestPolicySummary
.
Implementations§
source§impl OriginRequestPolicySummaryBuilder
impl OriginRequestPolicySummaryBuilder
sourcepub fn type(self, input: OriginRequestPolicyType) -> Self
pub fn type(self, input: OriginRequestPolicyType) -> Self
The type of origin request policy, either managed
(created by Amazon Web Services) or custom
(created in this Amazon Web Services account).
sourcepub fn set_type(self, input: Option<OriginRequestPolicyType>) -> Self
pub fn set_type(self, input: Option<OriginRequestPolicyType>) -> Self
The type of origin request policy, either managed
(created by Amazon Web Services) or custom
(created in this Amazon Web Services account).
sourcepub fn get_type(&self) -> &Option<OriginRequestPolicyType>
pub fn get_type(&self) -> &Option<OriginRequestPolicyType>
The type of origin request policy, either managed
(created by Amazon Web Services) or custom
(created in this Amazon Web Services account).
sourcepub fn origin_request_policy(self, input: OriginRequestPolicy) -> Self
pub fn origin_request_policy(self, input: OriginRequestPolicy) -> Self
The origin request policy.
This field is required.sourcepub fn set_origin_request_policy(
self,
input: Option<OriginRequestPolicy>
) -> Self
pub fn set_origin_request_policy( self, input: Option<OriginRequestPolicy> ) -> Self
The origin request policy.
sourcepub fn get_origin_request_policy(&self) -> &Option<OriginRequestPolicy>
pub fn get_origin_request_policy(&self) -> &Option<OriginRequestPolicy>
The origin request policy.
sourcepub fn build(self) -> Result<OriginRequestPolicySummary, BuildError>
pub fn build(self) -> Result<OriginRequestPolicySummary, BuildError>
Consumes the builder and constructs a OriginRequestPolicySummary
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for OriginRequestPolicySummaryBuilder
impl Clone for OriginRequestPolicySummaryBuilder
source§fn clone(&self) -> OriginRequestPolicySummaryBuilder
fn clone(&self) -> OriginRequestPolicySummaryBuilder
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 OriginRequestPolicySummaryBuilder
impl Default for OriginRequestPolicySummaryBuilder
source§fn default() -> OriginRequestPolicySummaryBuilder
fn default() -> OriginRequestPolicySummaryBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for OriginRequestPolicySummaryBuilder
impl PartialEq for OriginRequestPolicySummaryBuilder
source§fn eq(&self, other: &OriginRequestPolicySummaryBuilder) -> bool
fn eq(&self, other: &OriginRequestPolicySummaryBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OriginRequestPolicySummaryBuilder
Auto Trait Implementations§
impl RefUnwindSafe for OriginRequestPolicySummaryBuilder
impl Send for OriginRequestPolicySummaryBuilder
impl Sync for OriginRequestPolicySummaryBuilder
impl Unpin for OriginRequestPolicySummaryBuilder
impl UnwindSafe for OriginRequestPolicySummaryBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.