Struct UpdateTcpRoute (0.5.0)

The request builder for [NetworkServices::update_tcp_route][crate::client::NetworkServices::update_tcp_route] calls.

Example

# use google_cloud_networkservices_v1::builder;
use builder::network_services::UpdateTcpRoute;
# tokio_test::block_on(async {
use lro::Poller;

let builder = prepare_request_builder();
let response = builder.poller().until_done().await?;
# gax::Result::<()>::Ok(()) });

fn prepare_request_builder() -> UpdateTcpRoute {
  # panic!();
  // ... details omitted ...
}

Implementations

with_request

 fn with_request<V: Into<crate::model::UpdateTcpRouteRequest>>(self, v: V) -> Self

Sets the full request, replacing any prior values.

with_options

 fn with_options<V: Into<gax::options::RequestOptions>>(self, v: V) -> Self

Sets all the options, replacing any prior values.

send

async fn send(self) -> Result<longrunning::model::Operation>

Sends the request.

Long running operations

This starts, but does not poll, a longrunning operation. More information on [update_tcp_route][crate::client::NetworkServices::update_tcp_route].

poller

 fn poller(self) -> impl lro::Poller<crate::model::TcpRoute, crate::model::OperationMetadata>

Creates a [Poller][lro::Poller] to work with update_tcp_route.

set_update_mask

 fn set_update_mask<T>(self, v: T) -> Self
where
    T: std::convert::Into<wkt::FieldMask>,

Sets the value of [update_mask][crate::model::UpdateTcpRouteRequest::update_mask].

set_or_clear_update_mask

 fn set_or_clear_update_mask<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<wkt::FieldMask>,

Sets or clears the value of [update_mask][crate::model::UpdateTcpRouteRequest::update_mask].

set_tcp_route

 fn set_tcp_route<T>(self, v: T) -> Self
where
    T: std::convert::Into<crate::model::TcpRoute>,

Sets the value of [tcp_route][crate::model::UpdateTcpRouteRequest::tcp_route].

This is a required field for requests.

set_or_clear_tcp_route

 fn set_or_clear_tcp_route<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<crate::model::TcpRoute>,

Sets or clears the value of [tcp_route][crate::model::UpdateTcpRouteRequest::tcp_route].

This is a required field for requests.