pub struct Builder { /* private fields */ }
Expand description
A builder for AdditionalAttribute
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn key(self, input: impl Into<String>) -> Self
pub fn key(self, input: impl Into<String>) -> Self
The name of the attribute.
The following attribute is supported.
-
elb.http.desyncmitigationmode
- Determines how the load balancer handles requests that might pose a security risk to your application. The possible values aremonitor
,defensive
, andstrictest
. The default isdefensive
.
sourcepub fn set_key(self, input: Option<String>) -> Self
pub fn set_key(self, input: Option<String>) -> Self
The name of the attribute.
The following attribute is supported.
-
elb.http.desyncmitigationmode
- Determines how the load balancer handles requests that might pose a security risk to your application. The possible values aremonitor
,defensive
, andstrictest
. The default isdefensive
.
Examples found in repository?
src/xml_deser.rs (line 2693)
2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713
pub fn deser_structure_crate_model_additional_attribute(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AdditionalAttribute, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AdditionalAttribute::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Key") /* Key com.amazonaws.elasticloadbalancing#AdditionalAttribute$Key */ => {
let var_92 =
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_key(var_92);
}
,
s if s.matches("Value") /* Value com.amazonaws.elasticloadbalancing#AdditionalAttribute$Value */ => {
let var_93 =
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_value(var_93);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn set_value(self, input: Option<String>) -> Self
pub fn set_value(self, input: Option<String>) -> Self
This value of the attribute.
Examples found in repository?
src/xml_deser.rs (line 2706)
2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713
pub fn deser_structure_crate_model_additional_attribute(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AdditionalAttribute, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AdditionalAttribute::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Key") /* Key com.amazonaws.elasticloadbalancing#AdditionalAttribute$Key */ => {
let var_92 =
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_key(var_92);
}
,
s if s.matches("Value") /* Value com.amazonaws.elasticloadbalancing#AdditionalAttribute$Value */ => {
let var_93 =
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_value(var_93);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> AdditionalAttribute
pub fn build(self) -> AdditionalAttribute
Consumes the builder and constructs a AdditionalAttribute
.
Examples found in repository?
src/xml_deser.rs (line 2712)
2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713
pub fn deser_structure_crate_model_additional_attribute(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AdditionalAttribute, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AdditionalAttribute::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Key") /* Key com.amazonaws.elasticloadbalancing#AdditionalAttribute$Key */ => {
let var_92 =
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_key(var_92);
}
,
s if s.matches("Value") /* Value com.amazonaws.elasticloadbalancing#AdditionalAttribute$Value */ => {
let var_93 =
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_value(var_93);
}
,
_ => {}
}
}
Ok(builder.build())
}