#[non_exhaustive]pub struct CreateCloudControlRequest {
pub parent: String,
pub cloud_control_id: String,
pub cloud_control: Option<CloudControl>,
/* private fields */
}Expand description
The request message for [CreateCloudControl][].
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The parent resource name, in the format
organizations/{organization}/locations/{location}.
The only supported location is global.
cloud_control_id: StringRequired. The identifier for the cloud control, which is the last segment
of the cloud control name. The format is
^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$.
cloud_control: Option<CloudControl>Required. The cloud control that’s being created.
Implementations§
Source§impl CreateCloudControlRequest
impl CreateCloudControlRequest
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_cloud_control_id<T: Into<String>>(self, v: T) -> Self
pub fn set_cloud_control_id<T: Into<String>>(self, v: T) -> Self
Sets the value of cloud_control_id.
§Example
ⓘ
let x = CreateCloudControlRequest::new().set_cloud_control_id("example");Sourcepub fn set_cloud_control<T>(self, v: T) -> Selfwhere
T: Into<CloudControl>,
pub fn set_cloud_control<T>(self, v: T) -> Selfwhere
T: Into<CloudControl>,
Sets the value of cloud_control.
§Example
ⓘ
use google_cloud_cloudsecuritycompliance_v1::model::CloudControl;
let x = CreateCloudControlRequest::new().set_cloud_control(CloudControl::default()/* use setters */);Sourcepub fn set_or_clear_cloud_control<T>(self, v: Option<T>) -> Selfwhere
T: Into<CloudControl>,
pub fn set_or_clear_cloud_control<T>(self, v: Option<T>) -> Selfwhere
T: Into<CloudControl>,
Sets or clears the value of cloud_control.
§Example
ⓘ
use google_cloud_cloudsecuritycompliance_v1::model::CloudControl;
let x = CreateCloudControlRequest::new().set_or_clear_cloud_control(Some(CloudControl::default()/* use setters */));
let x = CreateCloudControlRequest::new().set_or_clear_cloud_control(None::<CloudControl>);Trait Implementations§
Source§impl Clone for CreateCloudControlRequest
impl Clone for CreateCloudControlRequest
Source§fn clone(&self) -> CreateCloudControlRequest
fn clone(&self) -> CreateCloudControlRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateCloudControlRequest
impl Debug for CreateCloudControlRequest
Source§impl Default for CreateCloudControlRequest
impl Default for CreateCloudControlRequest
Source§fn default() -> CreateCloudControlRequest
fn default() -> CreateCloudControlRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateCloudControlRequest
impl Message for CreateCloudControlRequest
impl StructuralPartialEq for CreateCloudControlRequest
Auto Trait Implementations§
impl Freeze for CreateCloudControlRequest
impl RefUnwindSafe for CreateCloudControlRequest
impl Send for CreateCloudControlRequest
impl Sync for CreateCloudControlRequest
impl Unpin for CreateCloudControlRequest
impl UnwindSafe for CreateCloudControlRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more