#[non_exhaustive]pub struct NeighborConnectionDetailBuilder { /* private fields */ }
Expand description
A builder for NeighborConnectionDetail
.
Implementations§
source§impl NeighborConnectionDetailBuilder
impl NeighborConnectionDetailBuilder
sourcepub fn source_server_id(self, input: impl Into<String>) -> Self
pub fn source_server_id(self, input: impl Into<String>) -> Self
The ID of the server that opened the network connection.
This field is required.sourcepub fn set_source_server_id(self, input: Option<String>) -> Self
pub fn set_source_server_id(self, input: Option<String>) -> Self
The ID of the server that opened the network connection.
sourcepub fn get_source_server_id(&self) -> &Option<String>
pub fn get_source_server_id(&self) -> &Option<String>
The ID of the server that opened the network connection.
sourcepub fn destination_server_id(self, input: impl Into<String>) -> Self
pub fn destination_server_id(self, input: impl Into<String>) -> Self
The ID of the server that accepted the network connection.
This field is required.sourcepub fn set_destination_server_id(self, input: Option<String>) -> Self
pub fn set_destination_server_id(self, input: Option<String>) -> Self
The ID of the server that accepted the network connection.
sourcepub fn get_destination_server_id(&self) -> &Option<String>
pub fn get_destination_server_id(&self) -> &Option<String>
The ID of the server that accepted the network connection.
sourcepub fn destination_port(self, input: i32) -> Self
pub fn destination_port(self, input: i32) -> Self
The destination network port for the connection.
sourcepub fn set_destination_port(self, input: Option<i32>) -> Self
pub fn set_destination_port(self, input: Option<i32>) -> Self
The destination network port for the connection.
sourcepub fn get_destination_port(&self) -> &Option<i32>
pub fn get_destination_port(&self) -> &Option<i32>
The destination network port for the connection.
sourcepub fn transport_protocol(self, input: impl Into<String>) -> Self
pub fn transport_protocol(self, input: impl Into<String>) -> Self
The network protocol used for the connection.
sourcepub fn set_transport_protocol(self, input: Option<String>) -> Self
pub fn set_transport_protocol(self, input: Option<String>) -> Self
The network protocol used for the connection.
sourcepub fn get_transport_protocol(&self) -> &Option<String>
pub fn get_transport_protocol(&self) -> &Option<String>
The network protocol used for the connection.
sourcepub fn connections_count(self, input: i64) -> Self
pub fn connections_count(self, input: i64) -> Self
The number of open network connections with the neighboring server.
This field is required.sourcepub fn set_connections_count(self, input: Option<i64>) -> Self
pub fn set_connections_count(self, input: Option<i64>) -> Self
The number of open network connections with the neighboring server.
sourcepub fn get_connections_count(&self) -> &Option<i64>
pub fn get_connections_count(&self) -> &Option<i64>
The number of open network connections with the neighboring server.
sourcepub fn build(self) -> Result<NeighborConnectionDetail, BuildError>
pub fn build(self) -> Result<NeighborConnectionDetail, BuildError>
Consumes the builder and constructs a NeighborConnectionDetail
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for NeighborConnectionDetailBuilder
impl Clone for NeighborConnectionDetailBuilder
source§fn clone(&self) -> NeighborConnectionDetailBuilder
fn clone(&self) -> NeighborConnectionDetailBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for NeighborConnectionDetailBuilder
impl Default for NeighborConnectionDetailBuilder
source§fn default() -> NeighborConnectionDetailBuilder
fn default() -> NeighborConnectionDetailBuilder
source§impl PartialEq for NeighborConnectionDetailBuilder
impl PartialEq for NeighborConnectionDetailBuilder
source§fn eq(&self, other: &NeighborConnectionDetailBuilder) -> bool
fn eq(&self, other: &NeighborConnectionDetailBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.