Struct aws_sdk_ec2::model::traffic_mirror_session::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for TrafficMirrorSession
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn traffic_mirror_session_id(self, input: impl Into<String>) -> Self
pub fn traffic_mirror_session_id(self, input: impl Into<String>) -> Self
The ID for the Traffic Mirror session.
sourcepub fn set_traffic_mirror_session_id(self, input: Option<String>) -> Self
pub fn set_traffic_mirror_session_id(self, input: Option<String>) -> Self
The ID for the Traffic Mirror session.
sourcepub fn traffic_mirror_target_id(self, input: impl Into<String>) -> Self
pub fn traffic_mirror_target_id(self, input: impl Into<String>) -> Self
The ID of the Traffic Mirror target.
sourcepub fn set_traffic_mirror_target_id(self, input: Option<String>) -> Self
pub fn set_traffic_mirror_target_id(self, input: Option<String>) -> Self
The ID of the Traffic Mirror target.
sourcepub fn traffic_mirror_filter_id(self, input: impl Into<String>) -> Self
pub fn traffic_mirror_filter_id(self, input: impl Into<String>) -> Self
The ID of the Traffic Mirror filter.
sourcepub fn set_traffic_mirror_filter_id(self, input: Option<String>) -> Self
pub fn set_traffic_mirror_filter_id(self, input: Option<String>) -> Self
The ID of the Traffic Mirror filter.
sourcepub fn network_interface_id(self, input: impl Into<String>) -> Self
pub fn network_interface_id(self, input: impl Into<String>) -> Self
The ID of the Traffic Mirror session's network interface.
sourcepub fn set_network_interface_id(self, input: Option<String>) -> Self
pub fn set_network_interface_id(self, input: Option<String>) -> Self
The ID of the Traffic Mirror session's network interface.
sourcepub fn owner_id(self, input: impl Into<String>) -> Self
pub fn owner_id(self, input: impl Into<String>) -> Self
The ID of the account that owns the Traffic Mirror session.
sourcepub fn set_owner_id(self, input: Option<String>) -> Self
pub fn set_owner_id(self, input: Option<String>) -> Self
The ID of the account that owns the Traffic Mirror session.
sourcepub fn packet_length(self, input: i32) -> Self
pub fn packet_length(self, input: i32) -> Self
The number of bytes in each packet to mirror. These are the bytes after the VXLAN header. To mirror a subset, set this to the length (in bytes) to mirror. For example, if you set this value to 100, then the first 100 bytes that meet the filter criteria are copied to the target. Do not specify this parameter when you want to mirror the entire packet
sourcepub fn set_packet_length(self, input: Option<i32>) -> Self
pub fn set_packet_length(self, input: Option<i32>) -> Self
The number of bytes in each packet to mirror. These are the bytes after the VXLAN header. To mirror a subset, set this to the length (in bytes) to mirror. For example, if you set this value to 100, then the first 100 bytes that meet the filter criteria are copied to the target. Do not specify this parameter when you want to mirror the entire packet
sourcepub fn session_number(self, input: i32) -> Self
pub fn session_number(self, input: i32) -> Self
The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. The first session with a matching filter is the one that mirrors the packets.
Valid values are 1-32766.
sourcepub fn set_session_number(self, input: Option<i32>) -> Self
pub fn set_session_number(self, input: Option<i32>) -> Self
The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. The first session with a matching filter is the one that mirrors the packets.
Valid values are 1-32766.
sourcepub fn virtual_network_id(self, input: i32) -> Self
pub fn virtual_network_id(self, input: i32) -> Self
The virtual network ID associated with the Traffic Mirror session.
sourcepub fn set_virtual_network_id(self, input: Option<i32>) -> Self
pub fn set_virtual_network_id(self, input: Option<i32>) -> Self
The virtual network ID associated with the Traffic Mirror session.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the Traffic Mirror session.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the Traffic Mirror session.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags assigned to the Traffic Mirror session.
The tags assigned to the Traffic Mirror session.
sourcepub fn build(self) -> TrafficMirrorSession
pub fn build(self) -> TrafficMirrorSession
Consumes the builder and constructs a TrafficMirrorSession
.