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

A builder for Finding.

Implementations§

source§

impl FindingBuilder

source

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

The unique identifier for the Amazon Web Services account that the finding applies to. This is typically the account that owns the affected resource.

source

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

The unique identifier for the Amazon Web Services account that the finding applies to. This is typically the account that owns the affected resource.

source

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

The unique identifier for the Amazon Web Services account that the finding applies to. This is typically the account that owns the affected resource.

source

pub fn archived(self, input: bool) -> Self

Specifies whether the finding is archived (suppressed).

source

pub fn set_archived(self, input: Option<bool>) -> Self

Specifies whether the finding is archived (suppressed).

source

pub fn get_archived(&self) -> &Option<bool>

Specifies whether the finding is archived (suppressed).

source

pub fn category(self, input: FindingCategory) -> Self

The category of the finding. Possible values are: CLASSIFICATION, for a sensitive data finding; and, POLICY, for a policy finding.

source

pub fn set_category(self, input: Option<FindingCategory>) -> Self

The category of the finding. Possible values are: CLASSIFICATION, for a sensitive data finding; and, POLICY, for a policy finding.

source

pub fn get_category(&self) -> &Option<FindingCategory>

The category of the finding. Possible values are: CLASSIFICATION, for a sensitive data finding; and, POLICY, for a policy finding.

source

pub fn classification_details(self, input: ClassificationDetails) -> Self

The details of a sensitive data finding. This value is null for a policy finding.

source

pub fn set_classification_details( self, input: Option<ClassificationDetails> ) -> Self

The details of a sensitive data finding. This value is null for a policy finding.

source

pub fn get_classification_details(&self) -> &Option<ClassificationDetails>

The details of a sensitive data finding. This value is null for a policy finding.

source

pub fn count(self, input: i64) -> Self

The total number of occurrences of the finding. For sensitive data findings, this value is always 1. All sensitive data findings are considered unique.

source

pub fn set_count(self, input: Option<i64>) -> Self

The total number of occurrences of the finding. For sensitive data findings, this value is always 1. All sensitive data findings are considered unique.

source

pub fn get_count(&self) -> &Option<i64>

The total number of occurrences of the finding. For sensitive data findings, this value is always 1. All sensitive data findings are considered unique.

source

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

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie created the finding.

source

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

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie created the finding.

source

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

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie created the finding.

source

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

The description of the finding.

source

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

The description of the finding.

source

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

The description of the finding.

source

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

The unique identifier for the finding. This is a random string that Amazon Macie generates and assigns to a finding when it creates the finding.

source

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

The unique identifier for the finding. This is a random string that Amazon Macie generates and assigns to a finding when it creates the finding.

source

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

The unique identifier for the finding. This is a random string that Amazon Macie generates and assigns to a finding when it creates the finding.

source

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

The Amazon Web Services partition that Amazon Macie created the finding in.

source

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

The Amazon Web Services partition that Amazon Macie created the finding in.

source

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

The Amazon Web Services partition that Amazon Macie created the finding in.

source

pub fn policy_details(self, input: PolicyDetails) -> Self

The details of a policy finding. This value is null for a sensitive data finding.

source

pub fn set_policy_details(self, input: Option<PolicyDetails>) -> Self

The details of a policy finding. This value is null for a sensitive data finding.

source

pub fn get_policy_details(&self) -> &Option<PolicyDetails>

The details of a policy finding. This value is null for a sensitive data finding.

source

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

The Amazon Web Services Region that Amazon Macie created the finding in.

source

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

The Amazon Web Services Region that Amazon Macie created the finding in.

source

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

The Amazon Web Services Region that Amazon Macie created the finding in.

source

pub fn resources_affected(self, input: ResourcesAffected) -> Self

The resources that the finding applies to.

source

pub fn set_resources_affected(self, input: Option<ResourcesAffected>) -> Self

The resources that the finding applies to.

source

pub fn get_resources_affected(&self) -> &Option<ResourcesAffected>

The resources that the finding applies to.

source

pub fn sample(self, input: bool) -> Self

Specifies whether the finding is a sample finding. A sample finding is a finding that uses example data to demonstrate what a finding might contain.

source

pub fn set_sample(self, input: Option<bool>) -> Self

Specifies whether the finding is a sample finding. A sample finding is a finding that uses example data to demonstrate what a finding might contain.

source

pub fn get_sample(&self) -> &Option<bool>

Specifies whether the finding is a sample finding. A sample finding is a finding that uses example data to demonstrate what a finding might contain.

source

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

The version of the schema that was used to define the data structures in the finding.

source

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

The version of the schema that was used to define the data structures in the finding.

source

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

The version of the schema that was used to define the data structures in the finding.

source

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

The severity level and score for the finding.

source

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

The severity level and score for the finding.

source

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

The severity level and score for the finding.

source

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

The brief description of the finding.

source

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

The brief description of the finding.

source

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

The brief description of the finding.

source

pub fn type(self, input: FindingType) -> Self

The type of the finding.

source

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

The type of the finding.

source

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

The type of the finding.

source

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

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie last updated the finding. For sensitive data findings, this value is the same as the value for the createdAt property. All sensitive data findings are considered new.

source

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

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie last updated the finding. For sensitive data findings, this value is the same as the value for the createdAt property. All sensitive data findings are considered new.

source

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

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie last updated the finding. For sensitive data findings, this value is the same as the value for the createdAt property. All sensitive data findings are considered new.

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<FindingBuilder> 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<T> 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