Struct aws_sdk_ec2::model::availability_zone::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AvailabilityZone
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn state(self, input: AvailabilityZoneState) -> Self
pub fn state(self, input: AvailabilityZoneState) -> Self
The state of the Availability Zone, Local Zone, or Wavelength Zone. This value is always available
.
sourcepub fn set_state(self, input: Option<AvailabilityZoneState>) -> Self
pub fn set_state(self, input: Option<AvailabilityZoneState>) -> Self
The state of the Availability Zone, Local Zone, or Wavelength Zone. This value is always available
.
Examples found in repository?
43055 43056 43057 43058 43059 43060 43061 43062 43063 43064 43065 43066 43067 43068 43069 43070 43071 43072 43073 43074 43075 43076 43077 43078 43079 43080 43081 43082 43083 43084 43085 43086 43087 43088 43089 43090 43091 43092 43093 43094 43095 43096 43097 43098 43099 43100 43101 43102 43103 43104 43105 43106 43107 43108 43109 43110 43111 43112 43113 43114 43115 43116 43117 43118 43119 43120 43121 43122 43123 43124 43125 43126 43127 43128 43129 43130 43131 43132 43133 43134 43135 43136 43137 43138 43139 43140 43141 43142 43143 43144 43145 43146 43147 43148 43149 43150 43151 43152 43153 43154 43155 43156 43157 43158 43159 43160 43161 43162 43163 43164 43165 43166 43167 43168 43169 43170 43171 43172 43173 43174 43175 43176 43177 43178 43179 43180 43181 43182 43183 43184 43185 43186 43187 43188 43189 43190 43191 43192 43193 43194 43195 43196 43197 43198 43199 43200 43201 43202 43203 43204 43205 43206 43207 43208
pub fn deser_structure_crate_model_availability_zone(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AvailabilityZone, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AvailabilityZone::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("zoneState") /* State com.amazonaws.ec2#AvailabilityZone$State */ => {
let var_1853 =
Some(
Result::<crate::model::AvailabilityZoneState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1853);
}
,
s if s.matches("optInStatus") /* OptInStatus com.amazonaws.ec2#AvailabilityZone$OptInStatus */ => {
let var_1854 =
Some(
Result::<crate::model::AvailabilityZoneOptInStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneOptInStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_opt_in_status(var_1854);
}
,
s if s.matches("messageSet") /* Messages com.amazonaws.ec2#AvailabilityZone$Messages */ => {
let var_1855 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_availability_zone_message_list(&mut tag)
?
)
;
builder = builder.set_messages(var_1855);
}
,
s if s.matches("regionName") /* RegionName com.amazonaws.ec2#AvailabilityZone$RegionName */ => {
let var_1856 =
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_region_name(var_1856);
}
,
s if s.matches("zoneName") /* ZoneName com.amazonaws.ec2#AvailabilityZone$ZoneName */ => {
let var_1857 =
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_zone_name(var_1857);
}
,
s if s.matches("zoneId") /* ZoneId com.amazonaws.ec2#AvailabilityZone$ZoneId */ => {
let var_1858 =
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_zone_id(var_1858);
}
,
s if s.matches("groupName") /* GroupName com.amazonaws.ec2#AvailabilityZone$GroupName */ => {
let var_1859 =
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_group_name(var_1859);
}
,
s if s.matches("networkBorderGroup") /* NetworkBorderGroup com.amazonaws.ec2#AvailabilityZone$NetworkBorderGroup */ => {
let var_1860 =
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_network_border_group(var_1860);
}
,
s if s.matches("zoneType") /* ZoneType com.amazonaws.ec2#AvailabilityZone$ZoneType */ => {
let var_1861 =
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_zone_type(var_1861);
}
,
s if s.matches("parentZoneName") /* ParentZoneName com.amazonaws.ec2#AvailabilityZone$ParentZoneName */ => {
let var_1862 =
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_parent_zone_name(var_1862);
}
,
s if s.matches("parentZoneId") /* ParentZoneId com.amazonaws.ec2#AvailabilityZone$ParentZoneId */ => {
let var_1863 =
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_parent_zone_id(var_1863);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn opt_in_status(self, input: AvailabilityZoneOptInStatus) -> Self
pub fn opt_in_status(self, input: AvailabilityZoneOptInStatus) -> Self
For Availability Zones, this parameter always has the value of opt-in-not-required
.
For Local Zones and Wavelength Zones, this parameter is the opt-in status. The possible values are opted-in
, and not-opted-in
.
sourcepub fn set_opt_in_status(
self,
input: Option<AvailabilityZoneOptInStatus>
) -> Self
pub fn set_opt_in_status(
self,
input: Option<AvailabilityZoneOptInStatus>
) -> Self
For Availability Zones, this parameter always has the value of opt-in-not-required
.
For Local Zones and Wavelength Zones, this parameter is the opt-in status. The possible values are opted-in
, and not-opted-in
.
Examples found in repository?
43055 43056 43057 43058 43059 43060 43061 43062 43063 43064 43065 43066 43067 43068 43069 43070 43071 43072 43073 43074 43075 43076 43077 43078 43079 43080 43081 43082 43083 43084 43085 43086 43087 43088 43089 43090 43091 43092 43093 43094 43095 43096 43097 43098 43099 43100 43101 43102 43103 43104 43105 43106 43107 43108 43109 43110 43111 43112 43113 43114 43115 43116 43117 43118 43119 43120 43121 43122 43123 43124 43125 43126 43127 43128 43129 43130 43131 43132 43133 43134 43135 43136 43137 43138 43139 43140 43141 43142 43143 43144 43145 43146 43147 43148 43149 43150 43151 43152 43153 43154 43155 43156 43157 43158 43159 43160 43161 43162 43163 43164 43165 43166 43167 43168 43169 43170 43171 43172 43173 43174 43175 43176 43177 43178 43179 43180 43181 43182 43183 43184 43185 43186 43187 43188 43189 43190 43191 43192 43193 43194 43195 43196 43197 43198 43199 43200 43201 43202 43203 43204 43205 43206 43207 43208
pub fn deser_structure_crate_model_availability_zone(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AvailabilityZone, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AvailabilityZone::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("zoneState") /* State com.amazonaws.ec2#AvailabilityZone$State */ => {
let var_1853 =
Some(
Result::<crate::model::AvailabilityZoneState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1853);
}
,
s if s.matches("optInStatus") /* OptInStatus com.amazonaws.ec2#AvailabilityZone$OptInStatus */ => {
let var_1854 =
Some(
Result::<crate::model::AvailabilityZoneOptInStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneOptInStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_opt_in_status(var_1854);
}
,
s if s.matches("messageSet") /* Messages com.amazonaws.ec2#AvailabilityZone$Messages */ => {
let var_1855 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_availability_zone_message_list(&mut tag)
?
)
;
builder = builder.set_messages(var_1855);
}
,
s if s.matches("regionName") /* RegionName com.amazonaws.ec2#AvailabilityZone$RegionName */ => {
let var_1856 =
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_region_name(var_1856);
}
,
s if s.matches("zoneName") /* ZoneName com.amazonaws.ec2#AvailabilityZone$ZoneName */ => {
let var_1857 =
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_zone_name(var_1857);
}
,
s if s.matches("zoneId") /* ZoneId com.amazonaws.ec2#AvailabilityZone$ZoneId */ => {
let var_1858 =
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_zone_id(var_1858);
}
,
s if s.matches("groupName") /* GroupName com.amazonaws.ec2#AvailabilityZone$GroupName */ => {
let var_1859 =
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_group_name(var_1859);
}
,
s if s.matches("networkBorderGroup") /* NetworkBorderGroup com.amazonaws.ec2#AvailabilityZone$NetworkBorderGroup */ => {
let var_1860 =
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_network_border_group(var_1860);
}
,
s if s.matches("zoneType") /* ZoneType com.amazonaws.ec2#AvailabilityZone$ZoneType */ => {
let var_1861 =
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_zone_type(var_1861);
}
,
s if s.matches("parentZoneName") /* ParentZoneName com.amazonaws.ec2#AvailabilityZone$ParentZoneName */ => {
let var_1862 =
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_parent_zone_name(var_1862);
}
,
s if s.matches("parentZoneId") /* ParentZoneId com.amazonaws.ec2#AvailabilityZone$ParentZoneId */ => {
let var_1863 =
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_parent_zone_id(var_1863);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn messages(self, input: AvailabilityZoneMessage) -> Self
pub fn messages(self, input: AvailabilityZoneMessage) -> Self
Appends an item to messages
.
To override the contents of this collection use set_messages
.
Any messages about the Availability Zone, Local Zone, or Wavelength Zone.
sourcepub fn set_messages(self, input: Option<Vec<AvailabilityZoneMessage>>) -> Self
pub fn set_messages(self, input: Option<Vec<AvailabilityZoneMessage>>) -> Self
Any messages about the Availability Zone, Local Zone, or Wavelength Zone.
Examples found in repository?
43055 43056 43057 43058 43059 43060 43061 43062 43063 43064 43065 43066 43067 43068 43069 43070 43071 43072 43073 43074 43075 43076 43077 43078 43079 43080 43081 43082 43083 43084 43085 43086 43087 43088 43089 43090 43091 43092 43093 43094 43095 43096 43097 43098 43099 43100 43101 43102 43103 43104 43105 43106 43107 43108 43109 43110 43111 43112 43113 43114 43115 43116 43117 43118 43119 43120 43121 43122 43123 43124 43125 43126 43127 43128 43129 43130 43131 43132 43133 43134 43135 43136 43137 43138 43139 43140 43141 43142 43143 43144 43145 43146 43147 43148 43149 43150 43151 43152 43153 43154 43155 43156 43157 43158 43159 43160 43161 43162 43163 43164 43165 43166 43167 43168 43169 43170 43171 43172 43173 43174 43175 43176 43177 43178 43179 43180 43181 43182 43183 43184 43185 43186 43187 43188 43189 43190 43191 43192 43193 43194 43195 43196 43197 43198 43199 43200 43201 43202 43203 43204 43205 43206 43207 43208
pub fn deser_structure_crate_model_availability_zone(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AvailabilityZone, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AvailabilityZone::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("zoneState") /* State com.amazonaws.ec2#AvailabilityZone$State */ => {
let var_1853 =
Some(
Result::<crate::model::AvailabilityZoneState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1853);
}
,
s if s.matches("optInStatus") /* OptInStatus com.amazonaws.ec2#AvailabilityZone$OptInStatus */ => {
let var_1854 =
Some(
Result::<crate::model::AvailabilityZoneOptInStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneOptInStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_opt_in_status(var_1854);
}
,
s if s.matches("messageSet") /* Messages com.amazonaws.ec2#AvailabilityZone$Messages */ => {
let var_1855 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_availability_zone_message_list(&mut tag)
?
)
;
builder = builder.set_messages(var_1855);
}
,
s if s.matches("regionName") /* RegionName com.amazonaws.ec2#AvailabilityZone$RegionName */ => {
let var_1856 =
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_region_name(var_1856);
}
,
s if s.matches("zoneName") /* ZoneName com.amazonaws.ec2#AvailabilityZone$ZoneName */ => {
let var_1857 =
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_zone_name(var_1857);
}
,
s if s.matches("zoneId") /* ZoneId com.amazonaws.ec2#AvailabilityZone$ZoneId */ => {
let var_1858 =
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_zone_id(var_1858);
}
,
s if s.matches("groupName") /* GroupName com.amazonaws.ec2#AvailabilityZone$GroupName */ => {
let var_1859 =
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_group_name(var_1859);
}
,
s if s.matches("networkBorderGroup") /* NetworkBorderGroup com.amazonaws.ec2#AvailabilityZone$NetworkBorderGroup */ => {
let var_1860 =
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_network_border_group(var_1860);
}
,
s if s.matches("zoneType") /* ZoneType com.amazonaws.ec2#AvailabilityZone$ZoneType */ => {
let var_1861 =
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_zone_type(var_1861);
}
,
s if s.matches("parentZoneName") /* ParentZoneName com.amazonaws.ec2#AvailabilityZone$ParentZoneName */ => {
let var_1862 =
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_parent_zone_name(var_1862);
}
,
s if s.matches("parentZoneId") /* ParentZoneId com.amazonaws.ec2#AvailabilityZone$ParentZoneId */ => {
let var_1863 =
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_parent_zone_id(var_1863);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn region_name(self, input: impl Into<String>) -> Self
pub fn region_name(self, input: impl Into<String>) -> Self
The name of the Region.
sourcepub fn set_region_name(self, input: Option<String>) -> Self
pub fn set_region_name(self, input: Option<String>) -> Self
The name of the Region.
Examples found in repository?
43055 43056 43057 43058 43059 43060 43061 43062 43063 43064 43065 43066 43067 43068 43069 43070 43071 43072 43073 43074 43075 43076 43077 43078 43079 43080 43081 43082 43083 43084 43085 43086 43087 43088 43089 43090 43091 43092 43093 43094 43095 43096 43097 43098 43099 43100 43101 43102 43103 43104 43105 43106 43107 43108 43109 43110 43111 43112 43113 43114 43115 43116 43117 43118 43119 43120 43121 43122 43123 43124 43125 43126 43127 43128 43129 43130 43131 43132 43133 43134 43135 43136 43137 43138 43139 43140 43141 43142 43143 43144 43145 43146 43147 43148 43149 43150 43151 43152 43153 43154 43155 43156 43157 43158 43159 43160 43161 43162 43163 43164 43165 43166 43167 43168 43169 43170 43171 43172 43173 43174 43175 43176 43177 43178 43179 43180 43181 43182 43183 43184 43185 43186 43187 43188 43189 43190 43191 43192 43193 43194 43195 43196 43197 43198 43199 43200 43201 43202 43203 43204 43205 43206 43207 43208
pub fn deser_structure_crate_model_availability_zone(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AvailabilityZone, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AvailabilityZone::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("zoneState") /* State com.amazonaws.ec2#AvailabilityZone$State */ => {
let var_1853 =
Some(
Result::<crate::model::AvailabilityZoneState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1853);
}
,
s if s.matches("optInStatus") /* OptInStatus com.amazonaws.ec2#AvailabilityZone$OptInStatus */ => {
let var_1854 =
Some(
Result::<crate::model::AvailabilityZoneOptInStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneOptInStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_opt_in_status(var_1854);
}
,
s if s.matches("messageSet") /* Messages com.amazonaws.ec2#AvailabilityZone$Messages */ => {
let var_1855 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_availability_zone_message_list(&mut tag)
?
)
;
builder = builder.set_messages(var_1855);
}
,
s if s.matches("regionName") /* RegionName com.amazonaws.ec2#AvailabilityZone$RegionName */ => {
let var_1856 =
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_region_name(var_1856);
}
,
s if s.matches("zoneName") /* ZoneName com.amazonaws.ec2#AvailabilityZone$ZoneName */ => {
let var_1857 =
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_zone_name(var_1857);
}
,
s if s.matches("zoneId") /* ZoneId com.amazonaws.ec2#AvailabilityZone$ZoneId */ => {
let var_1858 =
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_zone_id(var_1858);
}
,
s if s.matches("groupName") /* GroupName com.amazonaws.ec2#AvailabilityZone$GroupName */ => {
let var_1859 =
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_group_name(var_1859);
}
,
s if s.matches("networkBorderGroup") /* NetworkBorderGroup com.amazonaws.ec2#AvailabilityZone$NetworkBorderGroup */ => {
let var_1860 =
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_network_border_group(var_1860);
}
,
s if s.matches("zoneType") /* ZoneType com.amazonaws.ec2#AvailabilityZone$ZoneType */ => {
let var_1861 =
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_zone_type(var_1861);
}
,
s if s.matches("parentZoneName") /* ParentZoneName com.amazonaws.ec2#AvailabilityZone$ParentZoneName */ => {
let var_1862 =
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_parent_zone_name(var_1862);
}
,
s if s.matches("parentZoneId") /* ParentZoneId com.amazonaws.ec2#AvailabilityZone$ParentZoneId */ => {
let var_1863 =
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_parent_zone_id(var_1863);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn zone_name(self, input: impl Into<String>) -> Self
pub fn zone_name(self, input: impl Into<String>) -> Self
The name of the Availability Zone, Local Zone, or Wavelength Zone.
sourcepub fn set_zone_name(self, input: Option<String>) -> Self
pub fn set_zone_name(self, input: Option<String>) -> Self
The name of the Availability Zone, Local Zone, or Wavelength Zone.
Examples found in repository?
43055 43056 43057 43058 43059 43060 43061 43062 43063 43064 43065 43066 43067 43068 43069 43070 43071 43072 43073 43074 43075 43076 43077 43078 43079 43080 43081 43082 43083 43084 43085 43086 43087 43088 43089 43090 43091 43092 43093 43094 43095 43096 43097 43098 43099 43100 43101 43102 43103 43104 43105 43106 43107 43108 43109 43110 43111 43112 43113 43114 43115 43116 43117 43118 43119 43120 43121 43122 43123 43124 43125 43126 43127 43128 43129 43130 43131 43132 43133 43134 43135 43136 43137 43138 43139 43140 43141 43142 43143 43144 43145 43146 43147 43148 43149 43150 43151 43152 43153 43154 43155 43156 43157 43158 43159 43160 43161 43162 43163 43164 43165 43166 43167 43168 43169 43170 43171 43172 43173 43174 43175 43176 43177 43178 43179 43180 43181 43182 43183 43184 43185 43186 43187 43188 43189 43190 43191 43192 43193 43194 43195 43196 43197 43198 43199 43200 43201 43202 43203 43204 43205 43206 43207 43208
pub fn deser_structure_crate_model_availability_zone(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AvailabilityZone, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AvailabilityZone::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("zoneState") /* State com.amazonaws.ec2#AvailabilityZone$State */ => {
let var_1853 =
Some(
Result::<crate::model::AvailabilityZoneState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1853);
}
,
s if s.matches("optInStatus") /* OptInStatus com.amazonaws.ec2#AvailabilityZone$OptInStatus */ => {
let var_1854 =
Some(
Result::<crate::model::AvailabilityZoneOptInStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneOptInStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_opt_in_status(var_1854);
}
,
s if s.matches("messageSet") /* Messages com.amazonaws.ec2#AvailabilityZone$Messages */ => {
let var_1855 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_availability_zone_message_list(&mut tag)
?
)
;
builder = builder.set_messages(var_1855);
}
,
s if s.matches("regionName") /* RegionName com.amazonaws.ec2#AvailabilityZone$RegionName */ => {
let var_1856 =
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_region_name(var_1856);
}
,
s if s.matches("zoneName") /* ZoneName com.amazonaws.ec2#AvailabilityZone$ZoneName */ => {
let var_1857 =
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_zone_name(var_1857);
}
,
s if s.matches("zoneId") /* ZoneId com.amazonaws.ec2#AvailabilityZone$ZoneId */ => {
let var_1858 =
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_zone_id(var_1858);
}
,
s if s.matches("groupName") /* GroupName com.amazonaws.ec2#AvailabilityZone$GroupName */ => {
let var_1859 =
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_group_name(var_1859);
}
,
s if s.matches("networkBorderGroup") /* NetworkBorderGroup com.amazonaws.ec2#AvailabilityZone$NetworkBorderGroup */ => {
let var_1860 =
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_network_border_group(var_1860);
}
,
s if s.matches("zoneType") /* ZoneType com.amazonaws.ec2#AvailabilityZone$ZoneType */ => {
let var_1861 =
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_zone_type(var_1861);
}
,
s if s.matches("parentZoneName") /* ParentZoneName com.amazonaws.ec2#AvailabilityZone$ParentZoneName */ => {
let var_1862 =
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_parent_zone_name(var_1862);
}
,
s if s.matches("parentZoneId") /* ParentZoneId com.amazonaws.ec2#AvailabilityZone$ParentZoneId */ => {
let var_1863 =
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_parent_zone_id(var_1863);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn zone_id(self, input: impl Into<String>) -> Self
pub fn zone_id(self, input: impl Into<String>) -> Self
The ID of the Availability Zone, Local Zone, or Wavelength Zone.
sourcepub fn set_zone_id(self, input: Option<String>) -> Self
pub fn set_zone_id(self, input: Option<String>) -> Self
The ID of the Availability Zone, Local Zone, or Wavelength Zone.
Examples found in repository?
43055 43056 43057 43058 43059 43060 43061 43062 43063 43064 43065 43066 43067 43068 43069 43070 43071 43072 43073 43074 43075 43076 43077 43078 43079 43080 43081 43082 43083 43084 43085 43086 43087 43088 43089 43090 43091 43092 43093 43094 43095 43096 43097 43098 43099 43100 43101 43102 43103 43104 43105 43106 43107 43108 43109 43110 43111 43112 43113 43114 43115 43116 43117 43118 43119 43120 43121 43122 43123 43124 43125 43126 43127 43128 43129 43130 43131 43132 43133 43134 43135 43136 43137 43138 43139 43140 43141 43142 43143 43144 43145 43146 43147 43148 43149 43150 43151 43152 43153 43154 43155 43156 43157 43158 43159 43160 43161 43162 43163 43164 43165 43166 43167 43168 43169 43170 43171 43172 43173 43174 43175 43176 43177 43178 43179 43180 43181 43182 43183 43184 43185 43186 43187 43188 43189 43190 43191 43192 43193 43194 43195 43196 43197 43198 43199 43200 43201 43202 43203 43204 43205 43206 43207 43208
pub fn deser_structure_crate_model_availability_zone(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AvailabilityZone, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AvailabilityZone::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("zoneState") /* State com.amazonaws.ec2#AvailabilityZone$State */ => {
let var_1853 =
Some(
Result::<crate::model::AvailabilityZoneState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1853);
}
,
s if s.matches("optInStatus") /* OptInStatus com.amazonaws.ec2#AvailabilityZone$OptInStatus */ => {
let var_1854 =
Some(
Result::<crate::model::AvailabilityZoneOptInStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneOptInStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_opt_in_status(var_1854);
}
,
s if s.matches("messageSet") /* Messages com.amazonaws.ec2#AvailabilityZone$Messages */ => {
let var_1855 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_availability_zone_message_list(&mut tag)
?
)
;
builder = builder.set_messages(var_1855);
}
,
s if s.matches("regionName") /* RegionName com.amazonaws.ec2#AvailabilityZone$RegionName */ => {
let var_1856 =
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_region_name(var_1856);
}
,
s if s.matches("zoneName") /* ZoneName com.amazonaws.ec2#AvailabilityZone$ZoneName */ => {
let var_1857 =
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_zone_name(var_1857);
}
,
s if s.matches("zoneId") /* ZoneId com.amazonaws.ec2#AvailabilityZone$ZoneId */ => {
let var_1858 =
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_zone_id(var_1858);
}
,
s if s.matches("groupName") /* GroupName com.amazonaws.ec2#AvailabilityZone$GroupName */ => {
let var_1859 =
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_group_name(var_1859);
}
,
s if s.matches("networkBorderGroup") /* NetworkBorderGroup com.amazonaws.ec2#AvailabilityZone$NetworkBorderGroup */ => {
let var_1860 =
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_network_border_group(var_1860);
}
,
s if s.matches("zoneType") /* ZoneType com.amazonaws.ec2#AvailabilityZone$ZoneType */ => {
let var_1861 =
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_zone_type(var_1861);
}
,
s if s.matches("parentZoneName") /* ParentZoneName com.amazonaws.ec2#AvailabilityZone$ParentZoneName */ => {
let var_1862 =
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_parent_zone_name(var_1862);
}
,
s if s.matches("parentZoneId") /* ParentZoneId com.amazonaws.ec2#AvailabilityZone$ParentZoneId */ => {
let var_1863 =
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_parent_zone_id(var_1863);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn group_name(self, input: impl Into<String>) -> Self
pub fn group_name(self, input: impl Into<String>) -> Self
For Availability Zones, this parameter has the same value as the Region name.
For Local Zones, the name of the associated group, for example us-west-2-lax-1
.
For Wavelength Zones, the name of the associated group, for example us-east-1-wl1-bos-wlz-1
.
sourcepub fn set_group_name(self, input: Option<String>) -> Self
pub fn set_group_name(self, input: Option<String>) -> Self
For Availability Zones, this parameter has the same value as the Region name.
For Local Zones, the name of the associated group, for example us-west-2-lax-1
.
For Wavelength Zones, the name of the associated group, for example us-east-1-wl1-bos-wlz-1
.
Examples found in repository?
43055 43056 43057 43058 43059 43060 43061 43062 43063 43064 43065 43066 43067 43068 43069 43070 43071 43072 43073 43074 43075 43076 43077 43078 43079 43080 43081 43082 43083 43084 43085 43086 43087 43088 43089 43090 43091 43092 43093 43094 43095 43096 43097 43098 43099 43100 43101 43102 43103 43104 43105 43106 43107 43108 43109 43110 43111 43112 43113 43114 43115 43116 43117 43118 43119 43120 43121 43122 43123 43124 43125 43126 43127 43128 43129 43130 43131 43132 43133 43134 43135 43136 43137 43138 43139 43140 43141 43142 43143 43144 43145 43146 43147 43148 43149 43150 43151 43152 43153 43154 43155 43156 43157 43158 43159 43160 43161 43162 43163 43164 43165 43166 43167 43168 43169 43170 43171 43172 43173 43174 43175 43176 43177 43178 43179 43180 43181 43182 43183 43184 43185 43186 43187 43188 43189 43190 43191 43192 43193 43194 43195 43196 43197 43198 43199 43200 43201 43202 43203 43204 43205 43206 43207 43208
pub fn deser_structure_crate_model_availability_zone(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AvailabilityZone, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AvailabilityZone::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("zoneState") /* State com.amazonaws.ec2#AvailabilityZone$State */ => {
let var_1853 =
Some(
Result::<crate::model::AvailabilityZoneState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1853);
}
,
s if s.matches("optInStatus") /* OptInStatus com.amazonaws.ec2#AvailabilityZone$OptInStatus */ => {
let var_1854 =
Some(
Result::<crate::model::AvailabilityZoneOptInStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneOptInStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_opt_in_status(var_1854);
}
,
s if s.matches("messageSet") /* Messages com.amazonaws.ec2#AvailabilityZone$Messages */ => {
let var_1855 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_availability_zone_message_list(&mut tag)
?
)
;
builder = builder.set_messages(var_1855);
}
,
s if s.matches("regionName") /* RegionName com.amazonaws.ec2#AvailabilityZone$RegionName */ => {
let var_1856 =
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_region_name(var_1856);
}
,
s if s.matches("zoneName") /* ZoneName com.amazonaws.ec2#AvailabilityZone$ZoneName */ => {
let var_1857 =
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_zone_name(var_1857);
}
,
s if s.matches("zoneId") /* ZoneId com.amazonaws.ec2#AvailabilityZone$ZoneId */ => {
let var_1858 =
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_zone_id(var_1858);
}
,
s if s.matches("groupName") /* GroupName com.amazonaws.ec2#AvailabilityZone$GroupName */ => {
let var_1859 =
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_group_name(var_1859);
}
,
s if s.matches("networkBorderGroup") /* NetworkBorderGroup com.amazonaws.ec2#AvailabilityZone$NetworkBorderGroup */ => {
let var_1860 =
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_network_border_group(var_1860);
}
,
s if s.matches("zoneType") /* ZoneType com.amazonaws.ec2#AvailabilityZone$ZoneType */ => {
let var_1861 =
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_zone_type(var_1861);
}
,
s if s.matches("parentZoneName") /* ParentZoneName com.amazonaws.ec2#AvailabilityZone$ParentZoneName */ => {
let var_1862 =
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_parent_zone_name(var_1862);
}
,
s if s.matches("parentZoneId") /* ParentZoneId com.amazonaws.ec2#AvailabilityZone$ParentZoneId */ => {
let var_1863 =
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_parent_zone_id(var_1863);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn network_border_group(self, input: impl Into<String>) -> Self
pub fn network_border_group(self, input: impl Into<String>) -> Self
The name of the network border group.
sourcepub fn set_network_border_group(self, input: Option<String>) -> Self
pub fn set_network_border_group(self, input: Option<String>) -> Self
The name of the network border group.
Examples found in repository?
43055 43056 43057 43058 43059 43060 43061 43062 43063 43064 43065 43066 43067 43068 43069 43070 43071 43072 43073 43074 43075 43076 43077 43078 43079 43080 43081 43082 43083 43084 43085 43086 43087 43088 43089 43090 43091 43092 43093 43094 43095 43096 43097 43098 43099 43100 43101 43102 43103 43104 43105 43106 43107 43108 43109 43110 43111 43112 43113 43114 43115 43116 43117 43118 43119 43120 43121 43122 43123 43124 43125 43126 43127 43128 43129 43130 43131 43132 43133 43134 43135 43136 43137 43138 43139 43140 43141 43142 43143 43144 43145 43146 43147 43148 43149 43150 43151 43152 43153 43154 43155 43156 43157 43158 43159 43160 43161 43162 43163 43164 43165 43166 43167 43168 43169 43170 43171 43172 43173 43174 43175 43176 43177 43178 43179 43180 43181 43182 43183 43184 43185 43186 43187 43188 43189 43190 43191 43192 43193 43194 43195 43196 43197 43198 43199 43200 43201 43202 43203 43204 43205 43206 43207 43208
pub fn deser_structure_crate_model_availability_zone(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AvailabilityZone, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AvailabilityZone::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("zoneState") /* State com.amazonaws.ec2#AvailabilityZone$State */ => {
let var_1853 =
Some(
Result::<crate::model::AvailabilityZoneState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1853);
}
,
s if s.matches("optInStatus") /* OptInStatus com.amazonaws.ec2#AvailabilityZone$OptInStatus */ => {
let var_1854 =
Some(
Result::<crate::model::AvailabilityZoneOptInStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneOptInStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_opt_in_status(var_1854);
}
,
s if s.matches("messageSet") /* Messages com.amazonaws.ec2#AvailabilityZone$Messages */ => {
let var_1855 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_availability_zone_message_list(&mut tag)
?
)
;
builder = builder.set_messages(var_1855);
}
,
s if s.matches("regionName") /* RegionName com.amazonaws.ec2#AvailabilityZone$RegionName */ => {
let var_1856 =
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_region_name(var_1856);
}
,
s if s.matches("zoneName") /* ZoneName com.amazonaws.ec2#AvailabilityZone$ZoneName */ => {
let var_1857 =
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_zone_name(var_1857);
}
,
s if s.matches("zoneId") /* ZoneId com.amazonaws.ec2#AvailabilityZone$ZoneId */ => {
let var_1858 =
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_zone_id(var_1858);
}
,
s if s.matches("groupName") /* GroupName com.amazonaws.ec2#AvailabilityZone$GroupName */ => {
let var_1859 =
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_group_name(var_1859);
}
,
s if s.matches("networkBorderGroup") /* NetworkBorderGroup com.amazonaws.ec2#AvailabilityZone$NetworkBorderGroup */ => {
let var_1860 =
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_network_border_group(var_1860);
}
,
s if s.matches("zoneType") /* ZoneType com.amazonaws.ec2#AvailabilityZone$ZoneType */ => {
let var_1861 =
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_zone_type(var_1861);
}
,
s if s.matches("parentZoneName") /* ParentZoneName com.amazonaws.ec2#AvailabilityZone$ParentZoneName */ => {
let var_1862 =
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_parent_zone_name(var_1862);
}
,
s if s.matches("parentZoneId") /* ParentZoneId com.amazonaws.ec2#AvailabilityZone$ParentZoneId */ => {
let var_1863 =
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_parent_zone_id(var_1863);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn zone_type(self, input: impl Into<String>) -> Self
pub fn zone_type(self, input: impl Into<String>) -> Self
The type of zone. The valid values are availability-zone
, local-zone
, and wavelength-zone
.
sourcepub fn set_zone_type(self, input: Option<String>) -> Self
pub fn set_zone_type(self, input: Option<String>) -> Self
The type of zone. The valid values are availability-zone
, local-zone
, and wavelength-zone
.
Examples found in repository?
43055 43056 43057 43058 43059 43060 43061 43062 43063 43064 43065 43066 43067 43068 43069 43070 43071 43072 43073 43074 43075 43076 43077 43078 43079 43080 43081 43082 43083 43084 43085 43086 43087 43088 43089 43090 43091 43092 43093 43094 43095 43096 43097 43098 43099 43100 43101 43102 43103 43104 43105 43106 43107 43108 43109 43110 43111 43112 43113 43114 43115 43116 43117 43118 43119 43120 43121 43122 43123 43124 43125 43126 43127 43128 43129 43130 43131 43132 43133 43134 43135 43136 43137 43138 43139 43140 43141 43142 43143 43144 43145 43146 43147 43148 43149 43150 43151 43152 43153 43154 43155 43156 43157 43158 43159 43160 43161 43162 43163 43164 43165 43166 43167 43168 43169 43170 43171 43172 43173 43174 43175 43176 43177 43178 43179 43180 43181 43182 43183 43184 43185 43186 43187 43188 43189 43190 43191 43192 43193 43194 43195 43196 43197 43198 43199 43200 43201 43202 43203 43204 43205 43206 43207 43208
pub fn deser_structure_crate_model_availability_zone(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AvailabilityZone, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AvailabilityZone::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("zoneState") /* State com.amazonaws.ec2#AvailabilityZone$State */ => {
let var_1853 =
Some(
Result::<crate::model::AvailabilityZoneState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1853);
}
,
s if s.matches("optInStatus") /* OptInStatus com.amazonaws.ec2#AvailabilityZone$OptInStatus */ => {
let var_1854 =
Some(
Result::<crate::model::AvailabilityZoneOptInStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneOptInStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_opt_in_status(var_1854);
}
,
s if s.matches("messageSet") /* Messages com.amazonaws.ec2#AvailabilityZone$Messages */ => {
let var_1855 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_availability_zone_message_list(&mut tag)
?
)
;
builder = builder.set_messages(var_1855);
}
,
s if s.matches("regionName") /* RegionName com.amazonaws.ec2#AvailabilityZone$RegionName */ => {
let var_1856 =
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_region_name(var_1856);
}
,
s if s.matches("zoneName") /* ZoneName com.amazonaws.ec2#AvailabilityZone$ZoneName */ => {
let var_1857 =
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_zone_name(var_1857);
}
,
s if s.matches("zoneId") /* ZoneId com.amazonaws.ec2#AvailabilityZone$ZoneId */ => {
let var_1858 =
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_zone_id(var_1858);
}
,
s if s.matches("groupName") /* GroupName com.amazonaws.ec2#AvailabilityZone$GroupName */ => {
let var_1859 =
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_group_name(var_1859);
}
,
s if s.matches("networkBorderGroup") /* NetworkBorderGroup com.amazonaws.ec2#AvailabilityZone$NetworkBorderGroup */ => {
let var_1860 =
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_network_border_group(var_1860);
}
,
s if s.matches("zoneType") /* ZoneType com.amazonaws.ec2#AvailabilityZone$ZoneType */ => {
let var_1861 =
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_zone_type(var_1861);
}
,
s if s.matches("parentZoneName") /* ParentZoneName com.amazonaws.ec2#AvailabilityZone$ParentZoneName */ => {
let var_1862 =
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_parent_zone_name(var_1862);
}
,
s if s.matches("parentZoneId") /* ParentZoneId com.amazonaws.ec2#AvailabilityZone$ParentZoneId */ => {
let var_1863 =
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_parent_zone_id(var_1863);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn parent_zone_name(self, input: impl Into<String>) -> Self
pub fn parent_zone_name(self, input: impl Into<String>) -> Self
The name of the zone that handles some of the Local Zone or Wavelength Zone control plane operations, such as API calls.
sourcepub fn set_parent_zone_name(self, input: Option<String>) -> Self
pub fn set_parent_zone_name(self, input: Option<String>) -> Self
The name of the zone that handles some of the Local Zone or Wavelength Zone control plane operations, such as API calls.
Examples found in repository?
43055 43056 43057 43058 43059 43060 43061 43062 43063 43064 43065 43066 43067 43068 43069 43070 43071 43072 43073 43074 43075 43076 43077 43078 43079 43080 43081 43082 43083 43084 43085 43086 43087 43088 43089 43090 43091 43092 43093 43094 43095 43096 43097 43098 43099 43100 43101 43102 43103 43104 43105 43106 43107 43108 43109 43110 43111 43112 43113 43114 43115 43116 43117 43118 43119 43120 43121 43122 43123 43124 43125 43126 43127 43128 43129 43130 43131 43132 43133 43134 43135 43136 43137 43138 43139 43140 43141 43142 43143 43144 43145 43146 43147 43148 43149 43150 43151 43152 43153 43154 43155 43156 43157 43158 43159 43160 43161 43162 43163 43164 43165 43166 43167 43168 43169 43170 43171 43172 43173 43174 43175 43176 43177 43178 43179 43180 43181 43182 43183 43184 43185 43186 43187 43188 43189 43190 43191 43192 43193 43194 43195 43196 43197 43198 43199 43200 43201 43202 43203 43204 43205 43206 43207 43208
pub fn deser_structure_crate_model_availability_zone(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AvailabilityZone, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AvailabilityZone::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("zoneState") /* State com.amazonaws.ec2#AvailabilityZone$State */ => {
let var_1853 =
Some(
Result::<crate::model::AvailabilityZoneState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1853);
}
,
s if s.matches("optInStatus") /* OptInStatus com.amazonaws.ec2#AvailabilityZone$OptInStatus */ => {
let var_1854 =
Some(
Result::<crate::model::AvailabilityZoneOptInStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneOptInStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_opt_in_status(var_1854);
}
,
s if s.matches("messageSet") /* Messages com.amazonaws.ec2#AvailabilityZone$Messages */ => {
let var_1855 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_availability_zone_message_list(&mut tag)
?
)
;
builder = builder.set_messages(var_1855);
}
,
s if s.matches("regionName") /* RegionName com.amazonaws.ec2#AvailabilityZone$RegionName */ => {
let var_1856 =
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_region_name(var_1856);
}
,
s if s.matches("zoneName") /* ZoneName com.amazonaws.ec2#AvailabilityZone$ZoneName */ => {
let var_1857 =
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_zone_name(var_1857);
}
,
s if s.matches("zoneId") /* ZoneId com.amazonaws.ec2#AvailabilityZone$ZoneId */ => {
let var_1858 =
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_zone_id(var_1858);
}
,
s if s.matches("groupName") /* GroupName com.amazonaws.ec2#AvailabilityZone$GroupName */ => {
let var_1859 =
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_group_name(var_1859);
}
,
s if s.matches("networkBorderGroup") /* NetworkBorderGroup com.amazonaws.ec2#AvailabilityZone$NetworkBorderGroup */ => {
let var_1860 =
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_network_border_group(var_1860);
}
,
s if s.matches("zoneType") /* ZoneType com.amazonaws.ec2#AvailabilityZone$ZoneType */ => {
let var_1861 =
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_zone_type(var_1861);
}
,
s if s.matches("parentZoneName") /* ParentZoneName com.amazonaws.ec2#AvailabilityZone$ParentZoneName */ => {
let var_1862 =
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_parent_zone_name(var_1862);
}
,
s if s.matches("parentZoneId") /* ParentZoneId com.amazonaws.ec2#AvailabilityZone$ParentZoneId */ => {
let var_1863 =
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_parent_zone_id(var_1863);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn parent_zone_id(self, input: impl Into<String>) -> Self
pub fn parent_zone_id(self, input: impl Into<String>) -> Self
The ID of the zone that handles some of the Local Zone or Wavelength Zone control plane operations, such as API calls.
sourcepub fn set_parent_zone_id(self, input: Option<String>) -> Self
pub fn set_parent_zone_id(self, input: Option<String>) -> Self
The ID of the zone that handles some of the Local Zone or Wavelength Zone control plane operations, such as API calls.
Examples found in repository?
43055 43056 43057 43058 43059 43060 43061 43062 43063 43064 43065 43066 43067 43068 43069 43070 43071 43072 43073 43074 43075 43076 43077 43078 43079 43080 43081 43082 43083 43084 43085 43086 43087 43088 43089 43090 43091 43092 43093 43094 43095 43096 43097 43098 43099 43100 43101 43102 43103 43104 43105 43106 43107 43108 43109 43110 43111 43112 43113 43114 43115 43116 43117 43118 43119 43120 43121 43122 43123 43124 43125 43126 43127 43128 43129 43130 43131 43132 43133 43134 43135 43136 43137 43138 43139 43140 43141 43142 43143 43144 43145 43146 43147 43148 43149 43150 43151 43152 43153 43154 43155 43156 43157 43158 43159 43160 43161 43162 43163 43164 43165 43166 43167 43168 43169 43170 43171 43172 43173 43174 43175 43176 43177 43178 43179 43180 43181 43182 43183 43184 43185 43186 43187 43188 43189 43190 43191 43192 43193 43194 43195 43196 43197 43198 43199 43200 43201 43202 43203 43204 43205 43206 43207 43208
pub fn deser_structure_crate_model_availability_zone(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AvailabilityZone, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AvailabilityZone::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("zoneState") /* State com.amazonaws.ec2#AvailabilityZone$State */ => {
let var_1853 =
Some(
Result::<crate::model::AvailabilityZoneState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1853);
}
,
s if s.matches("optInStatus") /* OptInStatus com.amazonaws.ec2#AvailabilityZone$OptInStatus */ => {
let var_1854 =
Some(
Result::<crate::model::AvailabilityZoneOptInStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneOptInStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_opt_in_status(var_1854);
}
,
s if s.matches("messageSet") /* Messages com.amazonaws.ec2#AvailabilityZone$Messages */ => {
let var_1855 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_availability_zone_message_list(&mut tag)
?
)
;
builder = builder.set_messages(var_1855);
}
,
s if s.matches("regionName") /* RegionName com.amazonaws.ec2#AvailabilityZone$RegionName */ => {
let var_1856 =
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_region_name(var_1856);
}
,
s if s.matches("zoneName") /* ZoneName com.amazonaws.ec2#AvailabilityZone$ZoneName */ => {
let var_1857 =
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_zone_name(var_1857);
}
,
s if s.matches("zoneId") /* ZoneId com.amazonaws.ec2#AvailabilityZone$ZoneId */ => {
let var_1858 =
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_zone_id(var_1858);
}
,
s if s.matches("groupName") /* GroupName com.amazonaws.ec2#AvailabilityZone$GroupName */ => {
let var_1859 =
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_group_name(var_1859);
}
,
s if s.matches("networkBorderGroup") /* NetworkBorderGroup com.amazonaws.ec2#AvailabilityZone$NetworkBorderGroup */ => {
let var_1860 =
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_network_border_group(var_1860);
}
,
s if s.matches("zoneType") /* ZoneType com.amazonaws.ec2#AvailabilityZone$ZoneType */ => {
let var_1861 =
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_zone_type(var_1861);
}
,
s if s.matches("parentZoneName") /* ParentZoneName com.amazonaws.ec2#AvailabilityZone$ParentZoneName */ => {
let var_1862 =
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_parent_zone_name(var_1862);
}
,
s if s.matches("parentZoneId") /* ParentZoneId com.amazonaws.ec2#AvailabilityZone$ParentZoneId */ => {
let var_1863 =
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_parent_zone_id(var_1863);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> AvailabilityZone
pub fn build(self) -> AvailabilityZone
Consumes the builder and constructs a AvailabilityZone
.
Examples found in repository?
43055 43056 43057 43058 43059 43060 43061 43062 43063 43064 43065 43066 43067 43068 43069 43070 43071 43072 43073 43074 43075 43076 43077 43078 43079 43080 43081 43082 43083 43084 43085 43086 43087 43088 43089 43090 43091 43092 43093 43094 43095 43096 43097 43098 43099 43100 43101 43102 43103 43104 43105 43106 43107 43108 43109 43110 43111 43112 43113 43114 43115 43116 43117 43118 43119 43120 43121 43122 43123 43124 43125 43126 43127 43128 43129 43130 43131 43132 43133 43134 43135 43136 43137 43138 43139 43140 43141 43142 43143 43144 43145 43146 43147 43148 43149 43150 43151 43152 43153 43154 43155 43156 43157 43158 43159 43160 43161 43162 43163 43164 43165 43166 43167 43168 43169 43170 43171 43172 43173 43174 43175 43176 43177 43178 43179 43180 43181 43182 43183 43184 43185 43186 43187 43188 43189 43190 43191 43192 43193 43194 43195 43196 43197 43198 43199 43200 43201 43202 43203 43204 43205 43206 43207 43208
pub fn deser_structure_crate_model_availability_zone(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AvailabilityZone, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AvailabilityZone::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("zoneState") /* State com.amazonaws.ec2#AvailabilityZone$State */ => {
let var_1853 =
Some(
Result::<crate::model::AvailabilityZoneState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1853);
}
,
s if s.matches("optInStatus") /* OptInStatus com.amazonaws.ec2#AvailabilityZone$OptInStatus */ => {
let var_1854 =
Some(
Result::<crate::model::AvailabilityZoneOptInStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AvailabilityZoneOptInStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_opt_in_status(var_1854);
}
,
s if s.matches("messageSet") /* Messages com.amazonaws.ec2#AvailabilityZone$Messages */ => {
let var_1855 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_availability_zone_message_list(&mut tag)
?
)
;
builder = builder.set_messages(var_1855);
}
,
s if s.matches("regionName") /* RegionName com.amazonaws.ec2#AvailabilityZone$RegionName */ => {
let var_1856 =
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_region_name(var_1856);
}
,
s if s.matches("zoneName") /* ZoneName com.amazonaws.ec2#AvailabilityZone$ZoneName */ => {
let var_1857 =
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_zone_name(var_1857);
}
,
s if s.matches("zoneId") /* ZoneId com.amazonaws.ec2#AvailabilityZone$ZoneId */ => {
let var_1858 =
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_zone_id(var_1858);
}
,
s if s.matches("groupName") /* GroupName com.amazonaws.ec2#AvailabilityZone$GroupName */ => {
let var_1859 =
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_group_name(var_1859);
}
,
s if s.matches("networkBorderGroup") /* NetworkBorderGroup com.amazonaws.ec2#AvailabilityZone$NetworkBorderGroup */ => {
let var_1860 =
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_network_border_group(var_1860);
}
,
s if s.matches("zoneType") /* ZoneType com.amazonaws.ec2#AvailabilityZone$ZoneType */ => {
let var_1861 =
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_zone_type(var_1861);
}
,
s if s.matches("parentZoneName") /* ParentZoneName com.amazonaws.ec2#AvailabilityZone$ParentZoneName */ => {
let var_1862 =
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_parent_zone_name(var_1862);
}
,
s if s.matches("parentZoneId") /* ParentZoneId com.amazonaws.ec2#AvailabilityZone$ParentZoneId */ => {
let var_1863 =
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_parent_zone_id(var_1863);
}
,
_ => {}
}
}
Ok(builder.build())
}