Struct aws_sdk_ec2::model::VpcCidrBlockAssociation
source · #[non_exhaustive]pub struct VpcCidrBlockAssociation { /* private fields */ }
Expand description
Describes an IPv4 CIDR block associated with a VPC.
Implementations§
source§impl VpcCidrBlockAssociation
impl VpcCidrBlockAssociation
sourcepub fn association_id(&self) -> Option<&str>
pub fn association_id(&self) -> Option<&str>
The association ID for the IPv4 CIDR block.
sourcepub fn cidr_block(&self) -> Option<&str>
pub fn cidr_block(&self) -> Option<&str>
The IPv4 CIDR block.
sourcepub fn cidr_block_state(&self) -> Option<&VpcCidrBlockState>
pub fn cidr_block_state(&self) -> Option<&VpcCidrBlockState>
Information about the state of the CIDR block.
source§impl VpcCidrBlockAssociation
impl VpcCidrBlockAssociation
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture VpcCidrBlockAssociation
.
Examples found in repository?
src/xml_deser.rs (line 25218)
25214 25215 25216 25217 25218 25219 25220 25221 25222 25223 25224 25225 25226 25227 25228 25229 25230 25231 25232 25233 25234 25235 25236 25237 25238 25239 25240 25241 25242 25243 25244 25245 25246 25247 25248 25249 25250 25251 25252 25253 25254 25255 25256 25257 25258 25259 25260 25261
pub fn deser_structure_crate_model_vpc_cidr_block_association(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpcCidrBlockAssociation, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpcCidrBlockAssociation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("associationId") /* AssociationId com.amazonaws.ec2#VpcCidrBlockAssociation$AssociationId */ => {
let var_977 =
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_association_id(var_977);
}
,
s if s.matches("cidrBlock") /* CidrBlock com.amazonaws.ec2#VpcCidrBlockAssociation$CidrBlock */ => {
let var_978 =
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_cidr_block(var_978);
}
,
s if s.matches("cidrBlockState") /* CidrBlockState com.amazonaws.ec2#VpcCidrBlockAssociation$CidrBlockState */ => {
let var_979 =
Some(
crate::xml_deser::deser_structure_crate_model_vpc_cidr_block_state(&mut tag)
?
)
;
builder = builder.set_cidr_block_state(var_979);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for VpcCidrBlockAssociation
impl Clone for VpcCidrBlockAssociation
source§fn clone(&self) -> VpcCidrBlockAssociation
fn clone(&self) -> VpcCidrBlockAssociation
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