Struct aws_sdk_cloudfront::types::builders::OriginGroupBuilder
source · #[non_exhaustive]pub struct OriginGroupBuilder { /* private fields */ }
Expand description
A builder for OriginGroup
.
Implementations§
source§impl OriginGroupBuilder
impl OriginGroupBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The origin group's ID.
This field is required.sourcepub fn failover_criteria(self, input: OriginGroupFailoverCriteria) -> Self
pub fn failover_criteria(self, input: OriginGroupFailoverCriteria) -> Self
A complex type that contains information about the failover criteria for an origin group.
This field is required.sourcepub fn set_failover_criteria(
self,
input: Option<OriginGroupFailoverCriteria>
) -> Self
pub fn set_failover_criteria( self, input: Option<OriginGroupFailoverCriteria> ) -> Self
A complex type that contains information about the failover criteria for an origin group.
sourcepub fn get_failover_criteria(&self) -> &Option<OriginGroupFailoverCriteria>
pub fn get_failover_criteria(&self) -> &Option<OriginGroupFailoverCriteria>
A complex type that contains information about the failover criteria for an origin group.
sourcepub fn members(self, input: OriginGroupMembers) -> Self
pub fn members(self, input: OriginGroupMembers) -> Self
A complex type that contains information about the origins in an origin group.
This field is required.sourcepub fn set_members(self, input: Option<OriginGroupMembers>) -> Self
pub fn set_members(self, input: Option<OriginGroupMembers>) -> Self
A complex type that contains information about the origins in an origin group.
sourcepub fn get_members(&self) -> &Option<OriginGroupMembers>
pub fn get_members(&self) -> &Option<OriginGroupMembers>
A complex type that contains information about the origins in an origin group.
sourcepub fn build(self) -> Result<OriginGroup, BuildError>
pub fn build(self) -> Result<OriginGroup, BuildError>
Consumes the builder and constructs a OriginGroup
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for OriginGroupBuilder
impl Clone for OriginGroupBuilder
source§fn clone(&self) -> OriginGroupBuilder
fn clone(&self) -> OriginGroupBuilder
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 Debug for OriginGroupBuilder
impl Debug for OriginGroupBuilder
source§impl Default for OriginGroupBuilder
impl Default for OriginGroupBuilder
source§fn default() -> OriginGroupBuilder
fn default() -> OriginGroupBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for OriginGroupBuilder
impl PartialEq for OriginGroupBuilder
source§fn eq(&self, other: &OriginGroupBuilder) -> bool
fn eq(&self, other: &OriginGroupBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OriginGroupBuilder
Auto Trait Implementations§
impl Freeze for OriginGroupBuilder
impl RefUnwindSafe for OriginGroupBuilder
impl Send for OriginGroupBuilder
impl Sync for OriginGroupBuilder
impl Unpin for OriginGroupBuilder
impl UnwindSafe for OriginGroupBuilder
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.