Struct openstack_sdk::api::load_balancer::v2::pool::member::create::MemberBuilder
source · pub struct MemberBuilder<'a> { /* private fields */ }Expand description
Builder for Member.
Implementations§
source§impl<'a> MemberBuilder<'a>
impl<'a> MemberBuilder<'a>
sourcepub fn address<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn address<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The IP address of the resource.
sourcepub fn admin_state_up(&mut self, value: bool) -> &mut Self
pub fn admin_state_up(&mut self, value: bool) -> &mut Self
The administrative state of the resource, which is up (true) or down
(false). Default is true.
sourcepub fn backup(&mut self, value: bool) -> &mut Self
pub fn backup(&mut self, value: bool) -> &mut Self
Is the member a backup? Backup members only receive traffic when all non-backup members are down.
New in version 2.1
sourcepub fn monitor_address<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn monitor_address<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
An alternate IP address used for health monitoring a backend member.
Default is null which monitors the member address.
sourcepub fn monitor_port(&mut self, value: i32) -> &mut Self
pub fn monitor_port(&mut self, value: i32) -> &mut Self
An alternate protocol port used for health monitoring a backend member.
Default is null which monitors the member protocol_port.
sourcepub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
Human-readable name of the resource.
sourcepub fn project_id<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn project_id<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The ID of the project owning this resource. (deprecated)
sourcepub fn protocol_port(&mut self, value: i32) -> &mut Self
pub fn protocol_port(&mut self, value: i32) -> &mut Self
The protocol port number for the resource.
sourcepub fn subnet_id<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn subnet_id<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The subnet ID the member service is accessible from.
A list of simple strings assigned to the resource.
New in version 2.5
pub fn tenant_id<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
sourcepub fn weight(&mut self, value: i32) -> &mut Self
pub fn weight(&mut self, value: i32) -> &mut Self
The weight of a member determines the portion of requests or
connections it services compared to the other members of the pool. For
example, a member with a weight of 10 receives five times as many
requests as a member with a weight of 2. A value of 0 means the member
does not receive new connections but continues to service existing
connections. A valid value is from 0 to 256. Default is 1.
Trait Implementations§
source§impl<'a> Clone for MemberBuilder<'a>
impl<'a> Clone for MemberBuilder<'a>
source§fn clone(&self) -> MemberBuilder<'a>
fn clone(&self) -> MemberBuilder<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for MemberBuilder<'a>
impl<'a> RefUnwindSafe for MemberBuilder<'a>
impl<'a> Send for MemberBuilder<'a>
impl<'a> Sync for MemberBuilder<'a>
impl<'a> Unpin for MemberBuilder<'a>
impl<'a> UnwindSafe for MemberBuilder<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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>
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>
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 more