#[non_exhaustive]pub struct AnalyzedResourceBuilder { /* private fields */ }
Expand description
A builder for AnalyzedResource
.
Implementations§
source§impl AnalyzedResourceBuilder
impl AnalyzedResourceBuilder
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
The ARN of the resource that was analyzed.
This field is required.sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
The ARN of the resource that was analyzed.
sourcepub fn get_resource_arn(&self) -> &Option<String>
pub fn get_resource_arn(&self) -> &Option<String>
The ARN of the resource that was analyzed.
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The type of the resource that was analyzed.
This field is required.sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
The type of the resource that was analyzed.
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The type of the resource that was analyzed.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The time at which the finding was created.
This field is required.sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The time at which the finding was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The time at which the finding was created.
sourcepub fn analyzed_at(self, input: DateTime) -> Self
pub fn analyzed_at(self, input: DateTime) -> Self
The time at which the resource was analyzed.
This field is required.sourcepub fn set_analyzed_at(self, input: Option<DateTime>) -> Self
pub fn set_analyzed_at(self, input: Option<DateTime>) -> Self
The time at which the resource was analyzed.
sourcepub fn get_analyzed_at(&self) -> &Option<DateTime>
pub fn get_analyzed_at(&self) -> &Option<DateTime>
The time at which the resource was analyzed.
sourcepub fn updated_at(self, input: DateTime) -> Self
pub fn updated_at(self, input: DateTime) -> Self
The time at which the finding was updated.
This field is required.sourcepub fn set_updated_at(self, input: Option<DateTime>) -> Self
pub fn set_updated_at(self, input: Option<DateTime>) -> Self
The time at which the finding was updated.
sourcepub fn get_updated_at(&self) -> &Option<DateTime>
pub fn get_updated_at(&self) -> &Option<DateTime>
The time at which the finding was updated.
sourcepub fn is_public(self, input: bool) -> Self
pub fn is_public(self, input: bool) -> Self
Indicates whether the policy that generated the finding grants public access to the resource.
This field is required.sourcepub fn set_is_public(self, input: Option<bool>) -> Self
pub fn set_is_public(self, input: Option<bool>) -> Self
Indicates whether the policy that generated the finding grants public access to the resource.
sourcepub fn get_is_public(&self) -> &Option<bool>
pub fn get_is_public(&self) -> &Option<bool>
Indicates whether the policy that generated the finding grants public access to the resource.
sourcepub fn actions(self, input: impl Into<String>) -> Self
pub fn actions(self, input: impl Into<String>) -> Self
Appends an item to actions
.
To override the contents of this collection use set_actions
.
The actions that an external principal is granted permission to use by the policy that generated the finding.
sourcepub fn set_actions(self, input: Option<Vec<String>>) -> Self
pub fn set_actions(self, input: Option<Vec<String>>) -> Self
The actions that an external principal is granted permission to use by the policy that generated the finding.
sourcepub fn get_actions(&self) -> &Option<Vec<String>>
pub fn get_actions(&self) -> &Option<Vec<String>>
The actions that an external principal is granted permission to use by the policy that generated the finding.
Appends an item to shared_via
.
To override the contents of this collection use set_shared_via
.
Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.
Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.
Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.
sourcepub fn status(self, input: FindingStatus) -> Self
pub fn status(self, input: FindingStatus) -> Self
The current status of the finding generated from the analyzed resource.
sourcepub fn set_status(self, input: Option<FindingStatus>) -> Self
pub fn set_status(self, input: Option<FindingStatus>) -> Self
The current status of the finding generated from the analyzed resource.
sourcepub fn get_status(&self) -> &Option<FindingStatus>
pub fn get_status(&self) -> &Option<FindingStatus>
The current status of the finding generated from the analyzed resource.
sourcepub fn resource_owner_account(self, input: impl Into<String>) -> Self
pub fn resource_owner_account(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID that owns the resource.
This field is required.sourcepub fn set_resource_owner_account(self, input: Option<String>) -> Self
pub fn set_resource_owner_account(self, input: Option<String>) -> Self
The Amazon Web Services account ID that owns the resource.
sourcepub fn get_resource_owner_account(&self) -> &Option<String>
pub fn get_resource_owner_account(&self) -> &Option<String>
The Amazon Web Services account ID that owns the resource.
sourcepub fn build(self) -> Result<AnalyzedResource, BuildError>
pub fn build(self) -> Result<AnalyzedResource, BuildError>
Consumes the builder and constructs a AnalyzedResource
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AnalyzedResourceBuilder
impl Clone for AnalyzedResourceBuilder
source§fn clone(&self) -> AnalyzedResourceBuilder
fn clone(&self) -> AnalyzedResourceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnalyzedResourceBuilder
impl Debug for AnalyzedResourceBuilder
source§impl Default for AnalyzedResourceBuilder
impl Default for AnalyzedResourceBuilder
source§fn default() -> AnalyzedResourceBuilder
fn default() -> AnalyzedResourceBuilder
source§impl PartialEq for AnalyzedResourceBuilder
impl PartialEq for AnalyzedResourceBuilder
source§fn eq(&self, other: &AnalyzedResourceBuilder) -> bool
fn eq(&self, other: &AnalyzedResourceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AnalyzedResourceBuilder
Auto Trait Implementations§
impl Freeze for AnalyzedResourceBuilder
impl RefUnwindSafe for AnalyzedResourceBuilder
impl Send for AnalyzedResourceBuilder
impl Sync for AnalyzedResourceBuilder
impl Unpin for AnalyzedResourceBuilder
impl UnwindSafe for AnalyzedResourceBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more