Struct aws_sdk_ec2::model::ByoipCidr
source · #[non_exhaustive]pub struct ByoipCidr { /* private fields */ }
Expand description
Information about an address range that is provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP).
Implementations§
source§impl ByoipCidr
impl ByoipCidr
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the address range.
sourcepub fn status_message(&self) -> Option<&str>
pub fn status_message(&self) -> Option<&str>
Upon success, contains the ID of the address pool. Otherwise, contains an error message.
sourcepub fn state(&self) -> Option<&ByoipCidrState>
pub fn state(&self) -> Option<&ByoipCidrState>
The state of the address pool.
source§impl ByoipCidr
impl ByoipCidr
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ByoipCidr
.
Examples found in repository?
src/xml_deser.rs (line 24269)
24265 24266 24267 24268 24269 24270 24271 24272 24273 24274 24275 24276 24277 24278 24279 24280 24281 24282 24283 24284 24285 24286 24287 24288 24289 24290 24291 24292 24293 24294 24295 24296 24297 24298 24299 24300 24301 24302 24303 24304 24305 24306 24307 24308 24309 24310 24311 24312 24313 24314 24315 24316 24317 24318 24319 24320 24321 24322 24323 24324 24325 24326 24327 24328 24329
pub fn deser_structure_crate_model_byoip_cidr(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ByoipCidr, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ByoipCidr::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("cidr") /* Cidr com.amazonaws.ec2#ByoipCidr$Cidr */ => {
let var_925 =
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_925);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#ByoipCidr$Description */ => {
let var_926 =
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_926);
}
,
s if s.matches("statusMessage") /* StatusMessage com.amazonaws.ec2#ByoipCidr$StatusMessage */ => {
let var_927 =
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_927);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#ByoipCidr$State */ => {
let var_928 =
Some(
Result::<crate::model::ByoipCidrState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ByoipCidrState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_928);
}
,
_ => {}
}
}
Ok(builder.build())
}