#[non_exhaustive]pub struct TargetGroupStickinessConfigBuilder { /* private fields */ }
Expand description
A builder for TargetGroupStickinessConfig
.
Implementations§
source§impl TargetGroupStickinessConfigBuilder
impl TargetGroupStickinessConfigBuilder
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
Indicates whether target group stickiness is enabled.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Indicates whether target group stickiness is enabled.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
Indicates whether target group stickiness is enabled.
sourcepub fn duration_seconds(self, input: i32) -> Self
pub fn duration_seconds(self, input: i32) -> Self
The time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days).
sourcepub fn set_duration_seconds(self, input: Option<i32>) -> Self
pub fn set_duration_seconds(self, input: Option<i32>) -> Self
The time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days).
sourcepub fn get_duration_seconds(&self) -> &Option<i32>
pub fn get_duration_seconds(&self) -> &Option<i32>
The time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days).
sourcepub fn build(self) -> TargetGroupStickinessConfig
pub fn build(self) -> TargetGroupStickinessConfig
Consumes the builder and constructs a TargetGroupStickinessConfig
.
Trait Implementations§
source§impl Clone for TargetGroupStickinessConfigBuilder
impl Clone for TargetGroupStickinessConfigBuilder
source§fn clone(&self) -> TargetGroupStickinessConfigBuilder
fn clone(&self) -> TargetGroupStickinessConfigBuilder
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 TargetGroupStickinessConfigBuilder
impl Default for TargetGroupStickinessConfigBuilder
source§fn default() -> TargetGroupStickinessConfigBuilder
fn default() -> TargetGroupStickinessConfigBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for TargetGroupStickinessConfigBuilder
impl PartialEq for TargetGroupStickinessConfigBuilder
source§fn eq(&self, other: &TargetGroupStickinessConfigBuilder) -> bool
fn eq(&self, other: &TargetGroupStickinessConfigBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TargetGroupStickinessConfigBuilder
Auto Trait Implementations§
impl RefUnwindSafe for TargetGroupStickinessConfigBuilder
impl Send for TargetGroupStickinessConfigBuilder
impl Sync for TargetGroupStickinessConfigBuilder
impl Unpin for TargetGroupStickinessConfigBuilder
impl UnwindSafe for TargetGroupStickinessConfigBuilder
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.