Struct aws_sdk_ec2::model::PacketHeaderStatement
source · #[non_exhaustive]pub struct PacketHeaderStatement { /* private fields */ }
Expand description
Describes a packet header statement.
Implementations§
source§impl PacketHeaderStatement
impl PacketHeaderStatement
sourcepub fn source_addresses(&self) -> Option<&[String]>
pub fn source_addresses(&self) -> Option<&[String]>
The source addresses.
sourcepub fn destination_addresses(&self) -> Option<&[String]>
pub fn destination_addresses(&self) -> Option<&[String]>
The destination addresses.
sourcepub fn source_ports(&self) -> Option<&[String]>
pub fn source_ports(&self) -> Option<&[String]>
The source ports.
sourcepub fn destination_ports(&self) -> Option<&[String]>
pub fn destination_ports(&self) -> Option<&[String]>
The destination ports.
sourcepub fn source_prefix_lists(&self) -> Option<&[String]>
pub fn source_prefix_lists(&self) -> Option<&[String]>
The source prefix lists.
sourcepub fn destination_prefix_lists(&self) -> Option<&[String]>
pub fn destination_prefix_lists(&self) -> Option<&[String]>
The destination prefix lists.
source§impl PacketHeaderStatement
impl PacketHeaderStatement
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PacketHeaderStatement
.
Examples found in repository?
src/xml_deser.rs (line 68277)
68273 68274 68275 68276 68277 68278 68279 68280 68281 68282 68283 68284 68285 68286 68287 68288 68289 68290 68291 68292 68293 68294 68295 68296 68297 68298 68299 68300 68301 68302 68303 68304 68305 68306 68307 68308 68309 68310 68311 68312 68313 68314 68315 68316 68317 68318 68319 68320 68321 68322 68323 68324 68325 68326 68327 68328 68329 68330 68331 68332 68333 68334 68335 68336 68337 68338 68339 68340 68341 68342 68343 68344 68345 68346 68347 68348 68349 68350 68351 68352 68353 68354
pub fn deser_structure_crate_model_packet_header_statement(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::PacketHeaderStatement, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::PacketHeaderStatement::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("sourceAddressSet") /* SourceAddresses com.amazonaws.ec2#PacketHeaderStatement$SourceAddresses */ => {
let var_3371 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_value_string_list(&mut tag)
?
)
;
builder = builder.set_source_addresses(var_3371);
}
,
s if s.matches("destinationAddressSet") /* DestinationAddresses com.amazonaws.ec2#PacketHeaderStatement$DestinationAddresses */ => {
let var_3372 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_value_string_list(&mut tag)
?
)
;
builder = builder.set_destination_addresses(var_3372);
}
,
s if s.matches("sourcePortSet") /* SourcePorts com.amazonaws.ec2#PacketHeaderStatement$SourcePorts */ => {
let var_3373 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_value_string_list(&mut tag)
?
)
;
builder = builder.set_source_ports(var_3373);
}
,
s if s.matches("destinationPortSet") /* DestinationPorts com.amazonaws.ec2#PacketHeaderStatement$DestinationPorts */ => {
let var_3374 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_value_string_list(&mut tag)
?
)
;
builder = builder.set_destination_ports(var_3374);
}
,
s if s.matches("sourcePrefixListSet") /* SourcePrefixLists com.amazonaws.ec2#PacketHeaderStatement$SourcePrefixLists */ => {
let var_3375 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_value_string_list(&mut tag)
?
)
;
builder = builder.set_source_prefix_lists(var_3375);
}
,
s if s.matches("destinationPrefixListSet") /* DestinationPrefixLists com.amazonaws.ec2#PacketHeaderStatement$DestinationPrefixLists */ => {
let var_3376 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_value_string_list(&mut tag)
?
)
;
builder = builder.set_destination_prefix_lists(var_3376);
}
,
s if s.matches("protocolSet") /* Protocols com.amazonaws.ec2#PacketHeaderStatement$Protocols */ => {
let var_3377 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_protocol_list(&mut tag)
?
)
;
builder = builder.set_protocols(var_3377);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for PacketHeaderStatement
impl Clone for PacketHeaderStatement
source§fn clone(&self) -> PacketHeaderStatement
fn clone(&self) -> PacketHeaderStatement
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