#[non_exhaustive]pub struct StopClusterRequest {
pub project_id: String,
pub region: String,
pub cluster_name: String,
pub cluster_uuid: String,
pub request_id: String,
/* private fields */
}Expand description
A request to stop a cluster.
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.project_id: StringRequired. The ID of the Google Cloud Platform project the cluster belongs to.
region: StringRequired. The Dataproc region in which to handle the request.
cluster_name: StringRequired. The cluster name.
cluster_uuid: StringOptional. Specifying the cluster_uuid means the RPC will fail
(with error NOT_FOUND) if a cluster with the specified UUID does not exist.
request_id: StringOptional. A unique ID used to identify the request. If the server receives two StopClusterRequests with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.
Recommendation: Set this value to a UUID.
The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
Implementations§
Source§impl StopClusterRequest
impl StopClusterRequest
pub fn new() -> Self
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of project_id.
Sourcepub fn set_region<T: Into<String>>(self, v: T) -> Self
pub fn set_region<T: Into<String>>(self, v: T) -> Self
Sets the value of region.
Sourcepub fn set_cluster_name<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster_name<T: Into<String>>(self, v: T) -> Self
Sets the value of cluster_name.
Sourcepub fn set_cluster_uuid<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster_uuid<T: Into<String>>(self, v: T) -> Self
Sets the value of cluster_uuid.
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.
Trait Implementations§
Source§impl Clone for StopClusterRequest
impl Clone for StopClusterRequest
Source§fn clone(&self) -> StopClusterRequest
fn clone(&self) -> StopClusterRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more