#[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 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 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<TargetGroupStickinessConfigBuilder> for TargetGroupStickinessConfigBuilder
impl PartialEq<TargetGroupStickinessConfigBuilder> 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 ==
.