#[non_exhaustive]pub struct Finding {Show 61 fields
pub name: String,
pub canonical_name: String,
pub parent: String,
pub resource_name: String,
pub state: State,
pub category: String,
pub external_uri: String,
pub source_properties: HashMap<String, Value>,
pub security_marks: Option<SecurityMarks>,
pub event_time: Option<Timestamp>,
pub create_time: Option<Timestamp>,
pub severity: Severity,
pub mute: Mute,
pub mute_info: Option<MuteInfo>,
pub finding_class: FindingClass,
pub indicator: Option<Indicator>,
pub vulnerability: Option<Vulnerability>,
pub mute_update_time: Option<Timestamp>,
pub external_systems: HashMap<String, ExternalSystem>,
pub mitre_attack: Option<MitreAttack>,
pub access: Option<Access>,
pub connections: Vec<Connection>,
pub mute_initiator: String,
pub processes: Vec<Process>,
pub contacts: HashMap<String, ContactDetails>,
pub compliances: Vec<Compliance>,
pub parent_display_name: String,
pub description: String,
pub exfiltration: Option<Exfiltration>,
pub iam_bindings: Vec<IamBinding>,
pub next_steps: String,
pub module_name: String,
pub containers: Vec<Container>,
pub kubernetes: Option<Kubernetes>,
pub database: Option<Database>,
pub attack_exposure: Option<AttackExposure>,
pub files: Vec<File>,
pub cloud_dlp_inspection: Option<CloudDlpInspection>,
pub cloud_dlp_data_profile: Option<CloudDlpDataProfile>,
pub kernel_rootkit: Option<KernelRootkit>,
pub org_policies: Vec<OrgPolicy>,
pub job: Option<Job>,
pub application: Option<Application>,
pub ip_rules: Option<IpRules>,
pub backup_disaster_recovery: Option<BackupDisasterRecovery>,
pub security_posture: Option<SecurityPosture>,
pub log_entries: Vec<LogEntry>,
pub load_balancers: Vec<LoadBalancer>,
pub cloud_armor: Option<CloudArmor>,
pub notebook: Option<Notebook>,
pub toxic_combination: Option<ToxicCombination>,
pub group_memberships: Vec<GroupMembership>,
pub disk: Option<Disk>,
pub data_access_events: Vec<DataAccessEvent>,
pub data_flow_events: Vec<DataFlowEvent>,
pub networks: Vec<Network>,
pub data_retention_deletion_events: Vec<DataRetentionDeletionEvent>,
pub affected_resources: Option<AffectedResources>,
pub ai_model: Option<AiModel>,
pub chokepoint: Option<Chokepoint>,
pub vertex_ai: Option<VertexAi>,
/* private fields */
}Expand description
Security Command Center finding.
A finding is a record of assessment data like security, risk, health, or privacy, that is ingested into Security Command Center for presentation, notification, analysis, policy testing, and enforcement. For example, a cross-site scripting (XSS) vulnerability in an App Engine application is a finding.
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.name: StringIdentifier. The relative resource name of the finding. The following list shows some examples:
organizations/{organization_id}/sources/{source_id}/findings/{finding_id}
+
organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
folders/{folder_id}/sources/{source_id}/findings/{finding_id}
folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
projects/{project_id}/sources/{source_id}/findings/{finding_id}
projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
canonical_name: StringOutput only. The canonical name of the finding. The following list shows some examples:
organizations/{organization_id}/sources/{source_id}/findings/{finding_id}
+
organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
folders/{folder_id}/sources/{source_id}/findings/{finding_id}
folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
projects/{project_id}/sources/{source_id}/findings/{finding_id}
projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
The prefix is the closest CRM ancestor of the resource associated with the finding.
parent: StringThe relative resource name of the source and location the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. The following list shows some examples:
organizations/{organization_id}/sources/{source_id}folders/{folders_id}/sources/{source_id}projects/{projects_id}/sources/{source_id}
organizations/{organization_id}/sources/{source_id}/locations/{location_id}
folders/{folders_id}/sources/{source_id}/locations/{location_id}projects/{projects_id}/sources/{source_id}/locations/{location_id}
resource_name: StringImmutable. For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string.
state: StateOutput only. The state of the finding.
category: StringImmutable. The additional taxonomy group within findings from a given source. Example: “XSS_FLASH_INJECTION”
external_uri: StringThe URI that, if available, points to a web page outside of Security Command Center where additional information about the finding can be found. This field is guaranteed to be either empty or a well formed URL.
source_properties: HashMap<String, Value>Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.
security_marks: Option<SecurityMarks>Output only. User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the finding.
event_time: Option<Timestamp>The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding is later resolved, then this time reflects when the finding was resolved. This must not be set to a value greater than the current timestamp.
create_time: Option<Timestamp>Output only. The time at which the finding was created in Security Command Center.
severity: SeverityThe severity of the finding. This field is managed by the source that writes the finding.
mute: MuteIndicates the mute state of a finding (either muted, unmuted or undefined). Unlike other attributes of a finding, a finding provider shouldn’t set the value of mute.
mute_info: Option<MuteInfo>Output only. The mute information regarding this finding.
finding_class: FindingClassThe class of the finding.
indicator: Option<Indicator>Represents what’s commonly known as an indicator of compromise (IoC) in computer forensics. This is an artifact observed on a network or in an operating system that, with high confidence, indicates a computer intrusion. For more information, see Indicator of compromise.
vulnerability: Option<Vulnerability>Represents vulnerability-specific fields like CVE and CVSS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)
mute_update_time: Option<Timestamp>Output only. The most recent time this finding was muted or unmuted.
external_systems: HashMap<String, ExternalSystem>Output only. Third party SIEM/SOAR fields within SCC, contains external system information and external system finding fields.
mitre_attack: Option<MitreAttack>MITRE ATT&CK tactics and techniques related to this finding. See: https://attack.mitre.org
access: Option<Access>Access details associated with the finding, such as more information on the caller, which method was accessed, and from where.
connections: Vec<Connection>Contains information about the IP connection associated with the finding.
mute_initiator: StringRecords additional information about the mute operation, for example, the mute configuration that muted the finding and the user who muted the finding.
processes: Vec<Process>Represents operating system processes associated with the Finding.
contacts: HashMap<String, ContactDetails>Output only. Map containing the points of contact for the given finding. The key represents the type of contact, while the value contains a list of all the contacts that pertain. Please refer to: https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
{
"security": {
"contacts": [
{
"email": "person1@company.com"
},
{
"email": "person2@company.com"
}
]
}
}compliances: Vec<Compliance>Contains compliance information for security standards associated to the finding.
parent_display_name: StringOutput only. The human readable display name of the finding source such as “Event Threat Detection” or “Security Health Analytics”.
description: StringContains more details about the finding.
exfiltration: Option<Exfiltration>Represents exfiltrations associated with the finding.
iam_bindings: Vec<IamBinding>Represents IAM bindings associated with the finding.
next_steps: StringSteps to address the finding.
module_name: StringUnique identifier of the module which generated the finding. Example: folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885
containers: Vec<Container>Containers associated with the finding. This field provides information for both Kubernetes and non-Kubernetes containers.
kubernetes: Option<Kubernetes>Kubernetes resources associated with the finding.
database: Option<Database>Database associated with the finding.
attack_exposure: Option<AttackExposure>The results of an attack path simulation relevant to this finding.
files: Vec<File>File associated with the finding.
cloud_dlp_inspection: Option<CloudDlpInspection>Cloud Data Loss Prevention (Cloud DLP) inspection results that are associated with the finding.
cloud_dlp_data_profile: Option<CloudDlpDataProfile>Cloud DLP data profile that is associated with the finding.
kernel_rootkit: Option<KernelRootkit>Signature of the kernel rootkit.
org_policies: Vec<OrgPolicy>Contains information about the org policies associated with the finding.
job: Option<Job>Job associated with the finding.
application: Option<Application>Represents an application associated with the finding.
ip_rules: Option<IpRules>IP rules associated with the finding.
backup_disaster_recovery: Option<BackupDisasterRecovery>Fields related to Backup and DR findings.
security_posture: Option<SecurityPosture>The security posture associated with the finding.
log_entries: Vec<LogEntry>Log entries that are relevant to the finding.
load_balancers: Vec<LoadBalancer>The load balancers associated with the finding.
cloud_armor: Option<CloudArmor>Fields related to Cloud Armor findings.
notebook: Option<Notebook>Notebook associated with the finding.
toxic_combination: Option<ToxicCombination>Contains details about a group of security issues that, when the issues occur together, represent a greater risk than when the issues occur independently. A group of such issues is referred to as a toxic combination. This field cannot be updated. Its value is ignored in all update requests.
group_memberships: Vec<GroupMembership>Contains details about groups of which this finding is a member. A group is a collection of findings that are related in some way. This field cannot be updated. Its value is ignored in all update requests.
disk: Option<Disk>Disk associated with the finding.
data_access_events: Vec<DataAccessEvent>Data access events associated with the finding.
data_flow_events: Vec<DataFlowEvent>Data flow events associated with the finding.
networks: Vec<Network>Represents the VPC networks that the resource is attached to.
data_retention_deletion_events: Vec<DataRetentionDeletionEvent>Data retention deletion events associated with the finding.
affected_resources: Option<AffectedResources>AffectedResources associated with the finding.
ai_model: Option<AiModel>The AI model associated with the finding.
chokepoint: Option<Chokepoint>Contains details about a chokepoint, which is a resource or resource group where high-risk attack paths converge, based on [attack path simulations] (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations). This field cannot be updated. Its value is ignored in all update requests.
vertex_ai: Option<VertexAi>VertexAi associated with the finding.
Implementations§
Source§impl Finding
impl Finding
pub fn new() -> Self
Sourcepub fn set_canonical_name<T: Into<String>>(self, v: T) -> Self
pub fn set_canonical_name<T: Into<String>>(self, v: T) -> 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_resource_name<T: Into<String>>(self, v: T) -> Self
pub fn set_resource_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_category<T: Into<String>>(self, v: T) -> Self
pub fn set_category<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_external_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_external_uri<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_source_properties<T, K, V>(self, v: T) -> Self
pub fn set_source_properties<T, K, V>(self, v: T) -> Self
Sets the value of source_properties.
§Example
use wkt::Value;
let x = Finding::new().set_source_properties([
("key0", Value::default()/* use setters */),
("key1", Value::default()/* use (different) setters */),
]);Sourcepub fn set_security_marks<T>(self, v: T) -> Selfwhere
T: Into<SecurityMarks>,
pub fn set_security_marks<T>(self, v: T) -> Selfwhere
T: Into<SecurityMarks>,
Sets the value of security_marks.
§Example
use google_cloud_securitycenter_v2::model::SecurityMarks;
let x = Finding::new().set_security_marks(SecurityMarks::default()/* use setters */);Sourcepub fn set_or_clear_security_marks<T>(self, v: Option<T>) -> Selfwhere
T: Into<SecurityMarks>,
pub fn set_or_clear_security_marks<T>(self, v: Option<T>) -> Selfwhere
T: Into<SecurityMarks>,
Sets or clears the value of security_marks.
§Example
use google_cloud_securitycenter_v2::model::SecurityMarks;
let x = Finding::new().set_or_clear_security_marks(Some(SecurityMarks::default()/* use setters */));
let x = Finding::new().set_or_clear_security_marks(None::<SecurityMarks>);Sourcepub fn set_event_time<T>(self, v: T) -> Self
pub fn set_event_time<T>(self, v: T) -> Self
Sets the value of event_time.
§Example
use wkt::Timestamp;
let x = Finding::new().set_event_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_event_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_event_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of event_time.
§Example
use wkt::Timestamp;
let x = Finding::new().set_or_clear_event_time(Some(Timestamp::default()/* use setters */));
let x = Finding::new().set_or_clear_event_time(None::<Timestamp>);Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = Finding::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = Finding::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = Finding::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_severity<T: Into<Severity>>(self, v: T) -> Self
pub fn set_severity<T: Into<Severity>>(self, v: T) -> Self
Sourcepub fn set_mute_info<T>(self, v: T) -> Self
pub fn set_mute_info<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_mute_info<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_mute_info<T>(self, v: Option<T>) -> Self
Sourcepub fn set_finding_class<T: Into<FindingClass>>(self, v: T) -> Self
pub fn set_finding_class<T: Into<FindingClass>>(self, v: T) -> Self
Sets the value of finding_class.
§Example
use google_cloud_securitycenter_v2::model::finding::FindingClass;
let x0 = Finding::new().set_finding_class(FindingClass::Threat);
let x1 = Finding::new().set_finding_class(FindingClass::Vulnerability);
let x2 = Finding::new().set_finding_class(FindingClass::Misconfiguration);Sourcepub fn set_indicator<T>(self, v: T) -> Self
pub fn set_indicator<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_indicator<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_indicator<T>(self, v: Option<T>) -> Self
Sourcepub fn set_vulnerability<T>(self, v: T) -> Selfwhere
T: Into<Vulnerability>,
pub fn set_vulnerability<T>(self, v: T) -> Selfwhere
T: Into<Vulnerability>,
Sets the value of vulnerability.
§Example
use google_cloud_securitycenter_v2::model::Vulnerability;
let x = Finding::new().set_vulnerability(Vulnerability::default()/* use setters */);Sourcepub fn set_or_clear_vulnerability<T>(self, v: Option<T>) -> Selfwhere
T: Into<Vulnerability>,
pub fn set_or_clear_vulnerability<T>(self, v: Option<T>) -> Selfwhere
T: Into<Vulnerability>,
Sets or clears the value of vulnerability.
§Example
use google_cloud_securitycenter_v2::model::Vulnerability;
let x = Finding::new().set_or_clear_vulnerability(Some(Vulnerability::default()/* use setters */));
let x = Finding::new().set_or_clear_vulnerability(None::<Vulnerability>);Sourcepub fn set_mute_update_time<T>(self, v: T) -> Self
pub fn set_mute_update_time<T>(self, v: T) -> Self
Sets the value of mute_update_time.
§Example
use wkt::Timestamp;
let x = Finding::new().set_mute_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_mute_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_mute_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of mute_update_time.
§Example
use wkt::Timestamp;
let x = Finding::new().set_or_clear_mute_update_time(Some(Timestamp::default()/* use setters */));
let x = Finding::new().set_or_clear_mute_update_time(None::<Timestamp>);Sourcepub fn set_external_systems<T, K, V>(self, v: T) -> Self
pub fn set_external_systems<T, K, V>(self, v: T) -> Self
Sets the value of external_systems.
§Example
use google_cloud_securitycenter_v2::model::ExternalSystem;
let x = Finding::new().set_external_systems([
("key0", ExternalSystem::default()/* use setters */),
("key1", ExternalSystem::default()/* use (different) setters */),
]);Sourcepub fn set_mitre_attack<T>(self, v: T) -> Selfwhere
T: Into<MitreAttack>,
pub fn set_mitre_attack<T>(self, v: T) -> Selfwhere
T: Into<MitreAttack>,
Sets the value of mitre_attack.
§Example
use google_cloud_securitycenter_v2::model::MitreAttack;
let x = Finding::new().set_mitre_attack(MitreAttack::default()/* use setters */);Sourcepub fn set_or_clear_mitre_attack<T>(self, v: Option<T>) -> Selfwhere
T: Into<MitreAttack>,
pub fn set_or_clear_mitre_attack<T>(self, v: Option<T>) -> Selfwhere
T: Into<MitreAttack>,
Sets or clears the value of mitre_attack.
§Example
use google_cloud_securitycenter_v2::model::MitreAttack;
let x = Finding::new().set_or_clear_mitre_attack(Some(MitreAttack::default()/* use setters */));
let x = Finding::new().set_or_clear_mitre_attack(None::<MitreAttack>);Sourcepub fn set_access<T>(self, v: T) -> Self
pub fn set_access<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_access<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_access<T>(self, v: Option<T>) -> Self
Sourcepub fn set_connections<T, V>(self, v: T) -> Self
pub fn set_connections<T, V>(self, v: T) -> Self
Sets the value of connections.
§Example
use google_cloud_securitycenter_v2::model::Connection;
let x = Finding::new()
.set_connections([
Connection::default()/* use setters */,
Connection::default()/* use (different) setters */,
]);Sourcepub fn set_mute_initiator<T: Into<String>>(self, v: T) -> Self
pub fn set_mute_initiator<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_processes<T, V>(self, v: T) -> Self
pub fn set_processes<T, V>(self, v: T) -> Self
Sourcepub fn set_contacts<T, K, V>(self, v: T) -> Self
pub fn set_contacts<T, K, V>(self, v: T) -> Self
Sourcepub fn set_compliances<T, V>(self, v: T) -> Self
pub fn set_compliances<T, V>(self, v: T) -> Self
Sets the value of compliances.
§Example
use google_cloud_securitycenter_v2::model::Compliance;
let x = Finding::new()
.set_compliances([
Compliance::default()/* use setters */,
Compliance::default()/* use (different) setters */,
]);Sourcepub fn set_parent_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_parent_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of parent_display_name.
§Example
let x = Finding::new().set_parent_display_name("example");Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_exfiltration<T>(self, v: T) -> Selfwhere
T: Into<Exfiltration>,
pub fn set_exfiltration<T>(self, v: T) -> Selfwhere
T: Into<Exfiltration>,
Sets the value of exfiltration.
§Example
use google_cloud_securitycenter_v2::model::Exfiltration;
let x = Finding::new().set_exfiltration(Exfiltration::default()/* use setters */);Sourcepub fn set_or_clear_exfiltration<T>(self, v: Option<T>) -> Selfwhere
T: Into<Exfiltration>,
pub fn set_or_clear_exfiltration<T>(self, v: Option<T>) -> Selfwhere
T: Into<Exfiltration>,
Sets or clears the value of exfiltration.
§Example
use google_cloud_securitycenter_v2::model::Exfiltration;
let x = Finding::new().set_or_clear_exfiltration(Some(Exfiltration::default()/* use setters */));
let x = Finding::new().set_or_clear_exfiltration(None::<Exfiltration>);Sourcepub fn set_iam_bindings<T, V>(self, v: T) -> Self
pub fn set_iam_bindings<T, V>(self, v: T) -> Self
Sets the value of iam_bindings.
§Example
use google_cloud_securitycenter_v2::model::IamBinding;
let x = Finding::new()
.set_iam_bindings([
IamBinding::default()/* use setters */,
IamBinding::default()/* use (different) setters */,
]);Sourcepub fn set_next_steps<T: Into<String>>(self, v: T) -> Self
pub fn set_next_steps<T: Into<String>>(self, v: T) -> 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
Sourcepub fn set_containers<T, V>(self, v: T) -> Self
pub fn set_containers<T, V>(self, v: T) -> Self
Sets the value of containers.
§Example
use google_cloud_securitycenter_v2::model::Container;
let x = Finding::new()
.set_containers([
Container::default()/* use setters */,
Container::default()/* use (different) setters */,
]);Sourcepub fn set_kubernetes<T>(self, v: T) -> Selfwhere
T: Into<Kubernetes>,
pub fn set_kubernetes<T>(self, v: T) -> Selfwhere
T: Into<Kubernetes>,
Sets the value of kubernetes.
§Example
use google_cloud_securitycenter_v2::model::Kubernetes;
let x = Finding::new().set_kubernetes(Kubernetes::default()/* use setters */);Sourcepub fn set_or_clear_kubernetes<T>(self, v: Option<T>) -> Selfwhere
T: Into<Kubernetes>,
pub fn set_or_clear_kubernetes<T>(self, v: Option<T>) -> Selfwhere
T: Into<Kubernetes>,
Sets or clears the value of kubernetes.
§Example
use google_cloud_securitycenter_v2::model::Kubernetes;
let x = Finding::new().set_or_clear_kubernetes(Some(Kubernetes::default()/* use setters */));
let x = Finding::new().set_or_clear_kubernetes(None::<Kubernetes>);Sourcepub fn set_database<T>(self, v: T) -> Self
pub fn set_database<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_database<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_database<T>(self, v: Option<T>) -> Self
Sourcepub fn set_attack_exposure<T>(self, v: T) -> Selfwhere
T: Into<AttackExposure>,
pub fn set_attack_exposure<T>(self, v: T) -> Selfwhere
T: Into<AttackExposure>,
Sets the value of attack_exposure.
§Example
use google_cloud_securitycenter_v2::model::AttackExposure;
let x = Finding::new().set_attack_exposure(AttackExposure::default()/* use setters */);Sourcepub fn set_or_clear_attack_exposure<T>(self, v: Option<T>) -> Selfwhere
T: Into<AttackExposure>,
pub fn set_or_clear_attack_exposure<T>(self, v: Option<T>) -> Selfwhere
T: Into<AttackExposure>,
Sets or clears the value of attack_exposure.
§Example
use google_cloud_securitycenter_v2::model::AttackExposure;
let x = Finding::new().set_or_clear_attack_exposure(Some(AttackExposure::default()/* use setters */));
let x = Finding::new().set_or_clear_attack_exposure(None::<AttackExposure>);Sourcepub fn set_cloud_dlp_inspection<T>(self, v: T) -> Selfwhere
T: Into<CloudDlpInspection>,
pub fn set_cloud_dlp_inspection<T>(self, v: T) -> Selfwhere
T: Into<CloudDlpInspection>,
Sets the value of cloud_dlp_inspection.
§Example
use google_cloud_securitycenter_v2::model::CloudDlpInspection;
let x = Finding::new().set_cloud_dlp_inspection(CloudDlpInspection::default()/* use setters */);Sourcepub fn set_or_clear_cloud_dlp_inspection<T>(self, v: Option<T>) -> Selfwhere
T: Into<CloudDlpInspection>,
pub fn set_or_clear_cloud_dlp_inspection<T>(self, v: Option<T>) -> Selfwhere
T: Into<CloudDlpInspection>,
Sets or clears the value of cloud_dlp_inspection.
§Example
use google_cloud_securitycenter_v2::model::CloudDlpInspection;
let x = Finding::new().set_or_clear_cloud_dlp_inspection(Some(CloudDlpInspection::default()/* use setters */));
let x = Finding::new().set_or_clear_cloud_dlp_inspection(None::<CloudDlpInspection>);Sourcepub fn set_cloud_dlp_data_profile<T>(self, v: T) -> Selfwhere
T: Into<CloudDlpDataProfile>,
pub fn set_cloud_dlp_data_profile<T>(self, v: T) -> Selfwhere
T: Into<CloudDlpDataProfile>,
Sets the value of cloud_dlp_data_profile.
§Example
use google_cloud_securitycenter_v2::model::CloudDlpDataProfile;
let x = Finding::new().set_cloud_dlp_data_profile(CloudDlpDataProfile::default()/* use setters */);Sourcepub fn set_or_clear_cloud_dlp_data_profile<T>(self, v: Option<T>) -> Selfwhere
T: Into<CloudDlpDataProfile>,
pub fn set_or_clear_cloud_dlp_data_profile<T>(self, v: Option<T>) -> Selfwhere
T: Into<CloudDlpDataProfile>,
Sets or clears the value of cloud_dlp_data_profile.
§Example
use google_cloud_securitycenter_v2::model::CloudDlpDataProfile;
let x = Finding::new().set_or_clear_cloud_dlp_data_profile(Some(CloudDlpDataProfile::default()/* use setters */));
let x = Finding::new().set_or_clear_cloud_dlp_data_profile(None::<CloudDlpDataProfile>);Sourcepub fn set_kernel_rootkit<T>(self, v: T) -> Selfwhere
T: Into<KernelRootkit>,
pub fn set_kernel_rootkit<T>(self, v: T) -> Selfwhere
T: Into<KernelRootkit>,
Sets the value of kernel_rootkit.
§Example
use google_cloud_securitycenter_v2::model::KernelRootkit;
let x = Finding::new().set_kernel_rootkit(KernelRootkit::default()/* use setters */);Sourcepub fn set_or_clear_kernel_rootkit<T>(self, v: Option<T>) -> Selfwhere
T: Into<KernelRootkit>,
pub fn set_or_clear_kernel_rootkit<T>(self, v: Option<T>) -> Selfwhere
T: Into<KernelRootkit>,
Sets or clears the value of kernel_rootkit.
§Example
use google_cloud_securitycenter_v2::model::KernelRootkit;
let x = Finding::new().set_or_clear_kernel_rootkit(Some(KernelRootkit::default()/* use setters */));
let x = Finding::new().set_or_clear_kernel_rootkit(None::<KernelRootkit>);Sourcepub fn set_org_policies<T, V>(self, v: T) -> Self
pub fn set_org_policies<T, V>(self, v: T) -> Self
Sets the value of org_policies.
§Example
use google_cloud_securitycenter_v2::model::OrgPolicy;
let x = Finding::new()
.set_org_policies([
OrgPolicy::default()/* use setters */,
OrgPolicy::default()/* use (different) setters */,
]);Sourcepub fn set_or_clear_job<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_job<T>(self, v: Option<T>) -> Self
Sourcepub fn set_application<T>(self, v: T) -> Selfwhere
T: Into<Application>,
pub fn set_application<T>(self, v: T) -> Selfwhere
T: Into<Application>,
Sets the value of application.
§Example
use google_cloud_securitycenter_v2::model::Application;
let x = Finding::new().set_application(Application::default()/* use setters */);Sourcepub fn set_or_clear_application<T>(self, v: Option<T>) -> Selfwhere
T: Into<Application>,
pub fn set_or_clear_application<T>(self, v: Option<T>) -> Selfwhere
T: Into<Application>,
Sets or clears the value of application.
§Example
use google_cloud_securitycenter_v2::model::Application;
let x = Finding::new().set_or_clear_application(Some(Application::default()/* use setters */));
let x = Finding::new().set_or_clear_application(None::<Application>);Sourcepub fn set_ip_rules<T>(self, v: T) -> Self
pub fn set_ip_rules<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_ip_rules<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_ip_rules<T>(self, v: Option<T>) -> Self
Sourcepub fn set_backup_disaster_recovery<T>(self, v: T) -> Selfwhere
T: Into<BackupDisasterRecovery>,
pub fn set_backup_disaster_recovery<T>(self, v: T) -> Selfwhere
T: Into<BackupDisasterRecovery>,
Sets the value of backup_disaster_recovery.
§Example
use google_cloud_securitycenter_v2::model::BackupDisasterRecovery;
let x = Finding::new().set_backup_disaster_recovery(BackupDisasterRecovery::default()/* use setters */);Sourcepub fn set_or_clear_backup_disaster_recovery<T>(self, v: Option<T>) -> Selfwhere
T: Into<BackupDisasterRecovery>,
pub fn set_or_clear_backup_disaster_recovery<T>(self, v: Option<T>) -> Selfwhere
T: Into<BackupDisasterRecovery>,
Sets or clears the value of backup_disaster_recovery.
§Example
use google_cloud_securitycenter_v2::model::BackupDisasterRecovery;
let x = Finding::new().set_or_clear_backup_disaster_recovery(Some(BackupDisasterRecovery::default()/* use setters */));
let x = Finding::new().set_or_clear_backup_disaster_recovery(None::<BackupDisasterRecovery>);Sourcepub fn set_security_posture<T>(self, v: T) -> Selfwhere
T: Into<SecurityPosture>,
pub fn set_security_posture<T>(self, v: T) -> Selfwhere
T: Into<SecurityPosture>,
Sets the value of security_posture.
§Example
use google_cloud_securitycenter_v2::model::SecurityPosture;
let x = Finding::new().set_security_posture(SecurityPosture::default()/* use setters */);Sourcepub fn set_or_clear_security_posture<T>(self, v: Option<T>) -> Selfwhere
T: Into<SecurityPosture>,
pub fn set_or_clear_security_posture<T>(self, v: Option<T>) -> Selfwhere
T: Into<SecurityPosture>,
Sets or clears the value of security_posture.
§Example
use google_cloud_securitycenter_v2::model::SecurityPosture;
let x = Finding::new().set_or_clear_security_posture(Some(SecurityPosture::default()/* use setters */));
let x = Finding::new().set_or_clear_security_posture(None::<SecurityPosture>);Sourcepub fn set_log_entries<T, V>(self, v: T) -> Self
pub fn set_log_entries<T, V>(self, v: T) -> Self
Sets the value of log_entries.
§Example
use google_cloud_securitycenter_v2::model::LogEntry;
let x = Finding::new()
.set_log_entries([
LogEntry::default()/* use setters */,
LogEntry::default()/* use (different) setters */,
]);Sourcepub fn set_load_balancers<T, V>(self, v: T) -> Self
pub fn set_load_balancers<T, V>(self, v: T) -> Self
Sets the value of load_balancers.
§Example
use google_cloud_securitycenter_v2::model::LoadBalancer;
let x = Finding::new()
.set_load_balancers([
LoadBalancer::default()/* use setters */,
LoadBalancer::default()/* use (different) setters */,
]);Sourcepub fn set_cloud_armor<T>(self, v: T) -> Selfwhere
T: Into<CloudArmor>,
pub fn set_cloud_armor<T>(self, v: T) -> Selfwhere
T: Into<CloudArmor>,
Sets the value of cloud_armor.
§Example
use google_cloud_securitycenter_v2::model::CloudArmor;
let x = Finding::new().set_cloud_armor(CloudArmor::default()/* use setters */);Sourcepub fn set_or_clear_cloud_armor<T>(self, v: Option<T>) -> Selfwhere
T: Into<CloudArmor>,
pub fn set_or_clear_cloud_armor<T>(self, v: Option<T>) -> Selfwhere
T: Into<CloudArmor>,
Sets or clears the value of cloud_armor.
§Example
use google_cloud_securitycenter_v2::model::CloudArmor;
let x = Finding::new().set_or_clear_cloud_armor(Some(CloudArmor::default()/* use setters */));
let x = Finding::new().set_or_clear_cloud_armor(None::<CloudArmor>);Sourcepub fn set_notebook<T>(self, v: T) -> Self
pub fn set_notebook<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_notebook<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_notebook<T>(self, v: Option<T>) -> Self
Sourcepub fn set_toxic_combination<T>(self, v: T) -> Selfwhere
T: Into<ToxicCombination>,
pub fn set_toxic_combination<T>(self, v: T) -> Selfwhere
T: Into<ToxicCombination>,
Sets the value of toxic_combination.
§Example
use google_cloud_securitycenter_v2::model::ToxicCombination;
let x = Finding::new().set_toxic_combination(ToxicCombination::default()/* use setters */);Sourcepub fn set_or_clear_toxic_combination<T>(self, v: Option<T>) -> Selfwhere
T: Into<ToxicCombination>,
pub fn set_or_clear_toxic_combination<T>(self, v: Option<T>) -> Selfwhere
T: Into<ToxicCombination>,
Sets or clears the value of toxic_combination.
§Example
use google_cloud_securitycenter_v2::model::ToxicCombination;
let x = Finding::new().set_or_clear_toxic_combination(Some(ToxicCombination::default()/* use setters */));
let x = Finding::new().set_or_clear_toxic_combination(None::<ToxicCombination>);Sourcepub fn set_group_memberships<T, V>(self, v: T) -> Self
pub fn set_group_memberships<T, V>(self, v: T) -> Self
Sets the value of group_memberships.
§Example
use google_cloud_securitycenter_v2::model::GroupMembership;
let x = Finding::new()
.set_group_memberships([
GroupMembership::default()/* use setters */,
GroupMembership::default()/* use (different) setters */,
]);Sourcepub fn set_or_clear_disk<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_disk<T>(self, v: Option<T>) -> Self
Sourcepub fn set_data_access_events<T, V>(self, v: T) -> Self
pub fn set_data_access_events<T, V>(self, v: T) -> Self
Sets the value of data_access_events.
§Example
use google_cloud_securitycenter_v2::model::DataAccessEvent;
let x = Finding::new()
.set_data_access_events([
DataAccessEvent::default()/* use setters */,
DataAccessEvent::default()/* use (different) setters */,
]);Sourcepub fn set_data_flow_events<T, V>(self, v: T) -> Self
pub fn set_data_flow_events<T, V>(self, v: T) -> Self
Sets the value of data_flow_events.
§Example
use google_cloud_securitycenter_v2::model::DataFlowEvent;
let x = Finding::new()
.set_data_flow_events([
DataFlowEvent::default()/* use setters */,
DataFlowEvent::default()/* use (different) setters */,
]);Sourcepub fn set_networks<T, V>(self, v: T) -> Self
pub fn set_networks<T, V>(self, v: T) -> Self
Sourcepub fn set_data_retention_deletion_events<T, V>(self, v: T) -> Self
pub fn set_data_retention_deletion_events<T, V>(self, v: T) -> Self
Sets the value of data_retention_deletion_events.
§Example
use google_cloud_securitycenter_v2::model::DataRetentionDeletionEvent;
let x = Finding::new()
.set_data_retention_deletion_events([
DataRetentionDeletionEvent::default()/* use setters */,
DataRetentionDeletionEvent::default()/* use (different) setters */,
]);Sourcepub fn set_affected_resources<T>(self, v: T) -> Selfwhere
T: Into<AffectedResources>,
pub fn set_affected_resources<T>(self, v: T) -> Selfwhere
T: Into<AffectedResources>,
Sets the value of affected_resources.
§Example
use google_cloud_securitycenter_v2::model::AffectedResources;
let x = Finding::new().set_affected_resources(AffectedResources::default()/* use setters */);Sourcepub fn set_or_clear_affected_resources<T>(self, v: Option<T>) -> Selfwhere
T: Into<AffectedResources>,
pub fn set_or_clear_affected_resources<T>(self, v: Option<T>) -> Selfwhere
T: Into<AffectedResources>,
Sets or clears the value of affected_resources.
§Example
use google_cloud_securitycenter_v2::model::AffectedResources;
let x = Finding::new().set_or_clear_affected_resources(Some(AffectedResources::default()/* use setters */));
let x = Finding::new().set_or_clear_affected_resources(None::<AffectedResources>);Sourcepub fn set_ai_model<T>(self, v: T) -> Self
pub fn set_ai_model<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_ai_model<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_ai_model<T>(self, v: Option<T>) -> Self
Sourcepub fn set_chokepoint<T>(self, v: T) -> Selfwhere
T: Into<Chokepoint>,
pub fn set_chokepoint<T>(self, v: T) -> Selfwhere
T: Into<Chokepoint>,
Sets the value of chokepoint.
§Example
use google_cloud_securitycenter_v2::model::Chokepoint;
let x = Finding::new().set_chokepoint(Chokepoint::default()/* use setters */);Sourcepub fn set_or_clear_chokepoint<T>(self, v: Option<T>) -> Selfwhere
T: Into<Chokepoint>,
pub fn set_or_clear_chokepoint<T>(self, v: Option<T>) -> Selfwhere
T: Into<Chokepoint>,
Sets or clears the value of chokepoint.
§Example
use google_cloud_securitycenter_v2::model::Chokepoint;
let x = Finding::new().set_or_clear_chokepoint(Some(Chokepoint::default()/* use setters */));
let x = Finding::new().set_or_clear_chokepoint(None::<Chokepoint>);