Struct aws_sdk_ec2::model::ipam_scope::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for IpamScope
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn owner_id(self, input: impl Into<String>) -> Self
pub fn owner_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID of the owner of the scope.
sourcepub fn set_owner_id(self, input: Option<String>) -> Self
pub fn set_owner_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID of the owner of the scope.
Examples found in repository?
27582 27583 27584 27585 27586 27587 27588 27589 27590 27591 27592 27593 27594 27595 27596 27597 27598 27599 27600 27601 27602 27603 27604 27605 27606 27607 27608 27609 27610 27611 27612 27613 27614 27615 27616 27617 27618 27619 27620 27621 27622 27623 27624 27625 27626 27627 27628 27629 27630 27631 27632 27633 27634 27635 27636 27637 27638 27639 27640 27641 27642 27643 27644 27645 27646 27647 27648 27649 27650 27651 27652 27653 27654 27655 27656 27657 27658 27659 27660 27661 27662 27663 27664 27665 27666 27667 27668 27669 27670 27671 27672 27673 27674 27675 27676 27677 27678 27679 27680 27681 27682 27683 27684 27685 27686 27687 27688 27689 27690 27691 27692 27693 27694 27695 27696 27697 27698 27699 27700 27701 27702 27703 27704 27705 27706 27707 27708 27709 27710 27711 27712 27713 27714 27715 27716 27717 27718 27719 27720 27721 27722 27723 27724 27725 27726 27727 27728 27729 27730 27731 27732 27733 27734 27735 27736 27737 27738 27739
pub fn deser_structure_crate_model_ipam_scope(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IpamScope, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IpamScope::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#IpamScope$OwnerId */ => {
let var_1122 =
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_owner_id(var_1122);
}
,
s if s.matches("ipamScopeId") /* IpamScopeId com.amazonaws.ec2#IpamScope$IpamScopeId */ => {
let var_1123 =
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_ipam_scope_id(var_1123);
}
,
s if s.matches("ipamScopeArn") /* IpamScopeArn com.amazonaws.ec2#IpamScope$IpamScopeArn */ => {
let var_1124 =
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_ipam_scope_arn(var_1124);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#IpamScope$IpamArn */ => {
let var_1125 =
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_ipam_arn(var_1125);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#IpamScope$IpamRegion */ => {
let var_1126 =
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_ipam_region(var_1126);
}
,
s if s.matches("ipamScopeType") /* IpamScopeType com.amazonaws.ec2#IpamScope$IpamScopeType */ => {
let var_1127 =
Some(
Result::<crate::model::IpamScopeType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_ipam_scope_type(var_1127);
}
,
s if s.matches("isDefault") /* IsDefault com.amazonaws.ec2#IpamScope$IsDefault */ => {
let var_1128 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_is_default(var_1128);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#IpamScope$Description */ => {
let var_1129 =
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_description(var_1129);
}
,
s if s.matches("poolCount") /* PoolCount com.amazonaws.ec2#IpamScope$PoolCount */ => {
let var_1130 =
Some(
{
<i32 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 (integer: `com.amazonaws.ec2#Integer`)"))
}
?
)
;
builder = builder.set_pool_count(var_1130);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#IpamScope$State */ => {
let var_1131 =
Some(
Result::<crate::model::IpamScopeState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1131);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#IpamScope$Tags */ => {
let var_1132 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1132);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn ipam_scope_id(self, input: impl Into<String>) -> Self
pub fn ipam_scope_id(self, input: impl Into<String>) -> Self
The ID of the scope.
sourcepub fn set_ipam_scope_id(self, input: Option<String>) -> Self
pub fn set_ipam_scope_id(self, input: Option<String>) -> Self
The ID of the scope.
Examples found in repository?
27582 27583 27584 27585 27586 27587 27588 27589 27590 27591 27592 27593 27594 27595 27596 27597 27598 27599 27600 27601 27602 27603 27604 27605 27606 27607 27608 27609 27610 27611 27612 27613 27614 27615 27616 27617 27618 27619 27620 27621 27622 27623 27624 27625 27626 27627 27628 27629 27630 27631 27632 27633 27634 27635 27636 27637 27638 27639 27640 27641 27642 27643 27644 27645 27646 27647 27648 27649 27650 27651 27652 27653 27654 27655 27656 27657 27658 27659 27660 27661 27662 27663 27664 27665 27666 27667 27668 27669 27670 27671 27672 27673 27674 27675 27676 27677 27678 27679 27680 27681 27682 27683 27684 27685 27686 27687 27688 27689 27690 27691 27692 27693 27694 27695 27696 27697 27698 27699 27700 27701 27702 27703 27704 27705 27706 27707 27708 27709 27710 27711 27712 27713 27714 27715 27716 27717 27718 27719 27720 27721 27722 27723 27724 27725 27726 27727 27728 27729 27730 27731 27732 27733 27734 27735 27736 27737 27738 27739
pub fn deser_structure_crate_model_ipam_scope(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IpamScope, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IpamScope::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#IpamScope$OwnerId */ => {
let var_1122 =
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_owner_id(var_1122);
}
,
s if s.matches("ipamScopeId") /* IpamScopeId com.amazonaws.ec2#IpamScope$IpamScopeId */ => {
let var_1123 =
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_ipam_scope_id(var_1123);
}
,
s if s.matches("ipamScopeArn") /* IpamScopeArn com.amazonaws.ec2#IpamScope$IpamScopeArn */ => {
let var_1124 =
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_ipam_scope_arn(var_1124);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#IpamScope$IpamArn */ => {
let var_1125 =
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_ipam_arn(var_1125);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#IpamScope$IpamRegion */ => {
let var_1126 =
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_ipam_region(var_1126);
}
,
s if s.matches("ipamScopeType") /* IpamScopeType com.amazonaws.ec2#IpamScope$IpamScopeType */ => {
let var_1127 =
Some(
Result::<crate::model::IpamScopeType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_ipam_scope_type(var_1127);
}
,
s if s.matches("isDefault") /* IsDefault com.amazonaws.ec2#IpamScope$IsDefault */ => {
let var_1128 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_is_default(var_1128);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#IpamScope$Description */ => {
let var_1129 =
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_description(var_1129);
}
,
s if s.matches("poolCount") /* PoolCount com.amazonaws.ec2#IpamScope$PoolCount */ => {
let var_1130 =
Some(
{
<i32 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 (integer: `com.amazonaws.ec2#Integer`)"))
}
?
)
;
builder = builder.set_pool_count(var_1130);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#IpamScope$State */ => {
let var_1131 =
Some(
Result::<crate::model::IpamScopeState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1131);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#IpamScope$Tags */ => {
let var_1132 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1132);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn ipam_scope_arn(self, input: impl Into<String>) -> Self
pub fn ipam_scope_arn(self, input: impl Into<String>) -> Self
The ARN of the scope.
sourcepub fn set_ipam_scope_arn(self, input: Option<String>) -> Self
pub fn set_ipam_scope_arn(self, input: Option<String>) -> Self
The ARN of the scope.
Examples found in repository?
27582 27583 27584 27585 27586 27587 27588 27589 27590 27591 27592 27593 27594 27595 27596 27597 27598 27599 27600 27601 27602 27603 27604 27605 27606 27607 27608 27609 27610 27611 27612 27613 27614 27615 27616 27617 27618 27619 27620 27621 27622 27623 27624 27625 27626 27627 27628 27629 27630 27631 27632 27633 27634 27635 27636 27637 27638 27639 27640 27641 27642 27643 27644 27645 27646 27647 27648 27649 27650 27651 27652 27653 27654 27655 27656 27657 27658 27659 27660 27661 27662 27663 27664 27665 27666 27667 27668 27669 27670 27671 27672 27673 27674 27675 27676 27677 27678 27679 27680 27681 27682 27683 27684 27685 27686 27687 27688 27689 27690 27691 27692 27693 27694 27695 27696 27697 27698 27699 27700 27701 27702 27703 27704 27705 27706 27707 27708 27709 27710 27711 27712 27713 27714 27715 27716 27717 27718 27719 27720 27721 27722 27723 27724 27725 27726 27727 27728 27729 27730 27731 27732 27733 27734 27735 27736 27737 27738 27739
pub fn deser_structure_crate_model_ipam_scope(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IpamScope, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IpamScope::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#IpamScope$OwnerId */ => {
let var_1122 =
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_owner_id(var_1122);
}
,
s if s.matches("ipamScopeId") /* IpamScopeId com.amazonaws.ec2#IpamScope$IpamScopeId */ => {
let var_1123 =
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_ipam_scope_id(var_1123);
}
,
s if s.matches("ipamScopeArn") /* IpamScopeArn com.amazonaws.ec2#IpamScope$IpamScopeArn */ => {
let var_1124 =
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_ipam_scope_arn(var_1124);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#IpamScope$IpamArn */ => {
let var_1125 =
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_ipam_arn(var_1125);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#IpamScope$IpamRegion */ => {
let var_1126 =
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_ipam_region(var_1126);
}
,
s if s.matches("ipamScopeType") /* IpamScopeType com.amazonaws.ec2#IpamScope$IpamScopeType */ => {
let var_1127 =
Some(
Result::<crate::model::IpamScopeType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_ipam_scope_type(var_1127);
}
,
s if s.matches("isDefault") /* IsDefault com.amazonaws.ec2#IpamScope$IsDefault */ => {
let var_1128 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_is_default(var_1128);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#IpamScope$Description */ => {
let var_1129 =
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_description(var_1129);
}
,
s if s.matches("poolCount") /* PoolCount com.amazonaws.ec2#IpamScope$PoolCount */ => {
let var_1130 =
Some(
{
<i32 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 (integer: `com.amazonaws.ec2#Integer`)"))
}
?
)
;
builder = builder.set_pool_count(var_1130);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#IpamScope$State */ => {
let var_1131 =
Some(
Result::<crate::model::IpamScopeState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1131);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#IpamScope$Tags */ => {
let var_1132 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1132);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn set_ipam_arn(self, input: Option<String>) -> Self
pub fn set_ipam_arn(self, input: Option<String>) -> Self
The ARN of the IPAM.
Examples found in repository?
27582 27583 27584 27585 27586 27587 27588 27589 27590 27591 27592 27593 27594 27595 27596 27597 27598 27599 27600 27601 27602 27603 27604 27605 27606 27607 27608 27609 27610 27611 27612 27613 27614 27615 27616 27617 27618 27619 27620 27621 27622 27623 27624 27625 27626 27627 27628 27629 27630 27631 27632 27633 27634 27635 27636 27637 27638 27639 27640 27641 27642 27643 27644 27645 27646 27647 27648 27649 27650 27651 27652 27653 27654 27655 27656 27657 27658 27659 27660 27661 27662 27663 27664 27665 27666 27667 27668 27669 27670 27671 27672 27673 27674 27675 27676 27677 27678 27679 27680 27681 27682 27683 27684 27685 27686 27687 27688 27689 27690 27691 27692 27693 27694 27695 27696 27697 27698 27699 27700 27701 27702 27703 27704 27705 27706 27707 27708 27709 27710 27711 27712 27713 27714 27715 27716 27717 27718 27719 27720 27721 27722 27723 27724 27725 27726 27727 27728 27729 27730 27731 27732 27733 27734 27735 27736 27737 27738 27739
pub fn deser_structure_crate_model_ipam_scope(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IpamScope, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IpamScope::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#IpamScope$OwnerId */ => {
let var_1122 =
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_owner_id(var_1122);
}
,
s if s.matches("ipamScopeId") /* IpamScopeId com.amazonaws.ec2#IpamScope$IpamScopeId */ => {
let var_1123 =
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_ipam_scope_id(var_1123);
}
,
s if s.matches("ipamScopeArn") /* IpamScopeArn com.amazonaws.ec2#IpamScope$IpamScopeArn */ => {
let var_1124 =
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_ipam_scope_arn(var_1124);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#IpamScope$IpamArn */ => {
let var_1125 =
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_ipam_arn(var_1125);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#IpamScope$IpamRegion */ => {
let var_1126 =
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_ipam_region(var_1126);
}
,
s if s.matches("ipamScopeType") /* IpamScopeType com.amazonaws.ec2#IpamScope$IpamScopeType */ => {
let var_1127 =
Some(
Result::<crate::model::IpamScopeType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_ipam_scope_type(var_1127);
}
,
s if s.matches("isDefault") /* IsDefault com.amazonaws.ec2#IpamScope$IsDefault */ => {
let var_1128 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_is_default(var_1128);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#IpamScope$Description */ => {
let var_1129 =
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_description(var_1129);
}
,
s if s.matches("poolCount") /* PoolCount com.amazonaws.ec2#IpamScope$PoolCount */ => {
let var_1130 =
Some(
{
<i32 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 (integer: `com.amazonaws.ec2#Integer`)"))
}
?
)
;
builder = builder.set_pool_count(var_1130);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#IpamScope$State */ => {
let var_1131 =
Some(
Result::<crate::model::IpamScopeState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1131);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#IpamScope$Tags */ => {
let var_1132 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1132);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn ipam_region(self, input: impl Into<String>) -> Self
pub fn ipam_region(self, input: impl Into<String>) -> Self
The Amazon Web Services Region of the IPAM scope.
sourcepub fn set_ipam_region(self, input: Option<String>) -> Self
pub fn set_ipam_region(self, input: Option<String>) -> Self
The Amazon Web Services Region of the IPAM scope.
Examples found in repository?
27582 27583 27584 27585 27586 27587 27588 27589 27590 27591 27592 27593 27594 27595 27596 27597 27598 27599 27600 27601 27602 27603 27604 27605 27606 27607 27608 27609 27610 27611 27612 27613 27614 27615 27616 27617 27618 27619 27620 27621 27622 27623 27624 27625 27626 27627 27628 27629 27630 27631 27632 27633 27634 27635 27636 27637 27638 27639 27640 27641 27642 27643 27644 27645 27646 27647 27648 27649 27650 27651 27652 27653 27654 27655 27656 27657 27658 27659 27660 27661 27662 27663 27664 27665 27666 27667 27668 27669 27670 27671 27672 27673 27674 27675 27676 27677 27678 27679 27680 27681 27682 27683 27684 27685 27686 27687 27688 27689 27690 27691 27692 27693 27694 27695 27696 27697 27698 27699 27700 27701 27702 27703 27704 27705 27706 27707 27708 27709 27710 27711 27712 27713 27714 27715 27716 27717 27718 27719 27720 27721 27722 27723 27724 27725 27726 27727 27728 27729 27730 27731 27732 27733 27734 27735 27736 27737 27738 27739
pub fn deser_structure_crate_model_ipam_scope(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IpamScope, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IpamScope::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#IpamScope$OwnerId */ => {
let var_1122 =
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_owner_id(var_1122);
}
,
s if s.matches("ipamScopeId") /* IpamScopeId com.amazonaws.ec2#IpamScope$IpamScopeId */ => {
let var_1123 =
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_ipam_scope_id(var_1123);
}
,
s if s.matches("ipamScopeArn") /* IpamScopeArn com.amazonaws.ec2#IpamScope$IpamScopeArn */ => {
let var_1124 =
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_ipam_scope_arn(var_1124);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#IpamScope$IpamArn */ => {
let var_1125 =
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_ipam_arn(var_1125);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#IpamScope$IpamRegion */ => {
let var_1126 =
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_ipam_region(var_1126);
}
,
s if s.matches("ipamScopeType") /* IpamScopeType com.amazonaws.ec2#IpamScope$IpamScopeType */ => {
let var_1127 =
Some(
Result::<crate::model::IpamScopeType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_ipam_scope_type(var_1127);
}
,
s if s.matches("isDefault") /* IsDefault com.amazonaws.ec2#IpamScope$IsDefault */ => {
let var_1128 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_is_default(var_1128);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#IpamScope$Description */ => {
let var_1129 =
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_description(var_1129);
}
,
s if s.matches("poolCount") /* PoolCount com.amazonaws.ec2#IpamScope$PoolCount */ => {
let var_1130 =
Some(
{
<i32 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 (integer: `com.amazonaws.ec2#Integer`)"))
}
?
)
;
builder = builder.set_pool_count(var_1130);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#IpamScope$State */ => {
let var_1131 =
Some(
Result::<crate::model::IpamScopeState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1131);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#IpamScope$Tags */ => {
let var_1132 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1132);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn ipam_scope_type(self, input: IpamScopeType) -> Self
pub fn ipam_scope_type(self, input: IpamScopeType) -> Self
The type of the scope.
sourcepub fn set_ipam_scope_type(self, input: Option<IpamScopeType>) -> Self
pub fn set_ipam_scope_type(self, input: Option<IpamScopeType>) -> Self
The type of the scope.
Examples found in repository?
27582 27583 27584 27585 27586 27587 27588 27589 27590 27591 27592 27593 27594 27595 27596 27597 27598 27599 27600 27601 27602 27603 27604 27605 27606 27607 27608 27609 27610 27611 27612 27613 27614 27615 27616 27617 27618 27619 27620 27621 27622 27623 27624 27625 27626 27627 27628 27629 27630 27631 27632 27633 27634 27635 27636 27637 27638 27639 27640 27641 27642 27643 27644 27645 27646 27647 27648 27649 27650 27651 27652 27653 27654 27655 27656 27657 27658 27659 27660 27661 27662 27663 27664 27665 27666 27667 27668 27669 27670 27671 27672 27673 27674 27675 27676 27677 27678 27679 27680 27681 27682 27683 27684 27685 27686 27687 27688 27689 27690 27691 27692 27693 27694 27695 27696 27697 27698 27699 27700 27701 27702 27703 27704 27705 27706 27707 27708 27709 27710 27711 27712 27713 27714 27715 27716 27717 27718 27719 27720 27721 27722 27723 27724 27725 27726 27727 27728 27729 27730 27731 27732 27733 27734 27735 27736 27737 27738 27739
pub fn deser_structure_crate_model_ipam_scope(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IpamScope, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IpamScope::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#IpamScope$OwnerId */ => {
let var_1122 =
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_owner_id(var_1122);
}
,
s if s.matches("ipamScopeId") /* IpamScopeId com.amazonaws.ec2#IpamScope$IpamScopeId */ => {
let var_1123 =
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_ipam_scope_id(var_1123);
}
,
s if s.matches("ipamScopeArn") /* IpamScopeArn com.amazonaws.ec2#IpamScope$IpamScopeArn */ => {
let var_1124 =
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_ipam_scope_arn(var_1124);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#IpamScope$IpamArn */ => {
let var_1125 =
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_ipam_arn(var_1125);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#IpamScope$IpamRegion */ => {
let var_1126 =
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_ipam_region(var_1126);
}
,
s if s.matches("ipamScopeType") /* IpamScopeType com.amazonaws.ec2#IpamScope$IpamScopeType */ => {
let var_1127 =
Some(
Result::<crate::model::IpamScopeType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_ipam_scope_type(var_1127);
}
,
s if s.matches("isDefault") /* IsDefault com.amazonaws.ec2#IpamScope$IsDefault */ => {
let var_1128 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_is_default(var_1128);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#IpamScope$Description */ => {
let var_1129 =
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_description(var_1129);
}
,
s if s.matches("poolCount") /* PoolCount com.amazonaws.ec2#IpamScope$PoolCount */ => {
let var_1130 =
Some(
{
<i32 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 (integer: `com.amazonaws.ec2#Integer`)"))
}
?
)
;
builder = builder.set_pool_count(var_1130);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#IpamScope$State */ => {
let var_1131 =
Some(
Result::<crate::model::IpamScopeState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1131);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#IpamScope$Tags */ => {
let var_1132 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1132);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn is_default(self, input: bool) -> Self
pub fn is_default(self, input: bool) -> Self
Defines if the scope is the default scope or not.
sourcepub fn set_is_default(self, input: Option<bool>) -> Self
pub fn set_is_default(self, input: Option<bool>) -> Self
Defines if the scope is the default scope or not.
Examples found in repository?
27582 27583 27584 27585 27586 27587 27588 27589 27590 27591 27592 27593 27594 27595 27596 27597 27598 27599 27600 27601 27602 27603 27604 27605 27606 27607 27608 27609 27610 27611 27612 27613 27614 27615 27616 27617 27618 27619 27620 27621 27622 27623 27624 27625 27626 27627 27628 27629 27630 27631 27632 27633 27634 27635 27636 27637 27638 27639 27640 27641 27642 27643 27644 27645 27646 27647 27648 27649 27650 27651 27652 27653 27654 27655 27656 27657 27658 27659 27660 27661 27662 27663 27664 27665 27666 27667 27668 27669 27670 27671 27672 27673 27674 27675 27676 27677 27678 27679 27680 27681 27682 27683 27684 27685 27686 27687 27688 27689 27690 27691 27692 27693 27694 27695 27696 27697 27698 27699 27700 27701 27702 27703 27704 27705 27706 27707 27708 27709 27710 27711 27712 27713 27714 27715 27716 27717 27718 27719 27720 27721 27722 27723 27724 27725 27726 27727 27728 27729 27730 27731 27732 27733 27734 27735 27736 27737 27738 27739
pub fn deser_structure_crate_model_ipam_scope(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IpamScope, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IpamScope::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#IpamScope$OwnerId */ => {
let var_1122 =
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_owner_id(var_1122);
}
,
s if s.matches("ipamScopeId") /* IpamScopeId com.amazonaws.ec2#IpamScope$IpamScopeId */ => {
let var_1123 =
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_ipam_scope_id(var_1123);
}
,
s if s.matches("ipamScopeArn") /* IpamScopeArn com.amazonaws.ec2#IpamScope$IpamScopeArn */ => {
let var_1124 =
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_ipam_scope_arn(var_1124);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#IpamScope$IpamArn */ => {
let var_1125 =
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_ipam_arn(var_1125);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#IpamScope$IpamRegion */ => {
let var_1126 =
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_ipam_region(var_1126);
}
,
s if s.matches("ipamScopeType") /* IpamScopeType com.amazonaws.ec2#IpamScope$IpamScopeType */ => {
let var_1127 =
Some(
Result::<crate::model::IpamScopeType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_ipam_scope_type(var_1127);
}
,
s if s.matches("isDefault") /* IsDefault com.amazonaws.ec2#IpamScope$IsDefault */ => {
let var_1128 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_is_default(var_1128);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#IpamScope$Description */ => {
let var_1129 =
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_description(var_1129);
}
,
s if s.matches("poolCount") /* PoolCount com.amazonaws.ec2#IpamScope$PoolCount */ => {
let var_1130 =
Some(
{
<i32 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 (integer: `com.amazonaws.ec2#Integer`)"))
}
?
)
;
builder = builder.set_pool_count(var_1130);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#IpamScope$State */ => {
let var_1131 =
Some(
Result::<crate::model::IpamScopeState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1131);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#IpamScope$Tags */ => {
let var_1132 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1132);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the scope.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the scope.
Examples found in repository?
27582 27583 27584 27585 27586 27587 27588 27589 27590 27591 27592 27593 27594 27595 27596 27597 27598 27599 27600 27601 27602 27603 27604 27605 27606 27607 27608 27609 27610 27611 27612 27613 27614 27615 27616 27617 27618 27619 27620 27621 27622 27623 27624 27625 27626 27627 27628 27629 27630 27631 27632 27633 27634 27635 27636 27637 27638 27639 27640 27641 27642 27643 27644 27645 27646 27647 27648 27649 27650 27651 27652 27653 27654 27655 27656 27657 27658 27659 27660 27661 27662 27663 27664 27665 27666 27667 27668 27669 27670 27671 27672 27673 27674 27675 27676 27677 27678 27679 27680 27681 27682 27683 27684 27685 27686 27687 27688 27689 27690 27691 27692 27693 27694 27695 27696 27697 27698 27699 27700 27701 27702 27703 27704 27705 27706 27707 27708 27709 27710 27711 27712 27713 27714 27715 27716 27717 27718 27719 27720 27721 27722 27723 27724 27725 27726 27727 27728 27729 27730 27731 27732 27733 27734 27735 27736 27737 27738 27739
pub fn deser_structure_crate_model_ipam_scope(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IpamScope, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IpamScope::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#IpamScope$OwnerId */ => {
let var_1122 =
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_owner_id(var_1122);
}
,
s if s.matches("ipamScopeId") /* IpamScopeId com.amazonaws.ec2#IpamScope$IpamScopeId */ => {
let var_1123 =
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_ipam_scope_id(var_1123);
}
,
s if s.matches("ipamScopeArn") /* IpamScopeArn com.amazonaws.ec2#IpamScope$IpamScopeArn */ => {
let var_1124 =
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_ipam_scope_arn(var_1124);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#IpamScope$IpamArn */ => {
let var_1125 =
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_ipam_arn(var_1125);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#IpamScope$IpamRegion */ => {
let var_1126 =
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_ipam_region(var_1126);
}
,
s if s.matches("ipamScopeType") /* IpamScopeType com.amazonaws.ec2#IpamScope$IpamScopeType */ => {
let var_1127 =
Some(
Result::<crate::model::IpamScopeType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_ipam_scope_type(var_1127);
}
,
s if s.matches("isDefault") /* IsDefault com.amazonaws.ec2#IpamScope$IsDefault */ => {
let var_1128 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_is_default(var_1128);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#IpamScope$Description */ => {
let var_1129 =
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_description(var_1129);
}
,
s if s.matches("poolCount") /* PoolCount com.amazonaws.ec2#IpamScope$PoolCount */ => {
let var_1130 =
Some(
{
<i32 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 (integer: `com.amazonaws.ec2#Integer`)"))
}
?
)
;
builder = builder.set_pool_count(var_1130);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#IpamScope$State */ => {
let var_1131 =
Some(
Result::<crate::model::IpamScopeState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1131);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#IpamScope$Tags */ => {
let var_1132 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1132);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn pool_count(self, input: i32) -> Self
pub fn pool_count(self, input: i32) -> Self
The number of pools in the scope.
sourcepub fn set_pool_count(self, input: Option<i32>) -> Self
pub fn set_pool_count(self, input: Option<i32>) -> Self
The number of pools in the scope.
Examples found in repository?
27582 27583 27584 27585 27586 27587 27588 27589 27590 27591 27592 27593 27594 27595 27596 27597 27598 27599 27600 27601 27602 27603 27604 27605 27606 27607 27608 27609 27610 27611 27612 27613 27614 27615 27616 27617 27618 27619 27620 27621 27622 27623 27624 27625 27626 27627 27628 27629 27630 27631 27632 27633 27634 27635 27636 27637 27638 27639 27640 27641 27642 27643 27644 27645 27646 27647 27648 27649 27650 27651 27652 27653 27654 27655 27656 27657 27658 27659 27660 27661 27662 27663 27664 27665 27666 27667 27668 27669 27670 27671 27672 27673 27674 27675 27676 27677 27678 27679 27680 27681 27682 27683 27684 27685 27686 27687 27688 27689 27690 27691 27692 27693 27694 27695 27696 27697 27698 27699 27700 27701 27702 27703 27704 27705 27706 27707 27708 27709 27710 27711 27712 27713 27714 27715 27716 27717 27718 27719 27720 27721 27722 27723 27724 27725 27726 27727 27728 27729 27730 27731 27732 27733 27734 27735 27736 27737 27738 27739
pub fn deser_structure_crate_model_ipam_scope(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IpamScope, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IpamScope::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#IpamScope$OwnerId */ => {
let var_1122 =
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_owner_id(var_1122);
}
,
s if s.matches("ipamScopeId") /* IpamScopeId com.amazonaws.ec2#IpamScope$IpamScopeId */ => {
let var_1123 =
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_ipam_scope_id(var_1123);
}
,
s if s.matches("ipamScopeArn") /* IpamScopeArn com.amazonaws.ec2#IpamScope$IpamScopeArn */ => {
let var_1124 =
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_ipam_scope_arn(var_1124);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#IpamScope$IpamArn */ => {
let var_1125 =
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_ipam_arn(var_1125);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#IpamScope$IpamRegion */ => {
let var_1126 =
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_ipam_region(var_1126);
}
,
s if s.matches("ipamScopeType") /* IpamScopeType com.amazonaws.ec2#IpamScope$IpamScopeType */ => {
let var_1127 =
Some(
Result::<crate::model::IpamScopeType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_ipam_scope_type(var_1127);
}
,
s if s.matches("isDefault") /* IsDefault com.amazonaws.ec2#IpamScope$IsDefault */ => {
let var_1128 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_is_default(var_1128);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#IpamScope$Description */ => {
let var_1129 =
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_description(var_1129);
}
,
s if s.matches("poolCount") /* PoolCount com.amazonaws.ec2#IpamScope$PoolCount */ => {
let var_1130 =
Some(
{
<i32 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 (integer: `com.amazonaws.ec2#Integer`)"))
}
?
)
;
builder = builder.set_pool_count(var_1130);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#IpamScope$State */ => {
let var_1131 =
Some(
Result::<crate::model::IpamScopeState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1131);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#IpamScope$Tags */ => {
let var_1132 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1132);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn state(self, input: IpamScopeState) -> Self
pub fn state(self, input: IpamScopeState) -> Self
The state of the IPAM scope.
sourcepub fn set_state(self, input: Option<IpamScopeState>) -> Self
pub fn set_state(self, input: Option<IpamScopeState>) -> Self
The state of the IPAM scope.
Examples found in repository?
27582 27583 27584 27585 27586 27587 27588 27589 27590 27591 27592 27593 27594 27595 27596 27597 27598 27599 27600 27601 27602 27603 27604 27605 27606 27607 27608 27609 27610 27611 27612 27613 27614 27615 27616 27617 27618 27619 27620 27621 27622 27623 27624 27625 27626 27627 27628 27629 27630 27631 27632 27633 27634 27635 27636 27637 27638 27639 27640 27641 27642 27643 27644 27645 27646 27647 27648 27649 27650 27651 27652 27653 27654 27655 27656 27657 27658 27659 27660 27661 27662 27663 27664 27665 27666 27667 27668 27669 27670 27671 27672 27673 27674 27675 27676 27677 27678 27679 27680 27681 27682 27683 27684 27685 27686 27687 27688 27689 27690 27691 27692 27693 27694 27695 27696 27697 27698 27699 27700 27701 27702 27703 27704 27705 27706 27707 27708 27709 27710 27711 27712 27713 27714 27715 27716 27717 27718 27719 27720 27721 27722 27723 27724 27725 27726 27727 27728 27729 27730 27731 27732 27733 27734 27735 27736 27737 27738 27739
pub fn deser_structure_crate_model_ipam_scope(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IpamScope, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IpamScope::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#IpamScope$OwnerId */ => {
let var_1122 =
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_owner_id(var_1122);
}
,
s if s.matches("ipamScopeId") /* IpamScopeId com.amazonaws.ec2#IpamScope$IpamScopeId */ => {
let var_1123 =
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_ipam_scope_id(var_1123);
}
,
s if s.matches("ipamScopeArn") /* IpamScopeArn com.amazonaws.ec2#IpamScope$IpamScopeArn */ => {
let var_1124 =
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_ipam_scope_arn(var_1124);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#IpamScope$IpamArn */ => {
let var_1125 =
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_ipam_arn(var_1125);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#IpamScope$IpamRegion */ => {
let var_1126 =
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_ipam_region(var_1126);
}
,
s if s.matches("ipamScopeType") /* IpamScopeType com.amazonaws.ec2#IpamScope$IpamScopeType */ => {
let var_1127 =
Some(
Result::<crate::model::IpamScopeType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_ipam_scope_type(var_1127);
}
,
s if s.matches("isDefault") /* IsDefault com.amazonaws.ec2#IpamScope$IsDefault */ => {
let var_1128 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_is_default(var_1128);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#IpamScope$Description */ => {
let var_1129 =
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_description(var_1129);
}
,
s if s.matches("poolCount") /* PoolCount com.amazonaws.ec2#IpamScope$PoolCount */ => {
let var_1130 =
Some(
{
<i32 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 (integer: `com.amazonaws.ec2#Integer`)"))
}
?
)
;
builder = builder.set_pool_count(var_1130);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#IpamScope$State */ => {
let var_1131 =
Some(
Result::<crate::model::IpamScopeState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1131);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#IpamScope$Tags */ => {
let var_1132 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1132);
}
,
_ => {}
}
}
Ok(builder.build())
}
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner
and the value TeamA
, specify tag:Owner
for the filter name and TeamA
for the filter value.
The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner
and the value TeamA
, specify tag:Owner
for the filter name and TeamA
for the filter value.
Examples found in repository?
27582 27583 27584 27585 27586 27587 27588 27589 27590 27591 27592 27593 27594 27595 27596 27597 27598 27599 27600 27601 27602 27603 27604 27605 27606 27607 27608 27609 27610 27611 27612 27613 27614 27615 27616 27617 27618 27619 27620 27621 27622 27623 27624 27625 27626 27627 27628 27629 27630 27631 27632 27633 27634 27635 27636 27637 27638 27639 27640 27641 27642 27643 27644 27645 27646 27647 27648 27649 27650 27651 27652 27653 27654 27655 27656 27657 27658 27659 27660 27661 27662 27663 27664 27665 27666 27667 27668 27669 27670 27671 27672 27673 27674 27675 27676 27677 27678 27679 27680 27681 27682 27683 27684 27685 27686 27687 27688 27689 27690 27691 27692 27693 27694 27695 27696 27697 27698 27699 27700 27701 27702 27703 27704 27705 27706 27707 27708 27709 27710 27711 27712 27713 27714 27715 27716 27717 27718 27719 27720 27721 27722 27723 27724 27725 27726 27727 27728 27729 27730 27731 27732 27733 27734 27735 27736 27737 27738 27739
pub fn deser_structure_crate_model_ipam_scope(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IpamScope, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IpamScope::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#IpamScope$OwnerId */ => {
let var_1122 =
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_owner_id(var_1122);
}
,
s if s.matches("ipamScopeId") /* IpamScopeId com.amazonaws.ec2#IpamScope$IpamScopeId */ => {
let var_1123 =
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_ipam_scope_id(var_1123);
}
,
s if s.matches("ipamScopeArn") /* IpamScopeArn com.amazonaws.ec2#IpamScope$IpamScopeArn */ => {
let var_1124 =
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_ipam_scope_arn(var_1124);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#IpamScope$IpamArn */ => {
let var_1125 =
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_ipam_arn(var_1125);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#IpamScope$IpamRegion */ => {
let var_1126 =
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_ipam_region(var_1126);
}
,
s if s.matches("ipamScopeType") /* IpamScopeType com.amazonaws.ec2#IpamScope$IpamScopeType */ => {
let var_1127 =
Some(
Result::<crate::model::IpamScopeType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_ipam_scope_type(var_1127);
}
,
s if s.matches("isDefault") /* IsDefault com.amazonaws.ec2#IpamScope$IsDefault */ => {
let var_1128 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_is_default(var_1128);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#IpamScope$Description */ => {
let var_1129 =
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_description(var_1129);
}
,
s if s.matches("poolCount") /* PoolCount com.amazonaws.ec2#IpamScope$PoolCount */ => {
let var_1130 =
Some(
{
<i32 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 (integer: `com.amazonaws.ec2#Integer`)"))
}
?
)
;
builder = builder.set_pool_count(var_1130);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#IpamScope$State */ => {
let var_1131 =
Some(
Result::<crate::model::IpamScopeState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1131);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#IpamScope$Tags */ => {
let var_1132 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1132);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> IpamScope
pub fn build(self) -> IpamScope
Consumes the builder and constructs a IpamScope
.
Examples found in repository?
27582 27583 27584 27585 27586 27587 27588 27589 27590 27591 27592 27593 27594 27595 27596 27597 27598 27599 27600 27601 27602 27603 27604 27605 27606 27607 27608 27609 27610 27611 27612 27613 27614 27615 27616 27617 27618 27619 27620 27621 27622 27623 27624 27625 27626 27627 27628 27629 27630 27631 27632 27633 27634 27635 27636 27637 27638 27639 27640 27641 27642 27643 27644 27645 27646 27647 27648 27649 27650 27651 27652 27653 27654 27655 27656 27657 27658 27659 27660 27661 27662 27663 27664 27665 27666 27667 27668 27669 27670 27671 27672 27673 27674 27675 27676 27677 27678 27679 27680 27681 27682 27683 27684 27685 27686 27687 27688 27689 27690 27691 27692 27693 27694 27695 27696 27697 27698 27699 27700 27701 27702 27703 27704 27705 27706 27707 27708 27709 27710 27711 27712 27713 27714 27715 27716 27717 27718 27719 27720 27721 27722 27723 27724 27725 27726 27727 27728 27729 27730 27731 27732 27733 27734 27735 27736 27737 27738 27739
pub fn deser_structure_crate_model_ipam_scope(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IpamScope, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IpamScope::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#IpamScope$OwnerId */ => {
let var_1122 =
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_owner_id(var_1122);
}
,
s if s.matches("ipamScopeId") /* IpamScopeId com.amazonaws.ec2#IpamScope$IpamScopeId */ => {
let var_1123 =
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_ipam_scope_id(var_1123);
}
,
s if s.matches("ipamScopeArn") /* IpamScopeArn com.amazonaws.ec2#IpamScope$IpamScopeArn */ => {
let var_1124 =
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_ipam_scope_arn(var_1124);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#IpamScope$IpamArn */ => {
let var_1125 =
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_ipam_arn(var_1125);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#IpamScope$IpamRegion */ => {
let var_1126 =
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_ipam_region(var_1126);
}
,
s if s.matches("ipamScopeType") /* IpamScopeType com.amazonaws.ec2#IpamScope$IpamScopeType */ => {
let var_1127 =
Some(
Result::<crate::model::IpamScopeType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_ipam_scope_type(var_1127);
}
,
s if s.matches("isDefault") /* IsDefault com.amazonaws.ec2#IpamScope$IsDefault */ => {
let var_1128 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_is_default(var_1128);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#IpamScope$Description */ => {
let var_1129 =
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_description(var_1129);
}
,
s if s.matches("poolCount") /* PoolCount com.amazonaws.ec2#IpamScope$PoolCount */ => {
let var_1130 =
Some(
{
<i32 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 (integer: `com.amazonaws.ec2#Integer`)"))
}
?
)
;
builder = builder.set_pool_count(var_1130);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#IpamScope$State */ => {
let var_1131 =
Some(
Result::<crate::model::IpamScopeState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamScopeState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1131);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#IpamScope$Tags */ => {
let var_1132 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1132);
}
,
_ => {}
}
}
Ok(builder.build())
}