Struct aws_sdk_ec2::model::CoipPool
source · #[non_exhaustive]pub struct CoipPool { /* private fields */ }
Expand description
Describes a customer-owned address pool.
Implementations§
source§impl CoipPool
impl CoipPool
sourcepub fn pool_cidrs(&self) -> Option<&[String]>
pub fn pool_cidrs(&self) -> Option<&[String]>
The address ranges of the address pool.
sourcepub fn local_gateway_route_table_id(&self) -> Option<&str>
pub fn local_gateway_route_table_id(&self) -> Option<&str>
The ID of the local gateway route table.
The tags.
source§impl CoipPool
impl CoipPool
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CoipPool
.
Examples found in repository?
src/xml_deser.rs (line 26185)
26181 26182 26183 26184 26185 26186 26187 26188 26189 26190 26191 26192 26193 26194 26195 26196 26197 26198 26199 26200 26201 26202 26203 26204 26205 26206 26207 26208 26209 26210 26211 26212 26213 26214 26215 26216 26217 26218 26219 26220 26221 26222 26223 26224 26225 26226 26227 26228 26229 26230 26231 26232 26233 26234 26235 26236 26237 26238 26239 26240 26241 26242 26243 26244 26245 26246 26247 26248 26249 26250 26251
pub fn deser_structure_crate_model_coip_pool(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CoipPool, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CoipPool::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("poolId") /* PoolId com.amazonaws.ec2#CoipPool$PoolId */ => {
let var_1027 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_pool_id(var_1027);
}
,
s if s.matches("poolCidrSet") /* PoolCidrs com.amazonaws.ec2#CoipPool$PoolCidrs */ => {
let var_1028 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_value_string_list(&mut tag)
?
)
;
builder = builder.set_pool_cidrs(var_1028);
}
,
s if s.matches("localGatewayRouteTableId") /* LocalGatewayRouteTableId com.amazonaws.ec2#CoipPool$LocalGatewayRouteTableId */ => {
let var_1029 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_local_gateway_route_table_id(var_1029);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#CoipPool$Tags */ => {
let var_1030 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1030);
}
,
s if s.matches("poolArn") /* PoolArn com.amazonaws.ec2#CoipPool$PoolArn */ => {
let var_1031 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_pool_arn(var_1031);
}
,
_ => {}
}
}
Ok(builder.build())
}