#[non_exhaustive]pub struct UpdateProbeInputBuilder { /* private fields */ }
Expand description
A builder for UpdateProbeInput
.
Implementations§
source§impl UpdateProbeInputBuilder
impl UpdateProbeInputBuilder
sourcepub fn monitor_name(self, input: impl Into<String>) -> Self
pub fn monitor_name(self, input: impl Into<String>) -> Self
The name of the monitor that the probe was updated for.
This field is required.sourcepub fn set_monitor_name(self, input: Option<String>) -> Self
pub fn set_monitor_name(self, input: Option<String>) -> Self
The name of the monitor that the probe was updated for.
sourcepub fn get_monitor_name(&self) -> &Option<String>
pub fn get_monitor_name(&self) -> &Option<String>
The name of the monitor that the probe was updated for.
sourcepub fn probe_id(self, input: impl Into<String>) -> Self
pub fn probe_id(self, input: impl Into<String>) -> Self
Run GetMonitor
to get a list of probes and probe IDs.
sourcepub fn set_probe_id(self, input: Option<String>) -> Self
pub fn set_probe_id(self, input: Option<String>) -> Self
Run GetMonitor
to get a list of probes and probe IDs.
sourcepub fn get_probe_id(&self) -> &Option<String>
pub fn get_probe_id(&self) -> &Option<String>
Run GetMonitor
to get a list of probes and probe IDs.
sourcepub fn state(self, input: ProbeState) -> Self
pub fn state(self, input: ProbeState) -> Self
The state of the probe update.
sourcepub fn set_state(self, input: Option<ProbeState>) -> Self
pub fn set_state(self, input: Option<ProbeState>) -> Self
The state of the probe update.
sourcepub fn get_state(&self) -> &Option<ProbeState>
pub fn get_state(&self) -> &Option<ProbeState>
The state of the probe update.
sourcepub fn destination(self, input: impl Into<String>) -> Self
pub fn destination(self, input: impl Into<String>) -> Self
The updated IP address for the probe destination. This must be either an IPv4 or IPv6 address.
sourcepub fn set_destination(self, input: Option<String>) -> Self
pub fn set_destination(self, input: Option<String>) -> Self
The updated IP address for the probe destination. This must be either an IPv4 or IPv6 address.
sourcepub fn get_destination(&self) -> &Option<String>
pub fn get_destination(&self) -> &Option<String>
The updated IP address for the probe destination. This must be either an IPv4 or IPv6 address.
sourcepub fn destination_port(self, input: i32) -> Self
pub fn destination_port(self, input: i32) -> Self
The updated port for the probe destination. This is required only if the protocol
is TCP
and must be a number between 1
and 65536
.
sourcepub fn set_destination_port(self, input: Option<i32>) -> Self
pub fn set_destination_port(self, input: Option<i32>) -> Self
The updated port for the probe destination. This is required only if the protocol
is TCP
and must be a number between 1
and 65536
.
sourcepub fn get_destination_port(&self) -> &Option<i32>
pub fn get_destination_port(&self) -> &Option<i32>
The updated port for the probe destination. This is required only if the protocol
is TCP
and must be a number between 1
and 65536
.
sourcepub fn protocol(self, input: Protocol) -> Self
pub fn protocol(self, input: Protocol) -> Self
The updated network protocol for the destination. This can be either TCP
or ICMP
. If the protocol is TCP
, then port
is also required.
sourcepub fn set_protocol(self, input: Option<Protocol>) -> Self
pub fn set_protocol(self, input: Option<Protocol>) -> Self
The updated network protocol for the destination. This can be either TCP
or ICMP
. If the protocol is TCP
, then port
is also required.
sourcepub fn get_protocol(&self) -> &Option<Protocol>
pub fn get_protocol(&self) -> &Option<Protocol>
The updated network protocol for the destination. This can be either TCP
or ICMP
. If the protocol is TCP
, then port
is also required.
sourcepub fn packet_size(self, input: i32) -> Self
pub fn packet_size(self, input: i32) -> Self
he updated packets size for network traffic between the source and destination. This must be a number between 56
and 8500
.
sourcepub fn set_packet_size(self, input: Option<i32>) -> Self
pub fn set_packet_size(self, input: Option<i32>) -> Self
he updated packets size for network traffic between the source and destination. This must be a number between 56
and 8500
.
sourcepub fn get_packet_size(&self) -> &Option<i32>
pub fn get_packet_size(&self) -> &Option<i32>
he updated packets size for network traffic between the source and destination. This must be a number between 56
and 8500
.
sourcepub fn build(self) -> Result<UpdateProbeInput, BuildError>
pub fn build(self) -> Result<UpdateProbeInput, BuildError>
Consumes the builder and constructs a UpdateProbeInput
.
source§impl UpdateProbeInputBuilder
impl UpdateProbeInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateProbeOutput, SdkError<UpdateProbeError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateProbeOutput, SdkError<UpdateProbeError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateProbeInputBuilder
impl Clone for UpdateProbeInputBuilder
source§fn clone(&self) -> UpdateProbeInputBuilder
fn clone(&self) -> UpdateProbeInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateProbeInputBuilder
impl Debug for UpdateProbeInputBuilder
source§impl Default for UpdateProbeInputBuilder
impl Default for UpdateProbeInputBuilder
source§fn default() -> UpdateProbeInputBuilder
fn default() -> UpdateProbeInputBuilder
source§impl PartialEq for UpdateProbeInputBuilder
impl PartialEq for UpdateProbeInputBuilder
source§fn eq(&self, other: &UpdateProbeInputBuilder) -> bool
fn eq(&self, other: &UpdateProbeInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.