#[non_exhaustive]
pub struct FindingBuilder { /* private fields */ }
Expand description

A builder for Finding.

Implementations§

source§

impl FindingBuilder

source

pub fn created_at(self, input: DateTime) -> Self

The time when the finding was created.

source

pub fn set_created_at(self, input: Option<DateTime>) -> Self

The time when the finding was created.

source

pub fn get_created_at(&self) -> &Option<DateTime>

The time when the finding was created.

source

pub fn description(self, input: impl Into<String>) -> Self

A description of the finding.

source

pub fn set_description(self, input: Option<String>) -> Self

A description of the finding.

source

pub fn get_description(&self) -> &Option<String>

A description of the finding.

source

pub fn generator_id(self, input: impl Into<String>) -> Self

The identifier for the component that generated a finding such as AWSCodeGuruSecurity or AWSInspector.

source

pub fn set_generator_id(self, input: Option<String>) -> Self

The identifier for the component that generated a finding such as AWSCodeGuruSecurity or AWSInspector.

source

pub fn get_generator_id(&self) -> &Option<String>

The identifier for the component that generated a finding such as AWSCodeGuruSecurity or AWSInspector.

source

pub fn id(self, input: impl Into<String>) -> Self

The identifier for a finding.

source

pub fn set_id(self, input: Option<String>) -> Self

The identifier for a finding.

source

pub fn get_id(&self) -> &Option<String>

The identifier for a finding.

source

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.

source

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.

source

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.

source

pub fn type(self, input: impl Into<String>) -> Self

The type of finding.

source

pub fn set_type(self, input: Option<String>) -> Self

The type of finding.

source

pub fn get_type(&self) -> &Option<String>

The type of finding.

source

pub fn status(self, input: Status) -> Self

The status of the finding. A finding status can be open or closed.

source

pub fn set_status(self, input: Option<Status>) -> Self

The status of the finding. A finding status can be open or closed.

source

pub fn get_status(&self) -> &Option<Status>

The status of the finding. A finding status can be open or closed.

source

pub fn resource(self, input: Resource) -> Self

The resource where Amazon CodeGuru Security detected a finding.

source

pub fn set_resource(self, input: Option<Resource>) -> Self

The resource where Amazon CodeGuru Security detected a finding.

source

pub fn get_resource(&self) -> &Option<Resource>

The resource where Amazon CodeGuru Security detected a finding.

source

pub fn vulnerability(self, input: Vulnerability) -> Self

An object that describes the detected security vulnerability.

source

pub fn set_vulnerability(self, input: Option<Vulnerability>) -> Self

An object that describes the detected security vulnerability.

source

pub fn get_vulnerability(&self) -> &Option<Vulnerability>

An object that describes the detected security vulnerability.

source

pub fn severity(self, input: Severity) -> Self

The severity of the finding.

source

pub fn set_severity(self, input: Option<Severity>) -> Self

The severity of the finding.

source

pub fn get_severity(&self) -> &Option<Severity>

The severity of the finding.

source

pub fn remediation(self, input: Remediation) -> Self

An object that contains the details about how to remediate a finding.

source

pub fn set_remediation(self, input: Option<Remediation>) -> Self

An object that contains the details about how to remediate a finding.

source

pub fn get_remediation(&self) -> &Option<Remediation>

An object that contains the details about how to remediate a finding.

source

pub fn title(self, input: impl Into<String>) -> Self

The title of the finding.

source

pub fn set_title(self, input: Option<String>) -> Self

The title of the finding.

source

pub fn get_title(&self) -> &Option<String>

The title of the finding.

source

pub fn detector_tags(self, input: impl Into<String>) -> Self

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.

source

pub fn set_detector_tags(self, input: Option<Vec<String>>) -> Self

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.

source

pub fn get_detector_tags(&self) -> &Option<Vec<String>>

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.

source

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.

source

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.

source

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.

source

pub fn detector_name(self, input: impl Into<String>) -> Self

The name of the detector that identified the security vulnerability in your code.

source

pub fn set_detector_name(self, input: Option<String>) -> Self

The name of the detector that identified the security vulnerability in your code.

source

pub fn get_detector_name(&self) -> &Option<String>

The name of the detector that identified the security vulnerability in your code.

source

pub fn rule_id(self, input: impl Into<String>) -> Self

The identifier for the rule that generated the finding.

source

pub fn set_rule_id(self, input: Option<String>) -> Self

The identifier for the rule that generated the finding.

source

pub fn get_rule_id(&self) -> &Option<String>

The identifier for the rule that generated the finding.

source

pub fn build(self) -> Finding

Consumes the builder and constructs a Finding.

Trait Implementations§

source§

impl Clone for FindingBuilder

source§

fn clone(&self) -> FindingBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for FindingBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for FindingBuilder

source§

fn default() -> FindingBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for FindingBuilder

source§

fn eq(&self, other: &FindingBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for FindingBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more