Struct aws_sdk_ec2::model::target_group::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for TargetGroup
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the target group.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the target group.
Examples found in repository?
src/xml_deser.rs (line 71278)
71261 71262 71263 71264 71265 71266 71267 71268 71269 71270 71271 71272 71273 71274 71275 71276 71277 71278 71279 71280 71281 71282 71283 71284 71285
pub fn deser_structure_crate_model_target_group(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TargetGroup, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::TargetGroup::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("arn") /* Arn com.amazonaws.ec2#TargetGroup$Arn */ => {
let var_3515 =
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_arn(var_3515);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> TargetGroup
pub fn build(self) -> TargetGroup
Consumes the builder and constructs a TargetGroup
.
Examples found in repository?
src/xml_deser.rs (line 71284)
71261 71262 71263 71264 71265 71266 71267 71268 71269 71270 71271 71272 71273 71274 71275 71276 71277 71278 71279 71280 71281 71282 71283 71284 71285
pub fn deser_structure_crate_model_target_group(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TargetGroup, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::TargetGroup::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("arn") /* Arn com.amazonaws.ec2#TargetGroup$Arn */ => {
let var_3515 =
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_arn(var_3515);
}
,
_ => {}
}
}
Ok(builder.build())
}