#[non_exhaustive]pub struct LbCookieStickinessPolicy { /* private fields */ }
Expand description
Information about a policy for duration-based session stickiness.
Implementations§
source§impl LbCookieStickinessPolicy
impl LbCookieStickinessPolicy
sourcepub fn policy_name(&self) -> Option<&str>
pub fn policy_name(&self) -> Option<&str>
The name of the policy. This name must be unique within the set of policies for this load balancer.
The time period, in seconds, after which the cookie should be considered stale. If this parameter is not specified, the stickiness session lasts for the duration of the browser session.
source§impl LbCookieStickinessPolicy
impl LbCookieStickinessPolicy
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture LbCookieStickinessPolicy
.
Examples found in repository?
src/xml_deser.rs (line 3320)
3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355
pub fn deser_structure_crate_model_lb_cookie_stickiness_policy(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::LbCookieStickinessPolicy, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::LbCookieStickinessPolicy::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("PolicyName") /* PolicyName com.amazonaws.elasticloadbalancing#LBCookieStickinessPolicy$PolicyName */ => {
let var_119 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_policy_name(var_119);
}
,
s if s.matches("CookieExpirationPeriod") /* CookieExpirationPeriod com.amazonaws.elasticloadbalancing#LBCookieStickinessPolicy$CookieExpirationPeriod */ => {
let var_120 =
Some(
{
<i64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `com.amazonaws.elasticloadbalancing#CookieExpirationPeriod`)"))
}
?
)
;
builder = builder.set_cookie_expiration_period(var_120);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for LbCookieStickinessPolicy
impl Clone for LbCookieStickinessPolicy
source§fn clone(&self) -> LbCookieStickinessPolicy
fn clone(&self) -> LbCookieStickinessPolicy
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 more