#[non_exhaustive]pub struct SecurityHealthAnalyticsModule {
pub module_name: String,
pub module_enablement_state: EnablementState,
/* private fields */
}Expand description
Message for Security Health Analytics built-in detector.
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.module_name: StringRequired. The name of the module eg: BIGQUERY_TABLE_CMEK_DISABLED.
module_enablement_state: EnablementStateThe state of enablement for the module at its level of the resource hierarchy.
Implementations§
Source§impl SecurityHealthAnalyticsModule
impl SecurityHealthAnalyticsModule
pub fn new() -> Self
Sourcepub fn set_module_name<T: Into<String>>(self, v: T) -> Self
pub fn set_module_name<T: Into<String>>(self, v: T) -> Self
Sets the value of module_name.
§Example
ⓘ
let x = SecurityHealthAnalyticsModule::new().set_module_name("example");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 = SecurityHealthAnalyticsModule::new().set_module_enablement_state(EnablementState::Enabled);
let x1 = SecurityHealthAnalyticsModule::new().set_module_enablement_state(EnablementState::Disabled);Trait Implementations§
Source§impl Clone for SecurityHealthAnalyticsModule
impl Clone for SecurityHealthAnalyticsModule
Source§fn clone(&self) -> SecurityHealthAnalyticsModule
fn clone(&self) -> SecurityHealthAnalyticsModule
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 SecurityHealthAnalyticsModule
impl Default for SecurityHealthAnalyticsModule
Source§fn default() -> SecurityHealthAnalyticsModule
fn default() -> SecurityHealthAnalyticsModule
Returns the “default value” for a type. Read more
Source§impl PartialEq for SecurityHealthAnalyticsModule
impl PartialEq for SecurityHealthAnalyticsModule
Source§fn eq(&self, other: &SecurityHealthAnalyticsModule) -> bool
fn eq(&self, other: &SecurityHealthAnalyticsModule) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecurityHealthAnalyticsModule
Auto Trait Implementations§
impl Freeze for SecurityHealthAnalyticsModule
impl RefUnwindSafe for SecurityHealthAnalyticsModule
impl Send for SecurityHealthAnalyticsModule
impl Sync for SecurityHealthAnalyticsModule
impl Unpin for SecurityHealthAnalyticsModule
impl UnwindSafe for SecurityHealthAnalyticsModule
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