Struct aws_sdk_ec2::model::TrafficMirrorTarget
source · #[non_exhaustive]pub struct TrafficMirrorTarget { /* private fields */ }
Expand description
Describes a Traffic Mirror target.
Implementations§
source§impl TrafficMirrorTarget
impl TrafficMirrorTarget
sourcepub fn traffic_mirror_target_id(&self) -> Option<&str>
pub fn traffic_mirror_target_id(&self) -> Option<&str>
The ID of the Traffic Mirror target.
sourcepub fn network_interface_id(&self) -> Option<&str>
pub fn network_interface_id(&self) -> Option<&str>
The network interface ID that is attached to the target.
sourcepub fn network_load_balancer_arn(&self) -> Option<&str>
pub fn network_load_balancer_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the Network Load Balancer.
sourcepub fn type(&self) -> Option<&TrafficMirrorTargetType>
pub fn type(&self) -> Option<&TrafficMirrorTargetType>
The type of Traffic Mirror target.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Information about the Traffic Mirror target.
sourcepub fn owner_id(&self) -> Option<&str>
pub fn owner_id(&self) -> Option<&str>
The ID of the account that owns the Traffic Mirror target.
The tags assigned to the Traffic Mirror target.
sourcepub fn gateway_load_balancer_endpoint_id(&self) -> Option<&str>
pub fn gateway_load_balancer_endpoint_id(&self) -> Option<&str>
The ID of the Gateway Load Balancer endpoint.
source§impl TrafficMirrorTarget
impl TrafficMirrorTarget
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TrafficMirrorTarget
.
Examples found in repository?
src/xml_deser.rs (line 30476)
30472 30473 30474 30475 30476 30477 30478 30479 30480 30481 30482 30483 30484 30485 30486 30487 30488 30489 30490 30491 30492 30493 30494 30495 30496 30497 30498 30499 30500 30501 30502 30503 30504 30505 30506 30507 30508 30509 30510 30511 30512 30513 30514 30515 30516 30517 30518 30519 30520 30521 30522 30523 30524 30525 30526 30527 30528 30529 30530 30531 30532 30533 30534 30535 30536 30537 30538 30539 30540 30541 30542 30543 30544 30545 30546 30547 30548 30549 30550 30551 30552 30553 30554 30555 30556 30557 30558 30559 30560 30561 30562 30563 30564 30565 30566 30567 30568 30569 30570 30571 30572 30573 30574 30575 30576 30577 30578 30579 30580 30581 30582 30583 30584 30585
pub fn deser_structure_crate_model_traffic_mirror_target(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TrafficMirrorTarget, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::TrafficMirrorTarget::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("trafficMirrorTargetId") /* TrafficMirrorTargetId com.amazonaws.ec2#TrafficMirrorTarget$TrafficMirrorTargetId */ => {
let var_1323 =
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_traffic_mirror_target_id(var_1323);
}
,
s if s.matches("networkInterfaceId") /* NetworkInterfaceId com.amazonaws.ec2#TrafficMirrorTarget$NetworkInterfaceId */ => {
let var_1324 =
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_network_interface_id(var_1324);
}
,
s if s.matches("networkLoadBalancerArn") /* NetworkLoadBalancerArn com.amazonaws.ec2#TrafficMirrorTarget$NetworkLoadBalancerArn */ => {
let var_1325 =
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_network_load_balancer_arn(var_1325);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#TrafficMirrorTarget$Type */ => {
let var_1326 =
Some(
Result::<crate::model::TrafficMirrorTargetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::TrafficMirrorTargetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1326);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#TrafficMirrorTarget$Description */ => {
let var_1327 =
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_1327);
}
,
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#TrafficMirrorTarget$OwnerId */ => {
let var_1328 =
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_1328);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#TrafficMirrorTarget$Tags */ => {
let var_1329 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1329);
}
,
s if s.matches("gatewayLoadBalancerEndpointId") /* GatewayLoadBalancerEndpointId com.amazonaws.ec2#TrafficMirrorTarget$GatewayLoadBalancerEndpointId */ => {
let var_1330 =
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_gateway_load_balancer_endpoint_id(var_1330);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for TrafficMirrorTarget
impl Clone for TrafficMirrorTarget
source§fn clone(&self) -> TrafficMirrorTarget
fn clone(&self) -> TrafficMirrorTarget
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