Struct aws_sdk_ec2::model::ManagedPrefixList
source · #[non_exhaustive]pub struct ManagedPrefixList { /* private fields */ }
Expand description
Describes a managed prefix list.
Implementations§
source§impl ManagedPrefixList
impl ManagedPrefixList
sourcepub fn prefix_list_id(&self) -> Option<&str>
pub fn prefix_list_id(&self) -> Option<&str>
The ID of the prefix list.
sourcepub fn address_family(&self) -> Option<&str>
pub fn address_family(&self) -> Option<&str>
The IP address version.
sourcepub fn state(&self) -> Option<&PrefixListState>
pub fn state(&self) -> Option<&PrefixListState>
The current state of the prefix list.
sourcepub fn state_message(&self) -> Option<&str>
pub fn state_message(&self) -> Option<&str>
The state message.
sourcepub fn prefix_list_arn(&self) -> Option<&str>
pub fn prefix_list_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) for the prefix list.
sourcepub fn prefix_list_name(&self) -> Option<&str>
pub fn prefix_list_name(&self) -> Option<&str>
The name of the prefix list.
sourcepub fn max_entries(&self) -> Option<i32>
pub fn max_entries(&self) -> Option<i32>
The maximum number of entries for the prefix list.
The tags for the prefix list.
source§impl ManagedPrefixList
impl ManagedPrefixList
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ManagedPrefixList
.
Examples found in repository?
src/xml_deser.rs (line 28498)
28494 28495 28496 28497 28498 28499 28500 28501 28502 28503 28504 28505 28506 28507 28508 28509 28510 28511 28512 28513 28514 28515 28516 28517 28518 28519 28520 28521 28522 28523 28524 28525 28526 28527 28528 28529 28530 28531 28532 28533 28534 28535 28536 28537 28538 28539 28540 28541 28542 28543 28544 28545 28546 28547 28548 28549 28550 28551 28552 28553 28554 28555 28556 28557 28558 28559 28560 28561 28562 28563 28564 28565 28566 28567 28568 28569 28570 28571 28572 28573 28574 28575 28576 28577 28578 28579 28580 28581 28582 28583 28584 28585 28586 28587 28588 28589 28590 28591 28592 28593 28594 28595 28596 28597 28598 28599 28600 28601 28602 28603 28604 28605 28606 28607 28608 28609 28610 28611 28612 28613 28614 28615 28616 28617 28618 28619 28620 28621 28622 28623 28624 28625 28626 28627 28628 28629 28630 28631 28632 28633 28634 28635 28636 28637
pub fn deser_structure_crate_model_managed_prefix_list(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ManagedPrefixList, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ManagedPrefixList::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("prefixListId") /* PrefixListId com.amazonaws.ec2#ManagedPrefixList$PrefixListId */ => {
let var_1184 =
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_prefix_list_id(var_1184);
}
,
s if s.matches("addressFamily") /* AddressFamily com.amazonaws.ec2#ManagedPrefixList$AddressFamily */ => {
let var_1185 =
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_address_family(var_1185);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#ManagedPrefixList$State */ => {
let var_1186 =
Some(
Result::<crate::model::PrefixListState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PrefixListState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1186);
}
,
s if s.matches("stateMessage") /* StateMessage com.amazonaws.ec2#ManagedPrefixList$StateMessage */ => {
let var_1187 =
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_state_message(var_1187);
}
,
s if s.matches("prefixListArn") /* PrefixListArn com.amazonaws.ec2#ManagedPrefixList$PrefixListArn */ => {
let var_1188 =
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_prefix_list_arn(var_1188);
}
,
s if s.matches("prefixListName") /* PrefixListName com.amazonaws.ec2#ManagedPrefixList$PrefixListName */ => {
let var_1189 =
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_prefix_list_name(var_1189);
}
,
s if s.matches("maxEntries") /* MaxEntries com.amazonaws.ec2#ManagedPrefixList$MaxEntries */ => {
let var_1190 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.ec2#Integer`)"))
}
?
)
;
builder = builder.set_max_entries(var_1190);
}
,
s if s.matches("version") /* Version com.amazonaws.ec2#ManagedPrefixList$Version */ => {
let var_1191 =
Some(
{
<i64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `com.amazonaws.ec2#Long`)"))
}
?
)
;
builder = builder.set_version(var_1191);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#ManagedPrefixList$Tags */ => {
let var_1192 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1192);
}
,
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#ManagedPrefixList$OwnerId */ => {
let var_1193 =
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_1193);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ManagedPrefixList
impl Clone for ManagedPrefixList
source§fn clone(&self) -> ManagedPrefixList
fn clone(&self) -> ManagedPrefixList
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