#[non_exhaustive]pub struct SecurityHealthAnalyticsCustomModule {
pub id: String,
pub display_name: String,
pub config: Option<CustomConfig>,
pub module_enablement_state: EnablementState,
/* private fields */
}Expand description
Message for SHA Custom Module
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.id: StringOutput only. Immutable. The id of the custom module. The id is server-generated and is not user settable. It will be a numeric id containing 1-20 digits.
display_name: StringOptional. The display name of the Security Health Analytics custom module. This display name becomes the finding category for all findings that are returned by this custom module. The display name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.
config: Option<CustomConfig>Required. custom module details
module_enablement_state: EnablementStateThe state of enablement for the module at its level of the resource hierarchy.
Implementations§
Source§impl SecurityHealthAnalyticsCustomModule
impl SecurityHealthAnalyticsCustomModule
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
§Example
ⓘ
let x = SecurityHealthAnalyticsCustomModule::new().set_display_name("example");Sourcepub fn set_config<T>(self, v: T) -> Selfwhere
T: Into<CustomConfig>,
pub fn set_config<T>(self, v: T) -> Selfwhere
T: Into<CustomConfig>,
Sourcepub fn set_or_clear_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<CustomConfig>,
pub fn set_or_clear_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<CustomConfig>,
Sets or clears the value of config.
§Example
ⓘ
use google_cloud_securityposture_v1::model::CustomConfig;
let x = SecurityHealthAnalyticsCustomModule::new().set_or_clear_config(Some(CustomConfig::default()/* use setters */));
let x = SecurityHealthAnalyticsCustomModule::new().set_or_clear_config(None::<CustomConfig>);Sourcepub fn set_module_enablement_state<T: Into<EnablementState>>(self, v: T) -> Self
pub fn set_module_enablement_state<T: Into<EnablementState>>(self, v: T) -> Self
Sets the value of module_enablement_state.
§Example
ⓘ
use google_cloud_securityposture_v1::model::EnablementState;
let x0 = SecurityHealthAnalyticsCustomModule::new().set_module_enablement_state(EnablementState::Enabled);
let x1 = SecurityHealthAnalyticsCustomModule::new().set_module_enablement_state(EnablementState::Disabled);Trait Implementations§
Source§impl Clone for SecurityHealthAnalyticsCustomModule
impl Clone for SecurityHealthAnalyticsCustomModule
Source§fn clone(&self) -> SecurityHealthAnalyticsCustomModule
fn clone(&self) -> SecurityHealthAnalyticsCustomModule
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 SecurityHealthAnalyticsCustomModule
impl Default for SecurityHealthAnalyticsCustomModule
Source§fn default() -> SecurityHealthAnalyticsCustomModule
fn default() -> SecurityHealthAnalyticsCustomModule
Returns the “default value” for a type. Read more
Source§impl PartialEq for SecurityHealthAnalyticsCustomModule
impl PartialEq for SecurityHealthAnalyticsCustomModule
Source§fn eq(&self, other: &SecurityHealthAnalyticsCustomModule) -> bool
fn eq(&self, other: &SecurityHealthAnalyticsCustomModule) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecurityHealthAnalyticsCustomModule
Auto Trait Implementations§
impl Freeze for SecurityHealthAnalyticsCustomModule
impl RefUnwindSafe for SecurityHealthAnalyticsCustomModule
impl Send for SecurityHealthAnalyticsCustomModule
impl Sync for SecurityHealthAnalyticsCustomModule
impl Unpin for SecurityHealthAnalyticsCustomModule
impl UnwindSafe for SecurityHealthAnalyticsCustomModule
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