#[non_exhaustive]pub struct CreateDestinationRequest {
pub parent: String,
pub destination_id: String,
pub destination: Option<Destination>,
pub request_id: String,
/* private fields */
}Expand description
Request message to create a Destination resource.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The name of the parent resource.
destination_id: StringRequired. The ID to use for the Destination resource, which becomes the
final component of the Destination resource name.
destination: Option<Destination>Required. The Destination resource to create.
request_id: StringOptional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server waits for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and
the request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, can ignore the second request. This prevents
clients from accidentally creating duplicate Destination
resources.
The request ID must be a valid UUID with the exception that zero UUID (00000000-0000-0000-0000-000000000000) isn’t supported.
Implementations§
Source§impl CreateDestinationRequest
impl CreateDestinationRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_destination_id<T: Into<String>>(self, v: T) -> Self
pub fn set_destination_id<T: Into<String>>(self, v: T) -> Self
Sets the value of destination_id.
§Example
let x = CreateDestinationRequest::new().set_destination_id("example");Sourcepub fn set_destination<T>(self, v: T) -> Selfwhere
T: Into<Destination>,
pub fn set_destination<T>(self, v: T) -> Selfwhere
T: Into<Destination>,
Sets the value of destination.
§Example
use google_cloud_networkconnectivity_v1::model::Destination;
let x = CreateDestinationRequest::new().set_destination(Destination::default()/* use setters */);Sourcepub fn set_or_clear_destination<T>(self, v: Option<T>) -> Selfwhere
T: Into<Destination>,
pub fn set_or_clear_destination<T>(self, v: Option<T>) -> Selfwhere
T: Into<Destination>,
Sets or clears the value of destination.
§Example
use google_cloud_networkconnectivity_v1::model::Destination;
let x = CreateDestinationRequest::new().set_or_clear_destination(Some(Destination::default()/* use setters */));
let x = CreateDestinationRequest::new().set_or_clear_destination(None::<Destination>);Sourcepub fn set_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(self, v: T) -> Self
Sets the value of request_id.
§Example
let x = CreateDestinationRequest::new().set_request_id("example");Trait Implementations§
Source§impl Clone for CreateDestinationRequest
impl Clone for CreateDestinationRequest
Source§fn clone(&self) -> CreateDestinationRequest
fn clone(&self) -> CreateDestinationRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more