Struct aws_sdk_ec2::model::PrefixListId
source · #[non_exhaustive]pub struct PrefixListId { /* private fields */ }
Expand description
Describes a prefix list ID.
Implementations§
source§impl PrefixListId
impl PrefixListId
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description for the security group rule that references this prefix list ID.
Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
sourcepub fn prefix_list_id(&self) -> Option<&str>
pub fn prefix_list_id(&self) -> Option<&str>
The ID of the prefix.
source§impl PrefixListId
impl PrefixListId
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PrefixListId
.
Examples found in repository?
src/xml_deser.rs (line 66952)
66948 66949 66950 66951 66952 66953 66954 66955 66956 66957 66958 66959 66960 66961 66962 66963 66964 66965 66966 66967 66968 66969 66970 66971 66972 66973 66974 66975 66976 66977 66978 66979 66980 66981 66982 66983 66984 66985
pub fn deser_structure_crate_model_prefix_list_id(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::PrefixListId, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::PrefixListId::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("description") /* Description com.amazonaws.ec2#PrefixListId$Description */ => {
let var_3290 =
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_3290);
}
,
s if s.matches("prefixListId") /* PrefixListId com.amazonaws.ec2#PrefixListId$PrefixListId */ => {
let var_3291 =
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_3291);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for PrefixListId
impl Clone for PrefixListId
source§fn clone(&self) -> PrefixListId
fn clone(&self) -> PrefixListId
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