#[non_exhaustive]pub struct CreateNotificationConfigRequest {
pub parent: String,
pub config_id: String,
pub notification_config: Option<NotificationConfig>,
/* private fields */
}Expand description
Request message for creating a notification config.
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. Resource name of the new notification config’s parent. Its format
is organizations/[organization_id]/locations/[location_id],
folders/[folder_id]/locations/[location_id], or
projects/[project_id]/locations/[location_id].
config_id: StringRequired. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.
notification_config: Option<NotificationConfig>Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource.
Implementations§
Source§impl CreateNotificationConfigRequest
impl CreateNotificationConfigRequest
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_config_id<T: Into<String>>(self, v: T) -> Self
pub fn set_config_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_notification_config<T>(self, v: T) -> Selfwhere
T: Into<NotificationConfig>,
pub fn set_notification_config<T>(self, v: T) -> Selfwhere
T: Into<NotificationConfig>,
Sets the value of notification_config.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::NotificationConfig;
let x = CreateNotificationConfigRequest::new().set_notification_config(NotificationConfig::default()/* use setters */);Sourcepub fn set_or_clear_notification_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NotificationConfig>,
pub fn set_or_clear_notification_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NotificationConfig>,
Sets or clears the value of notification_config.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::NotificationConfig;
let x = CreateNotificationConfigRequest::new().set_or_clear_notification_config(Some(NotificationConfig::default()/* use setters */));
let x = CreateNotificationConfigRequest::new().set_or_clear_notification_config(None::<NotificationConfig>);Trait Implementations§
Source§impl Clone for CreateNotificationConfigRequest
impl Clone for CreateNotificationConfigRequest
Source§fn clone(&self) -> CreateNotificationConfigRequest
fn clone(&self) -> CreateNotificationConfigRequest
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 Default for CreateNotificationConfigRequest
impl Default for CreateNotificationConfigRequest
Source§fn default() -> CreateNotificationConfigRequest
fn default() -> CreateNotificationConfigRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateNotificationConfigRequest
impl PartialEq for CreateNotificationConfigRequest
Source§fn eq(&self, other: &CreateNotificationConfigRequest) -> bool
fn eq(&self, other: &CreateNotificationConfigRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateNotificationConfigRequest
Auto Trait Implementations§
impl Freeze for CreateNotificationConfigRequest
impl RefUnwindSafe for CreateNotificationConfigRequest
impl Send for CreateNotificationConfigRequest
impl Sync for CreateNotificationConfigRequest
impl Unpin for CreateNotificationConfigRequest
impl UnwindSafe for CreateNotificationConfigRequest
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