Struct aws_sdk_ec2::model::IpamOperatingRegion
source · #[non_exhaustive]pub struct IpamOperatingRegion { /* private fields */ }
Expand description
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.
Implementations§
source§impl IpamOperatingRegion
impl IpamOperatingRegion
sourcepub fn region_name(&self) -> Option<&str>
pub fn region_name(&self) -> Option<&str>
The name of the operating Region.
source§impl IpamOperatingRegion
impl IpamOperatingRegion
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture IpamOperatingRegion
.
Examples found in repository?
src/xml_deser.rs (line 56816)
56812 56813 56814 56815 56816 56817 56818 56819 56820 56821 56822 56823 56824 56825 56826 56827 56828 56829 56830 56831 56832 56833 56834 56835 56836
pub fn deser_structure_crate_model_ipam_operating_region(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IpamOperatingRegion, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IpamOperatingRegion::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("regionName") /* RegionName com.amazonaws.ec2#IpamOperatingRegion$RegionName */ => {
let var_2759 =
Some(
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_2759);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for IpamOperatingRegion
impl Clone for IpamOperatingRegion
source§fn clone(&self) -> IpamOperatingRegion
fn clone(&self) -> IpamOperatingRegion
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more