Struct aws_sdk_ec2::model::ipam::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Ipam
.
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 IPAM.
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 IPAM.
Examples found in repository?
27120 27121 27122 27123 27124 27125 27126 27127 27128 27129 27130 27131 27132 27133 27134 27135 27136 27137 27138 27139 27140 27141 27142 27143 27144 27145 27146 27147 27148 27149 27150 27151 27152 27153 27154 27155 27156 27157 27158 27159 27160 27161 27162 27163 27164 27165 27166 27167 27168 27169 27170 27171 27172 27173 27174 27175 27176 27177 27178 27179 27180 27181 27182 27183 27184 27185 27186 27187 27188 27189 27190 27191 27192 27193 27194 27195 27196 27197 27198 27199 27200 27201 27202 27203 27204 27205 27206 27207 27208 27209 27210 27211 27212 27213 27214 27215 27216 27217 27218 27219 27220 27221 27222 27223 27224 27225 27226 27227 27228 27229 27230 27231 27232 27233 27234 27235 27236 27237 27238 27239 27240 27241 27242 27243 27244 27245 27246 27247 27248 27249 27250 27251 27252 27253 27254 27255 27256 27257 27258 27259 27260 27261 27262 27263 27264 27265 27266 27267 27268 27269 27270 27271
pub fn deser_structure_crate_model_ipam(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Ipam, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Ipam::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#Ipam$OwnerId */ => {
let var_1089 =
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_1089);
}
,
s if s.matches("ipamId") /* IpamId com.amazonaws.ec2#Ipam$IpamId */ => {
let var_1090 =
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_id(var_1090);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#Ipam$IpamArn */ => {
let var_1091 =
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_1091);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#Ipam$IpamRegion */ => {
let var_1092 =
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_1092);
}
,
s if s.matches("publicDefaultScopeId") /* PublicDefaultScopeId com.amazonaws.ec2#Ipam$PublicDefaultScopeId */ => {
let var_1093 =
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_public_default_scope_id(var_1093);
}
,
s if s.matches("privateDefaultScopeId") /* PrivateDefaultScopeId com.amazonaws.ec2#Ipam$PrivateDefaultScopeId */ => {
let var_1094 =
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_private_default_scope_id(var_1094);
}
,
s if s.matches("scopeCount") /* ScopeCount com.amazonaws.ec2#Ipam$ScopeCount */ => {
let var_1095 =
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_scope_count(var_1095);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#Ipam$Description */ => {
let var_1096 =
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_1096);
}
,
s if s.matches("operatingRegionSet") /* OperatingRegions com.amazonaws.ec2#Ipam$OperatingRegions */ => {
let var_1097 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_ipam_operating_region_set(&mut tag)
?
)
;
builder = builder.set_operating_regions(var_1097);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#Ipam$State */ => {
let var_1098 =
Some(
Result::<crate::model::IpamState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1098);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Ipam$Tags */ => {
let var_1099 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1099);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn set_ipam_id(self, input: Option<String>) -> Self
pub fn set_ipam_id(self, input: Option<String>) -> Self
The ID of the IPAM.
Examples found in repository?
27120 27121 27122 27123 27124 27125 27126 27127 27128 27129 27130 27131 27132 27133 27134 27135 27136 27137 27138 27139 27140 27141 27142 27143 27144 27145 27146 27147 27148 27149 27150 27151 27152 27153 27154 27155 27156 27157 27158 27159 27160 27161 27162 27163 27164 27165 27166 27167 27168 27169 27170 27171 27172 27173 27174 27175 27176 27177 27178 27179 27180 27181 27182 27183 27184 27185 27186 27187 27188 27189 27190 27191 27192 27193 27194 27195 27196 27197 27198 27199 27200 27201 27202 27203 27204 27205 27206 27207 27208 27209 27210 27211 27212 27213 27214 27215 27216 27217 27218 27219 27220 27221 27222 27223 27224 27225 27226 27227 27228 27229 27230 27231 27232 27233 27234 27235 27236 27237 27238 27239 27240 27241 27242 27243 27244 27245 27246 27247 27248 27249 27250 27251 27252 27253 27254 27255 27256 27257 27258 27259 27260 27261 27262 27263 27264 27265 27266 27267 27268 27269 27270 27271
pub fn deser_structure_crate_model_ipam(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Ipam, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Ipam::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#Ipam$OwnerId */ => {
let var_1089 =
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_1089);
}
,
s if s.matches("ipamId") /* IpamId com.amazonaws.ec2#Ipam$IpamId */ => {
let var_1090 =
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_id(var_1090);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#Ipam$IpamArn */ => {
let var_1091 =
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_1091);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#Ipam$IpamRegion */ => {
let var_1092 =
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_1092);
}
,
s if s.matches("publicDefaultScopeId") /* PublicDefaultScopeId com.amazonaws.ec2#Ipam$PublicDefaultScopeId */ => {
let var_1093 =
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_public_default_scope_id(var_1093);
}
,
s if s.matches("privateDefaultScopeId") /* PrivateDefaultScopeId com.amazonaws.ec2#Ipam$PrivateDefaultScopeId */ => {
let var_1094 =
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_private_default_scope_id(var_1094);
}
,
s if s.matches("scopeCount") /* ScopeCount com.amazonaws.ec2#Ipam$ScopeCount */ => {
let var_1095 =
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_scope_count(var_1095);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#Ipam$Description */ => {
let var_1096 =
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_1096);
}
,
s if s.matches("operatingRegionSet") /* OperatingRegions com.amazonaws.ec2#Ipam$OperatingRegions */ => {
let var_1097 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_ipam_operating_region_set(&mut tag)
?
)
;
builder = builder.set_operating_regions(var_1097);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#Ipam$State */ => {
let var_1098 =
Some(
Result::<crate::model::IpamState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1098);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Ipam$Tags */ => {
let var_1099 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1099);
}
,
_ => {}
}
}
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?
27120 27121 27122 27123 27124 27125 27126 27127 27128 27129 27130 27131 27132 27133 27134 27135 27136 27137 27138 27139 27140 27141 27142 27143 27144 27145 27146 27147 27148 27149 27150 27151 27152 27153 27154 27155 27156 27157 27158 27159 27160 27161 27162 27163 27164 27165 27166 27167 27168 27169 27170 27171 27172 27173 27174 27175 27176 27177 27178 27179 27180 27181 27182 27183 27184 27185 27186 27187 27188 27189 27190 27191 27192 27193 27194 27195 27196 27197 27198 27199 27200 27201 27202 27203 27204 27205 27206 27207 27208 27209 27210 27211 27212 27213 27214 27215 27216 27217 27218 27219 27220 27221 27222 27223 27224 27225 27226 27227 27228 27229 27230 27231 27232 27233 27234 27235 27236 27237 27238 27239 27240 27241 27242 27243 27244 27245 27246 27247 27248 27249 27250 27251 27252 27253 27254 27255 27256 27257 27258 27259 27260 27261 27262 27263 27264 27265 27266 27267 27268 27269 27270 27271
pub fn deser_structure_crate_model_ipam(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Ipam, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Ipam::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#Ipam$OwnerId */ => {
let var_1089 =
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_1089);
}
,
s if s.matches("ipamId") /* IpamId com.amazonaws.ec2#Ipam$IpamId */ => {
let var_1090 =
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_id(var_1090);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#Ipam$IpamArn */ => {
let var_1091 =
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_1091);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#Ipam$IpamRegion */ => {
let var_1092 =
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_1092);
}
,
s if s.matches("publicDefaultScopeId") /* PublicDefaultScopeId com.amazonaws.ec2#Ipam$PublicDefaultScopeId */ => {
let var_1093 =
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_public_default_scope_id(var_1093);
}
,
s if s.matches("privateDefaultScopeId") /* PrivateDefaultScopeId com.amazonaws.ec2#Ipam$PrivateDefaultScopeId */ => {
let var_1094 =
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_private_default_scope_id(var_1094);
}
,
s if s.matches("scopeCount") /* ScopeCount com.amazonaws.ec2#Ipam$ScopeCount */ => {
let var_1095 =
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_scope_count(var_1095);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#Ipam$Description */ => {
let var_1096 =
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_1096);
}
,
s if s.matches("operatingRegionSet") /* OperatingRegions com.amazonaws.ec2#Ipam$OperatingRegions */ => {
let var_1097 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_ipam_operating_region_set(&mut tag)
?
)
;
builder = builder.set_operating_regions(var_1097);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#Ipam$State */ => {
let var_1098 =
Some(
Result::<crate::model::IpamState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1098);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Ipam$Tags */ => {
let var_1099 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1099);
}
,
_ => {}
}
}
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.
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.
Examples found in repository?
27120 27121 27122 27123 27124 27125 27126 27127 27128 27129 27130 27131 27132 27133 27134 27135 27136 27137 27138 27139 27140 27141 27142 27143 27144 27145 27146 27147 27148 27149 27150 27151 27152 27153 27154 27155 27156 27157 27158 27159 27160 27161 27162 27163 27164 27165 27166 27167 27168 27169 27170 27171 27172 27173 27174 27175 27176 27177 27178 27179 27180 27181 27182 27183 27184 27185 27186 27187 27188 27189 27190 27191 27192 27193 27194 27195 27196 27197 27198 27199 27200 27201 27202 27203 27204 27205 27206 27207 27208 27209 27210 27211 27212 27213 27214 27215 27216 27217 27218 27219 27220 27221 27222 27223 27224 27225 27226 27227 27228 27229 27230 27231 27232 27233 27234 27235 27236 27237 27238 27239 27240 27241 27242 27243 27244 27245 27246 27247 27248 27249 27250 27251 27252 27253 27254 27255 27256 27257 27258 27259 27260 27261 27262 27263 27264 27265 27266 27267 27268 27269 27270 27271
pub fn deser_structure_crate_model_ipam(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Ipam, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Ipam::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#Ipam$OwnerId */ => {
let var_1089 =
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_1089);
}
,
s if s.matches("ipamId") /* IpamId com.amazonaws.ec2#Ipam$IpamId */ => {
let var_1090 =
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_id(var_1090);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#Ipam$IpamArn */ => {
let var_1091 =
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_1091);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#Ipam$IpamRegion */ => {
let var_1092 =
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_1092);
}
,
s if s.matches("publicDefaultScopeId") /* PublicDefaultScopeId com.amazonaws.ec2#Ipam$PublicDefaultScopeId */ => {
let var_1093 =
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_public_default_scope_id(var_1093);
}
,
s if s.matches("privateDefaultScopeId") /* PrivateDefaultScopeId com.amazonaws.ec2#Ipam$PrivateDefaultScopeId */ => {
let var_1094 =
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_private_default_scope_id(var_1094);
}
,
s if s.matches("scopeCount") /* ScopeCount com.amazonaws.ec2#Ipam$ScopeCount */ => {
let var_1095 =
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_scope_count(var_1095);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#Ipam$Description */ => {
let var_1096 =
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_1096);
}
,
s if s.matches("operatingRegionSet") /* OperatingRegions com.amazonaws.ec2#Ipam$OperatingRegions */ => {
let var_1097 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_ipam_operating_region_set(&mut tag)
?
)
;
builder = builder.set_operating_regions(var_1097);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#Ipam$State */ => {
let var_1098 =
Some(
Result::<crate::model::IpamState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1098);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Ipam$Tags */ => {
let var_1099 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1099);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn public_default_scope_id(self, input: impl Into<String>) -> Self
pub fn public_default_scope_id(self, input: impl Into<String>) -> Self
The ID of the IPAM's default public scope.
sourcepub fn set_public_default_scope_id(self, input: Option<String>) -> Self
pub fn set_public_default_scope_id(self, input: Option<String>) -> Self
The ID of the IPAM's default public scope.
Examples found in repository?
27120 27121 27122 27123 27124 27125 27126 27127 27128 27129 27130 27131 27132 27133 27134 27135 27136 27137 27138 27139 27140 27141 27142 27143 27144 27145 27146 27147 27148 27149 27150 27151 27152 27153 27154 27155 27156 27157 27158 27159 27160 27161 27162 27163 27164 27165 27166 27167 27168 27169 27170 27171 27172 27173 27174 27175 27176 27177 27178 27179 27180 27181 27182 27183 27184 27185 27186 27187 27188 27189 27190 27191 27192 27193 27194 27195 27196 27197 27198 27199 27200 27201 27202 27203 27204 27205 27206 27207 27208 27209 27210 27211 27212 27213 27214 27215 27216 27217 27218 27219 27220 27221 27222 27223 27224 27225 27226 27227 27228 27229 27230 27231 27232 27233 27234 27235 27236 27237 27238 27239 27240 27241 27242 27243 27244 27245 27246 27247 27248 27249 27250 27251 27252 27253 27254 27255 27256 27257 27258 27259 27260 27261 27262 27263 27264 27265 27266 27267 27268 27269 27270 27271
pub fn deser_structure_crate_model_ipam(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Ipam, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Ipam::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#Ipam$OwnerId */ => {
let var_1089 =
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_1089);
}
,
s if s.matches("ipamId") /* IpamId com.amazonaws.ec2#Ipam$IpamId */ => {
let var_1090 =
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_id(var_1090);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#Ipam$IpamArn */ => {
let var_1091 =
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_1091);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#Ipam$IpamRegion */ => {
let var_1092 =
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_1092);
}
,
s if s.matches("publicDefaultScopeId") /* PublicDefaultScopeId com.amazonaws.ec2#Ipam$PublicDefaultScopeId */ => {
let var_1093 =
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_public_default_scope_id(var_1093);
}
,
s if s.matches("privateDefaultScopeId") /* PrivateDefaultScopeId com.amazonaws.ec2#Ipam$PrivateDefaultScopeId */ => {
let var_1094 =
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_private_default_scope_id(var_1094);
}
,
s if s.matches("scopeCount") /* ScopeCount com.amazonaws.ec2#Ipam$ScopeCount */ => {
let var_1095 =
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_scope_count(var_1095);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#Ipam$Description */ => {
let var_1096 =
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_1096);
}
,
s if s.matches("operatingRegionSet") /* OperatingRegions com.amazonaws.ec2#Ipam$OperatingRegions */ => {
let var_1097 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_ipam_operating_region_set(&mut tag)
?
)
;
builder = builder.set_operating_regions(var_1097);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#Ipam$State */ => {
let var_1098 =
Some(
Result::<crate::model::IpamState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1098);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Ipam$Tags */ => {
let var_1099 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1099);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn private_default_scope_id(self, input: impl Into<String>) -> Self
pub fn private_default_scope_id(self, input: impl Into<String>) -> Self
The ID of the IPAM's default private scope.
sourcepub fn set_private_default_scope_id(self, input: Option<String>) -> Self
pub fn set_private_default_scope_id(self, input: Option<String>) -> Self
The ID of the IPAM's default private scope.
Examples found in repository?
27120 27121 27122 27123 27124 27125 27126 27127 27128 27129 27130 27131 27132 27133 27134 27135 27136 27137 27138 27139 27140 27141 27142 27143 27144 27145 27146 27147 27148 27149 27150 27151 27152 27153 27154 27155 27156 27157 27158 27159 27160 27161 27162 27163 27164 27165 27166 27167 27168 27169 27170 27171 27172 27173 27174 27175 27176 27177 27178 27179 27180 27181 27182 27183 27184 27185 27186 27187 27188 27189 27190 27191 27192 27193 27194 27195 27196 27197 27198 27199 27200 27201 27202 27203 27204 27205 27206 27207 27208 27209 27210 27211 27212 27213 27214 27215 27216 27217 27218 27219 27220 27221 27222 27223 27224 27225 27226 27227 27228 27229 27230 27231 27232 27233 27234 27235 27236 27237 27238 27239 27240 27241 27242 27243 27244 27245 27246 27247 27248 27249 27250 27251 27252 27253 27254 27255 27256 27257 27258 27259 27260 27261 27262 27263 27264 27265 27266 27267 27268 27269 27270 27271
pub fn deser_structure_crate_model_ipam(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Ipam, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Ipam::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#Ipam$OwnerId */ => {
let var_1089 =
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_1089);
}
,
s if s.matches("ipamId") /* IpamId com.amazonaws.ec2#Ipam$IpamId */ => {
let var_1090 =
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_id(var_1090);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#Ipam$IpamArn */ => {
let var_1091 =
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_1091);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#Ipam$IpamRegion */ => {
let var_1092 =
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_1092);
}
,
s if s.matches("publicDefaultScopeId") /* PublicDefaultScopeId com.amazonaws.ec2#Ipam$PublicDefaultScopeId */ => {
let var_1093 =
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_public_default_scope_id(var_1093);
}
,
s if s.matches("privateDefaultScopeId") /* PrivateDefaultScopeId com.amazonaws.ec2#Ipam$PrivateDefaultScopeId */ => {
let var_1094 =
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_private_default_scope_id(var_1094);
}
,
s if s.matches("scopeCount") /* ScopeCount com.amazonaws.ec2#Ipam$ScopeCount */ => {
let var_1095 =
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_scope_count(var_1095);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#Ipam$Description */ => {
let var_1096 =
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_1096);
}
,
s if s.matches("operatingRegionSet") /* OperatingRegions com.amazonaws.ec2#Ipam$OperatingRegions */ => {
let var_1097 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_ipam_operating_region_set(&mut tag)
?
)
;
builder = builder.set_operating_regions(var_1097);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#Ipam$State */ => {
let var_1098 =
Some(
Result::<crate::model::IpamState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1098);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Ipam$Tags */ => {
let var_1099 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1099);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn scope_count(self, input: i32) -> Self
pub fn scope_count(self, input: i32) -> Self
The number of scopes in the IPAM. The scope quota is 5. For more information on quotas, see Quotas in IPAM in the Amazon VPC IPAM User Guide.
sourcepub fn set_scope_count(self, input: Option<i32>) -> Self
pub fn set_scope_count(self, input: Option<i32>) -> Self
The number of scopes in the IPAM. The scope quota is 5. For more information on quotas, see Quotas in IPAM in the Amazon VPC IPAM User Guide.
Examples found in repository?
27120 27121 27122 27123 27124 27125 27126 27127 27128 27129 27130 27131 27132 27133 27134 27135 27136 27137 27138 27139 27140 27141 27142 27143 27144 27145 27146 27147 27148 27149 27150 27151 27152 27153 27154 27155 27156 27157 27158 27159 27160 27161 27162 27163 27164 27165 27166 27167 27168 27169 27170 27171 27172 27173 27174 27175 27176 27177 27178 27179 27180 27181 27182 27183 27184 27185 27186 27187 27188 27189 27190 27191 27192 27193 27194 27195 27196 27197 27198 27199 27200 27201 27202 27203 27204 27205 27206 27207 27208 27209 27210 27211 27212 27213 27214 27215 27216 27217 27218 27219 27220 27221 27222 27223 27224 27225 27226 27227 27228 27229 27230 27231 27232 27233 27234 27235 27236 27237 27238 27239 27240 27241 27242 27243 27244 27245 27246 27247 27248 27249 27250 27251 27252 27253 27254 27255 27256 27257 27258 27259 27260 27261 27262 27263 27264 27265 27266 27267 27268 27269 27270 27271
pub fn deser_structure_crate_model_ipam(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Ipam, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Ipam::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#Ipam$OwnerId */ => {
let var_1089 =
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_1089);
}
,
s if s.matches("ipamId") /* IpamId com.amazonaws.ec2#Ipam$IpamId */ => {
let var_1090 =
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_id(var_1090);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#Ipam$IpamArn */ => {
let var_1091 =
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_1091);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#Ipam$IpamRegion */ => {
let var_1092 =
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_1092);
}
,
s if s.matches("publicDefaultScopeId") /* PublicDefaultScopeId com.amazonaws.ec2#Ipam$PublicDefaultScopeId */ => {
let var_1093 =
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_public_default_scope_id(var_1093);
}
,
s if s.matches("privateDefaultScopeId") /* PrivateDefaultScopeId com.amazonaws.ec2#Ipam$PrivateDefaultScopeId */ => {
let var_1094 =
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_private_default_scope_id(var_1094);
}
,
s if s.matches("scopeCount") /* ScopeCount com.amazonaws.ec2#Ipam$ScopeCount */ => {
let var_1095 =
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_scope_count(var_1095);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#Ipam$Description */ => {
let var_1096 =
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_1096);
}
,
s if s.matches("operatingRegionSet") /* OperatingRegions com.amazonaws.ec2#Ipam$OperatingRegions */ => {
let var_1097 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_ipam_operating_region_set(&mut tag)
?
)
;
builder = builder.set_operating_regions(var_1097);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#Ipam$State */ => {
let var_1098 =
Some(
Result::<crate::model::IpamState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1098);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Ipam$Tags */ => {
let var_1099 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1099);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description for the IPAM.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description for the IPAM.
Examples found in repository?
27120 27121 27122 27123 27124 27125 27126 27127 27128 27129 27130 27131 27132 27133 27134 27135 27136 27137 27138 27139 27140 27141 27142 27143 27144 27145 27146 27147 27148 27149 27150 27151 27152 27153 27154 27155 27156 27157 27158 27159 27160 27161 27162 27163 27164 27165 27166 27167 27168 27169 27170 27171 27172 27173 27174 27175 27176 27177 27178 27179 27180 27181 27182 27183 27184 27185 27186 27187 27188 27189 27190 27191 27192 27193 27194 27195 27196 27197 27198 27199 27200 27201 27202 27203 27204 27205 27206 27207 27208 27209 27210 27211 27212 27213 27214 27215 27216 27217 27218 27219 27220 27221 27222 27223 27224 27225 27226 27227 27228 27229 27230 27231 27232 27233 27234 27235 27236 27237 27238 27239 27240 27241 27242 27243 27244 27245 27246 27247 27248 27249 27250 27251 27252 27253 27254 27255 27256 27257 27258 27259 27260 27261 27262 27263 27264 27265 27266 27267 27268 27269 27270 27271
pub fn deser_structure_crate_model_ipam(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Ipam, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Ipam::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#Ipam$OwnerId */ => {
let var_1089 =
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_1089);
}
,
s if s.matches("ipamId") /* IpamId com.amazonaws.ec2#Ipam$IpamId */ => {
let var_1090 =
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_id(var_1090);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#Ipam$IpamArn */ => {
let var_1091 =
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_1091);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#Ipam$IpamRegion */ => {
let var_1092 =
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_1092);
}
,
s if s.matches("publicDefaultScopeId") /* PublicDefaultScopeId com.amazonaws.ec2#Ipam$PublicDefaultScopeId */ => {
let var_1093 =
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_public_default_scope_id(var_1093);
}
,
s if s.matches("privateDefaultScopeId") /* PrivateDefaultScopeId com.amazonaws.ec2#Ipam$PrivateDefaultScopeId */ => {
let var_1094 =
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_private_default_scope_id(var_1094);
}
,
s if s.matches("scopeCount") /* ScopeCount com.amazonaws.ec2#Ipam$ScopeCount */ => {
let var_1095 =
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_scope_count(var_1095);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#Ipam$Description */ => {
let var_1096 =
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_1096);
}
,
s if s.matches("operatingRegionSet") /* OperatingRegions com.amazonaws.ec2#Ipam$OperatingRegions */ => {
let var_1097 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_ipam_operating_region_set(&mut tag)
?
)
;
builder = builder.set_operating_regions(var_1097);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#Ipam$State */ => {
let var_1098 =
Some(
Result::<crate::model::IpamState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1098);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Ipam$Tags */ => {
let var_1099 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1099);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn operating_regions(self, input: IpamOperatingRegion) -> Self
pub fn operating_regions(self, input: IpamOperatingRegion) -> Self
Appends an item to operating_regions
.
To override the contents of this collection use set_operating_regions
.
The operating Regions for an IPAM. Operating Regions are Amazon Web Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only discovers and monitors resources in the Amazon Web Services Regions you select as operating Regions.
For more information about operating Regions, see Create an IPAM in the Amazon VPC IPAM User Guide.
sourcepub fn set_operating_regions(
self,
input: Option<Vec<IpamOperatingRegion>>
) -> Self
pub fn set_operating_regions(
self,
input: Option<Vec<IpamOperatingRegion>>
) -> Self
The operating Regions for an IPAM. Operating Regions are Amazon Web Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only discovers and monitors resources in the Amazon Web Services Regions you select as operating Regions.
For more information about operating Regions, see Create an IPAM in the Amazon VPC IPAM User Guide.
Examples found in repository?
27120 27121 27122 27123 27124 27125 27126 27127 27128 27129 27130 27131 27132 27133 27134 27135 27136 27137 27138 27139 27140 27141 27142 27143 27144 27145 27146 27147 27148 27149 27150 27151 27152 27153 27154 27155 27156 27157 27158 27159 27160 27161 27162 27163 27164 27165 27166 27167 27168 27169 27170 27171 27172 27173 27174 27175 27176 27177 27178 27179 27180 27181 27182 27183 27184 27185 27186 27187 27188 27189 27190 27191 27192 27193 27194 27195 27196 27197 27198 27199 27200 27201 27202 27203 27204 27205 27206 27207 27208 27209 27210 27211 27212 27213 27214 27215 27216 27217 27218 27219 27220 27221 27222 27223 27224 27225 27226 27227 27228 27229 27230 27231 27232 27233 27234 27235 27236 27237 27238 27239 27240 27241 27242 27243 27244 27245 27246 27247 27248 27249 27250 27251 27252 27253 27254 27255 27256 27257 27258 27259 27260 27261 27262 27263 27264 27265 27266 27267 27268 27269 27270 27271
pub fn deser_structure_crate_model_ipam(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Ipam, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Ipam::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#Ipam$OwnerId */ => {
let var_1089 =
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_1089);
}
,
s if s.matches("ipamId") /* IpamId com.amazonaws.ec2#Ipam$IpamId */ => {
let var_1090 =
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_id(var_1090);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#Ipam$IpamArn */ => {
let var_1091 =
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_1091);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#Ipam$IpamRegion */ => {
let var_1092 =
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_1092);
}
,
s if s.matches("publicDefaultScopeId") /* PublicDefaultScopeId com.amazonaws.ec2#Ipam$PublicDefaultScopeId */ => {
let var_1093 =
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_public_default_scope_id(var_1093);
}
,
s if s.matches("privateDefaultScopeId") /* PrivateDefaultScopeId com.amazonaws.ec2#Ipam$PrivateDefaultScopeId */ => {
let var_1094 =
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_private_default_scope_id(var_1094);
}
,
s if s.matches("scopeCount") /* ScopeCount com.amazonaws.ec2#Ipam$ScopeCount */ => {
let var_1095 =
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_scope_count(var_1095);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#Ipam$Description */ => {
let var_1096 =
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_1096);
}
,
s if s.matches("operatingRegionSet") /* OperatingRegions com.amazonaws.ec2#Ipam$OperatingRegions */ => {
let var_1097 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_ipam_operating_region_set(&mut tag)
?
)
;
builder = builder.set_operating_regions(var_1097);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#Ipam$State */ => {
let var_1098 =
Some(
Result::<crate::model::IpamState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1098);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Ipam$Tags */ => {
let var_1099 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1099);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn set_state(self, input: Option<IpamState>) -> Self
pub fn set_state(self, input: Option<IpamState>) -> Self
The state of the IPAM.
Examples found in repository?
27120 27121 27122 27123 27124 27125 27126 27127 27128 27129 27130 27131 27132 27133 27134 27135 27136 27137 27138 27139 27140 27141 27142 27143 27144 27145 27146 27147 27148 27149 27150 27151 27152 27153 27154 27155 27156 27157 27158 27159 27160 27161 27162 27163 27164 27165 27166 27167 27168 27169 27170 27171 27172 27173 27174 27175 27176 27177 27178 27179 27180 27181 27182 27183 27184 27185 27186 27187 27188 27189 27190 27191 27192 27193 27194 27195 27196 27197 27198 27199 27200 27201 27202 27203 27204 27205 27206 27207 27208 27209 27210 27211 27212 27213 27214 27215 27216 27217 27218 27219 27220 27221 27222 27223 27224 27225 27226 27227 27228 27229 27230 27231 27232 27233 27234 27235 27236 27237 27238 27239 27240 27241 27242 27243 27244 27245 27246 27247 27248 27249 27250 27251 27252 27253 27254 27255 27256 27257 27258 27259 27260 27261 27262 27263 27264 27265 27266 27267 27268 27269 27270 27271
pub fn deser_structure_crate_model_ipam(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Ipam, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Ipam::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#Ipam$OwnerId */ => {
let var_1089 =
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_1089);
}
,
s if s.matches("ipamId") /* IpamId com.amazonaws.ec2#Ipam$IpamId */ => {
let var_1090 =
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_id(var_1090);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#Ipam$IpamArn */ => {
let var_1091 =
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_1091);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#Ipam$IpamRegion */ => {
let var_1092 =
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_1092);
}
,
s if s.matches("publicDefaultScopeId") /* PublicDefaultScopeId com.amazonaws.ec2#Ipam$PublicDefaultScopeId */ => {
let var_1093 =
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_public_default_scope_id(var_1093);
}
,
s if s.matches("privateDefaultScopeId") /* PrivateDefaultScopeId com.amazonaws.ec2#Ipam$PrivateDefaultScopeId */ => {
let var_1094 =
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_private_default_scope_id(var_1094);
}
,
s if s.matches("scopeCount") /* ScopeCount com.amazonaws.ec2#Ipam$ScopeCount */ => {
let var_1095 =
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_scope_count(var_1095);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#Ipam$Description */ => {
let var_1096 =
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_1096);
}
,
s if s.matches("operatingRegionSet") /* OperatingRegions com.amazonaws.ec2#Ipam$OperatingRegions */ => {
let var_1097 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_ipam_operating_region_set(&mut tag)
?
)
;
builder = builder.set_operating_regions(var_1097);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#Ipam$State */ => {
let var_1098 =
Some(
Result::<crate::model::IpamState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1098);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Ipam$Tags */ => {
let var_1099 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1099);
}
,
_ => {}
}
}
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?
27120 27121 27122 27123 27124 27125 27126 27127 27128 27129 27130 27131 27132 27133 27134 27135 27136 27137 27138 27139 27140 27141 27142 27143 27144 27145 27146 27147 27148 27149 27150 27151 27152 27153 27154 27155 27156 27157 27158 27159 27160 27161 27162 27163 27164 27165 27166 27167 27168 27169 27170 27171 27172 27173 27174 27175 27176 27177 27178 27179 27180 27181 27182 27183 27184 27185 27186 27187 27188 27189 27190 27191 27192 27193 27194 27195 27196 27197 27198 27199 27200 27201 27202 27203 27204 27205 27206 27207 27208 27209 27210 27211 27212 27213 27214 27215 27216 27217 27218 27219 27220 27221 27222 27223 27224 27225 27226 27227 27228 27229 27230 27231 27232 27233 27234 27235 27236 27237 27238 27239 27240 27241 27242 27243 27244 27245 27246 27247 27248 27249 27250 27251 27252 27253 27254 27255 27256 27257 27258 27259 27260 27261 27262 27263 27264 27265 27266 27267 27268 27269 27270 27271
pub fn deser_structure_crate_model_ipam(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Ipam, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Ipam::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#Ipam$OwnerId */ => {
let var_1089 =
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_1089);
}
,
s if s.matches("ipamId") /* IpamId com.amazonaws.ec2#Ipam$IpamId */ => {
let var_1090 =
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_id(var_1090);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#Ipam$IpamArn */ => {
let var_1091 =
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_1091);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#Ipam$IpamRegion */ => {
let var_1092 =
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_1092);
}
,
s if s.matches("publicDefaultScopeId") /* PublicDefaultScopeId com.amazonaws.ec2#Ipam$PublicDefaultScopeId */ => {
let var_1093 =
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_public_default_scope_id(var_1093);
}
,
s if s.matches("privateDefaultScopeId") /* PrivateDefaultScopeId com.amazonaws.ec2#Ipam$PrivateDefaultScopeId */ => {
let var_1094 =
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_private_default_scope_id(var_1094);
}
,
s if s.matches("scopeCount") /* ScopeCount com.amazonaws.ec2#Ipam$ScopeCount */ => {
let var_1095 =
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_scope_count(var_1095);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#Ipam$Description */ => {
let var_1096 =
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_1096);
}
,
s if s.matches("operatingRegionSet") /* OperatingRegions com.amazonaws.ec2#Ipam$OperatingRegions */ => {
let var_1097 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_ipam_operating_region_set(&mut tag)
?
)
;
builder = builder.set_operating_regions(var_1097);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#Ipam$State */ => {
let var_1098 =
Some(
Result::<crate::model::IpamState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1098);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Ipam$Tags */ => {
let var_1099 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1099);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> Ipam
pub fn build(self) -> Ipam
Consumes the builder and constructs a Ipam
.
Examples found in repository?
27120 27121 27122 27123 27124 27125 27126 27127 27128 27129 27130 27131 27132 27133 27134 27135 27136 27137 27138 27139 27140 27141 27142 27143 27144 27145 27146 27147 27148 27149 27150 27151 27152 27153 27154 27155 27156 27157 27158 27159 27160 27161 27162 27163 27164 27165 27166 27167 27168 27169 27170 27171 27172 27173 27174 27175 27176 27177 27178 27179 27180 27181 27182 27183 27184 27185 27186 27187 27188 27189 27190 27191 27192 27193 27194 27195 27196 27197 27198 27199 27200 27201 27202 27203 27204 27205 27206 27207 27208 27209 27210 27211 27212 27213 27214 27215 27216 27217 27218 27219 27220 27221 27222 27223 27224 27225 27226 27227 27228 27229 27230 27231 27232 27233 27234 27235 27236 27237 27238 27239 27240 27241 27242 27243 27244 27245 27246 27247 27248 27249 27250 27251 27252 27253 27254 27255 27256 27257 27258 27259 27260 27261 27262 27263 27264 27265 27266 27267 27268 27269 27270 27271
pub fn deser_structure_crate_model_ipam(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Ipam, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Ipam::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#Ipam$OwnerId */ => {
let var_1089 =
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_1089);
}
,
s if s.matches("ipamId") /* IpamId com.amazonaws.ec2#Ipam$IpamId */ => {
let var_1090 =
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_id(var_1090);
}
,
s if s.matches("ipamArn") /* IpamArn com.amazonaws.ec2#Ipam$IpamArn */ => {
let var_1091 =
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_1091);
}
,
s if s.matches("ipamRegion") /* IpamRegion com.amazonaws.ec2#Ipam$IpamRegion */ => {
let var_1092 =
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_1092);
}
,
s if s.matches("publicDefaultScopeId") /* PublicDefaultScopeId com.amazonaws.ec2#Ipam$PublicDefaultScopeId */ => {
let var_1093 =
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_public_default_scope_id(var_1093);
}
,
s if s.matches("privateDefaultScopeId") /* PrivateDefaultScopeId com.amazonaws.ec2#Ipam$PrivateDefaultScopeId */ => {
let var_1094 =
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_private_default_scope_id(var_1094);
}
,
s if s.matches("scopeCount") /* ScopeCount com.amazonaws.ec2#Ipam$ScopeCount */ => {
let var_1095 =
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_scope_count(var_1095);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#Ipam$Description */ => {
let var_1096 =
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_1096);
}
,
s if s.matches("operatingRegionSet") /* OperatingRegions com.amazonaws.ec2#Ipam$OperatingRegions */ => {
let var_1097 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_ipam_operating_region_set(&mut tag)
?
)
;
builder = builder.set_operating_regions(var_1097);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#Ipam$State */ => {
let var_1098 =
Some(
Result::<crate::model::IpamState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1098);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Ipam$Tags */ => {
let var_1099 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1099);
}
,
_ => {}
}
}
Ok(builder.build())
}