#[non_exhaustive]pub struct AppCookieStickinessPolicy { /* private fields */ }
Expand description
Information about a policy for application-controlled session stickiness.
Implementations§
source§impl AppCookieStickinessPolicy
impl AppCookieStickinessPolicy
sourcepub fn policy_name(&self) -> Option<&str>
pub fn policy_name(&self) -> Option<&str>
The mnemonic name for the policy being created. The name must be unique within a set of policies for this load balancer.
The name of the application cookie used for stickiness.
source§impl AppCookieStickinessPolicy
impl AppCookieStickinessPolicy
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AppCookieStickinessPolicy
.
Examples found in repository?
src/xml_deser.rs (line 3281)
3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314
pub fn deser_structure_crate_model_app_cookie_stickiness_policy(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AppCookieStickinessPolicy, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AppCookieStickinessPolicy::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("PolicyName") /* PolicyName com.amazonaws.elasticloadbalancing#AppCookieStickinessPolicy$PolicyName */ => {
let var_117 =
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_117);
}
,
s if s.matches("CookieName") /* CookieName com.amazonaws.elasticloadbalancing#AppCookieStickinessPolicy$CookieName */ => {
let var_118 =
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_cookie_name(var_118);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for AppCookieStickinessPolicy
impl Clone for AppCookieStickinessPolicy
source§fn clone(&self) -> AppCookieStickinessPolicy
fn clone(&self) -> AppCookieStickinessPolicy
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