Struct aws_sdk_ec2::model::SubnetCidrReservation
source · #[non_exhaustive]pub struct SubnetCidrReservation { /* private fields */ }
Expand description
Describes a subnet CIDR reservation.
Implementations§
source§impl SubnetCidrReservation
impl SubnetCidrReservation
sourcepub fn subnet_cidr_reservation_id(&self) -> Option<&str>
pub fn subnet_cidr_reservation_id(&self) -> Option<&str>
The ID of the subnet CIDR reservation.
sourcepub fn reservation_type(&self) -> Option<&SubnetCidrReservationType>
pub fn reservation_type(&self) -> Option<&SubnetCidrReservationType>
The type of reservation.
sourcepub fn owner_id(&self) -> Option<&str>
pub fn owner_id(&self) -> Option<&str>
The ID of the account that owns the subnet CIDR reservation.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description assigned to the subnet CIDR reservation.
The tags assigned to the subnet CIDR reservation.
source§impl SubnetCidrReservation
impl SubnetCidrReservation
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SubnetCidrReservation
.
Examples found in repository?
src/xml_deser.rs (line 29993)
29989 29990 29991 29992 29993 29994 29995 29996 29997 29998 29999 30000 30001 30002 30003 30004 30005 30006 30007 30008 30009 30010 30011 30012 30013 30014 30015 30016 30017 30018 30019 30020 30021 30022 30023 30024 30025 30026 30027 30028 30029 30030 30031 30032 30033 30034 30035 30036 30037 30038 30039 30040 30041 30042 30043 30044 30045 30046 30047 30048 30049 30050 30051 30052 30053 30054 30055 30056 30057 30058 30059 30060 30061 30062 30063 30064 30065 30066 30067 30068 30069 30070 30071 30072 30073 30074 30075 30076 30077 30078 30079 30080 30081 30082 30083 30084 30085 30086 30087 30088 30089
pub fn deser_structure_crate_model_subnet_cidr_reservation(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::SubnetCidrReservation, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::SubnetCidrReservation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("subnetCidrReservationId") /* SubnetCidrReservationId com.amazonaws.ec2#SubnetCidrReservation$SubnetCidrReservationId */ => {
let var_1289 =
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_subnet_cidr_reservation_id(var_1289);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#SubnetCidrReservation$SubnetId */ => {
let var_1290 =
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_subnet_id(var_1290);
}
,
s if s.matches("cidr") /* Cidr com.amazonaws.ec2#SubnetCidrReservation$Cidr */ => {
let var_1291 =
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(var_1291);
}
,
s if s.matches("reservationType") /* ReservationType com.amazonaws.ec2#SubnetCidrReservation$ReservationType */ => {
let var_1292 =
Some(
Result::<crate::model::SubnetCidrReservationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::SubnetCidrReservationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_reservation_type(var_1292);
}
,
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#SubnetCidrReservation$OwnerId */ => {
let var_1293 =
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_1293);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#SubnetCidrReservation$Description */ => {
let var_1294 =
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_1294);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#SubnetCidrReservation$Tags */ => {
let var_1295 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1295);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for SubnetCidrReservation
impl Clone for SubnetCidrReservation
source§fn clone(&self) -> SubnetCidrReservation
fn clone(&self) -> SubnetCidrReservation
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