Struct aws_sdk_ec2::model::VpcCidrBlockState
source · #[non_exhaustive]pub struct VpcCidrBlockState { /* private fields */ }
Expand description
Describes the state of a CIDR block.
Implementations§
source§impl VpcCidrBlockState
impl VpcCidrBlockState
sourcepub fn state(&self) -> Option<&VpcCidrBlockStateCode>
pub fn state(&self) -> Option<&VpcCidrBlockStateCode>
The state of the CIDR block.
sourcepub fn status_message(&self) -> Option<&str>
pub fn status_message(&self) -> Option<&str>
A message about the status of the CIDR block, if applicable.
source§impl VpcCidrBlockState
impl VpcCidrBlockState
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture VpcCidrBlockState
.
Examples found in repository?
src/xml_deser.rs (line 39432)
39428 39429 39430 39431 39432 39433 39434 39435 39436 39437 39438 39439 39440 39441 39442 39443 39444 39445 39446 39447 39448 39449 39450 39451 39452 39453 39454 39455 39456 39457 39458 39459 39460 39461 39462 39463 39464 39465 39466
pub fn deser_structure_crate_model_vpc_cidr_block_state(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpcCidrBlockState, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpcCidrBlockState::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("state") /* State com.amazonaws.ec2#VpcCidrBlockState$State */ => {
let var_1670 =
Some(
Result::<crate::model::VpcCidrBlockStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VpcCidrBlockStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1670);
}
,
s if s.matches("statusMessage") /* StatusMessage com.amazonaws.ec2#VpcCidrBlockState$StatusMessage */ => {
let var_1671 =
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_status_message(var_1671);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for VpcCidrBlockState
impl Clone for VpcCidrBlockState
source§fn clone(&self) -> VpcCidrBlockState
fn clone(&self) -> VpcCidrBlockState
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