pub struct Builder { /* private fields */ }Expand description
A builder for NetworkPathComponentDetails.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn address(self, input: impl Into<String>) -> Self
pub fn address(self, input: impl Into<String>) -> Self
Appends an item to address.
To override the contents of this collection use set_address.
The IP addresses of the destination.
sourcepub fn set_address(self, input: Option<Vec<String>>) -> Self
pub fn set_address(self, input: Option<Vec<String>>) -> Self
The IP addresses of the destination.
sourcepub fn port_ranges(self, input: PortRange) -> Self
pub fn port_ranges(self, input: PortRange) -> Self
Appends an item to port_ranges.
To override the contents of this collection use set_port_ranges.
A list of port ranges for the destination.
sourcepub fn set_port_ranges(self, input: Option<Vec<PortRange>>) -> Self
pub fn set_port_ranges(self, input: Option<Vec<PortRange>>) -> Self
A list of port ranges for the destination.
sourcepub fn build(self) -> NetworkPathComponentDetails
pub fn build(self) -> NetworkPathComponentDetails
Consumes the builder and constructs a NetworkPathComponentDetails.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more