Struct aws_sdk_codegurusecurity::types::builders::FindingBuilder
source · #[non_exhaustive]pub struct FindingBuilder { /* private fields */ }
Expand description
A builder for Finding
.
Implementations§
source§impl FindingBuilder
impl FindingBuilder
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The time when the finding was created.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The time when the finding was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The time when the finding was created.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the finding.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the finding.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the finding.
sourcepub fn generator_id(self, input: impl Into<String>) -> Self
pub fn generator_id(self, input: impl Into<String>) -> Self
The identifier for the component that generated a finding such as AWSCodeGuruSecurity or AWSInspector.
sourcepub fn set_generator_id(self, input: Option<String>) -> Self
pub fn set_generator_id(self, input: Option<String>) -> Self
The identifier for the component that generated a finding such as AWSCodeGuruSecurity or AWSInspector.
sourcepub fn get_generator_id(&self) -> &Option<String>
pub fn get_generator_id(&self) -> &Option<String>
The identifier for the component that generated a finding such as AWSCodeGuruSecurity or AWSInspector.
sourcepub fn updated_at(self, input: DateTime) -> Self
pub fn updated_at(self, input: DateTime) -> Self
The time when the finding was last updated. Findings are updated when you remediate them or when the finding code location changes.
sourcepub fn set_updated_at(self, input: Option<DateTime>) -> Self
pub fn set_updated_at(self, input: Option<DateTime>) -> Self
The time when the finding was last updated. Findings are updated when you remediate them or when the finding code location changes.
sourcepub fn get_updated_at(&self) -> &Option<DateTime>
pub fn get_updated_at(&self) -> &Option<DateTime>
The time when the finding was last updated. Findings are updated when you remediate them or when the finding code location changes.
sourcepub fn status(self, input: Status) -> Self
pub fn status(self, input: Status) -> Self
The status of the finding. A finding status can be open or closed.
sourcepub fn set_status(self, input: Option<Status>) -> Self
pub fn set_status(self, input: Option<Status>) -> Self
The status of the finding. A finding status can be open or closed.
sourcepub fn get_status(&self) -> &Option<Status>
pub fn get_status(&self) -> &Option<Status>
The status of the finding. A finding status can be open or closed.
sourcepub fn resource(self, input: Resource) -> Self
pub fn resource(self, input: Resource) -> Self
The resource where Amazon CodeGuru Security detected a finding.
sourcepub fn set_resource(self, input: Option<Resource>) -> Self
pub fn set_resource(self, input: Option<Resource>) -> Self
The resource where Amazon CodeGuru Security detected a finding.
sourcepub fn get_resource(&self) -> &Option<Resource>
pub fn get_resource(&self) -> &Option<Resource>
The resource where Amazon CodeGuru Security detected a finding.
sourcepub fn vulnerability(self, input: Vulnerability) -> Self
pub fn vulnerability(self, input: Vulnerability) -> Self
An object that describes the detected security vulnerability.
sourcepub fn set_vulnerability(self, input: Option<Vulnerability>) -> Self
pub fn set_vulnerability(self, input: Option<Vulnerability>) -> Self
An object that describes the detected security vulnerability.
sourcepub fn get_vulnerability(&self) -> &Option<Vulnerability>
pub fn get_vulnerability(&self) -> &Option<Vulnerability>
An object that describes the detected security vulnerability.
sourcepub fn set_severity(self, input: Option<Severity>) -> Self
pub fn set_severity(self, input: Option<Severity>) -> Self
The severity of the finding.
sourcepub fn get_severity(&self) -> &Option<Severity>
pub fn get_severity(&self) -> &Option<Severity>
The severity of the finding.
sourcepub fn remediation(self, input: Remediation) -> Self
pub fn remediation(self, input: Remediation) -> Self
An object that contains the details about how to remediate a finding.
sourcepub fn set_remediation(self, input: Option<Remediation>) -> Self
pub fn set_remediation(self, input: Option<Remediation>) -> Self
An object that contains the details about how to remediate a finding.
sourcepub fn get_remediation(&self) -> &Option<Remediation>
pub fn get_remediation(&self) -> &Option<Remediation>
An object that contains the details about how to remediate a finding.
Appends an item to detector_tags
.
To override the contents of this collection use set_detector_tags
.
One or more tags or categorizations that are associated with a detector. These tags are defined by type, programming language, or other classification such as maintainability or consistency.
One or more tags or categorizations that are associated with a detector. These tags are defined by type, programming language, or other classification such as maintainability or consistency.
One or more tags or categorizations that are associated with a detector. These tags are defined by type, programming language, or other classification such as maintainability or consistency.
sourcepub fn detector_id(self, input: impl Into<String>) -> Self
pub fn detector_id(self, input: impl Into<String>) -> Self
The identifier for the detector that detected the finding in your code. A detector is a defined rule based on industry standards and AWS best practices.
sourcepub fn set_detector_id(self, input: Option<String>) -> Self
pub fn set_detector_id(self, input: Option<String>) -> Self
The identifier for the detector that detected the finding in your code. A detector is a defined rule based on industry standards and AWS best practices.
sourcepub fn get_detector_id(&self) -> &Option<String>
pub fn get_detector_id(&self) -> &Option<String>
The identifier for the detector that detected the finding in your code. A detector is a defined rule based on industry standards and AWS best practices.
sourcepub fn detector_name(self, input: impl Into<String>) -> Self
pub fn detector_name(self, input: impl Into<String>) -> Self
The name of the detector that identified the security vulnerability in your code.
sourcepub fn set_detector_name(self, input: Option<String>) -> Self
pub fn set_detector_name(self, input: Option<String>) -> Self
The name of the detector that identified the security vulnerability in your code.
sourcepub fn get_detector_name(&self) -> &Option<String>
pub fn get_detector_name(&self) -> &Option<String>
The name of the detector that identified the security vulnerability in your code.
sourcepub fn rule_id(self, input: impl Into<String>) -> Self
pub fn rule_id(self, input: impl Into<String>) -> Self
The identifier for the rule that generated the finding.
sourcepub fn set_rule_id(self, input: Option<String>) -> Self
pub fn set_rule_id(self, input: Option<String>) -> Self
The identifier for the rule that generated the finding.
sourcepub fn get_rule_id(&self) -> &Option<String>
pub fn get_rule_id(&self) -> &Option<String>
The identifier for the rule that generated the finding.
Trait Implementations§
source§impl Clone for FindingBuilder
impl Clone for FindingBuilder
source§fn clone(&self) -> FindingBuilder
fn clone(&self) -> FindingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FindingBuilder
impl Debug for FindingBuilder
source§impl Default for FindingBuilder
impl Default for FindingBuilder
source§fn default() -> FindingBuilder
fn default() -> FindingBuilder
source§impl PartialEq for FindingBuilder
impl PartialEq for FindingBuilder
source§fn eq(&self, other: &FindingBuilder) -> bool
fn eq(&self, other: &FindingBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.