Struct aws_sdk_accessanalyzer::operation::get_finding_v2::builders::GetFindingV2OutputBuilder
source · #[non_exhaustive]pub struct GetFindingV2OutputBuilder { /* private fields */ }Expand description
A builder for GetFindingV2Output.
Implementations§
source§impl GetFindingV2OutputBuilder
impl GetFindingV2OutputBuilder
sourcepub fn analyzed_at(self, input: DateTime) -> Self
pub fn analyzed_at(self, input: DateTime) -> Self
The time at which the resource-based policy or IAM entity that generated the finding 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-based policy or IAM entity that generated the finding was analyzed.
sourcepub fn get_analyzed_at(&self) -> &Option<DateTime>
pub fn get_analyzed_at(&self) -> &Option<DateTime>
The time at which the resource-based policy or IAM entity that generated the finding 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 id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID of the finding to retrieve.
This field is required.sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
A token used for pagination of results returned.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
A token used for pagination of results returned.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
A token used for pagination of results returned.
sourcepub fn resource(self, input: impl Into<String>) -> Self
pub fn resource(self, input: impl Into<String>) -> Self
The resource that generated the finding.
sourcepub fn set_resource(self, input: Option<String>) -> Self
pub fn set_resource(self, input: Option<String>) -> Self
The resource that generated the finding.
sourcepub fn get_resource(&self) -> &Option<String>
pub fn get_resource(&self) -> &Option<String>
The resource that generated the finding.
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The type of the resource identified in the finding.
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 identified in the finding.
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The type of the resource identified in the finding.
sourcepub fn resource_owner_account(self, input: impl Into<String>) -> Self
pub fn resource_owner_account(self, input: impl Into<String>) -> Self
Tye 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
Tye 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>
Tye Amazon Web Services account ID that owns the resource.
sourcepub fn status(self, input: FindingStatus) -> Self
pub fn status(self, input: FindingStatus) -> Self
The status of the finding.
This field is required.sourcepub fn set_status(self, input: Option<FindingStatus>) -> Self
pub fn set_status(self, input: Option<FindingStatus>) -> Self
The status of the finding.
sourcepub fn get_status(&self) -> &Option<FindingStatus>
pub fn get_status(&self) -> &Option<FindingStatus>
The status of the finding.
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 finding_details(self, input: FindingDetails) -> Self
pub fn finding_details(self, input: FindingDetails) -> Self
Appends an item to finding_details.
To override the contents of this collection use set_finding_details.
A localized message that explains the finding and provides guidance on how to address it.
sourcepub fn set_finding_details(self, input: Option<Vec<FindingDetails>>) -> Self
pub fn set_finding_details(self, input: Option<Vec<FindingDetails>>) -> Self
A localized message that explains the finding and provides guidance on how to address it.
sourcepub fn get_finding_details(&self) -> &Option<Vec<FindingDetails>>
pub fn get_finding_details(&self) -> &Option<Vec<FindingDetails>>
A localized message that explains the finding and provides guidance on how to address it.
sourcepub fn finding_type(self, input: FindingType) -> Self
pub fn finding_type(self, input: FindingType) -> Self
The type of the finding. For external access analyzers, the type is ExternalAccess. For unused access analyzers, the type can be UnusedIAMRole, UnusedIAMUserAccessKey, UnusedIAMUserPassword, or UnusedPermission.
sourcepub fn set_finding_type(self, input: Option<FindingType>) -> Self
pub fn set_finding_type(self, input: Option<FindingType>) -> Self
The type of the finding. For external access analyzers, the type is ExternalAccess. For unused access analyzers, the type can be UnusedIAMRole, UnusedIAMUserAccessKey, UnusedIAMUserPassword, or UnusedPermission.
sourcepub fn get_finding_type(&self) -> &Option<FindingType>
pub fn get_finding_type(&self) -> &Option<FindingType>
The type of the finding. For external access analyzers, the type is ExternalAccess. For unused access analyzers, the type can be UnusedIAMRole, UnusedIAMUserAccessKey, UnusedIAMUserPassword, or UnusedPermission.
sourcepub fn build(self) -> Result<GetFindingV2Output, BuildError>
pub fn build(self) -> Result<GetFindingV2Output, BuildError>
Consumes the builder and constructs a GetFindingV2Output.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GetFindingV2OutputBuilder
impl Clone for GetFindingV2OutputBuilder
source§fn clone(&self) -> GetFindingV2OutputBuilder
fn clone(&self) -> GetFindingV2OutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GetFindingV2OutputBuilder
impl Debug for GetFindingV2OutputBuilder
source§impl Default for GetFindingV2OutputBuilder
impl Default for GetFindingV2OutputBuilder
source§fn default() -> GetFindingV2OutputBuilder
fn default() -> GetFindingV2OutputBuilder
source§impl PartialEq for GetFindingV2OutputBuilder
impl PartialEq for GetFindingV2OutputBuilder
source§fn eq(&self, other: &GetFindingV2OutputBuilder) -> bool
fn eq(&self, other: &GetFindingV2OutputBuilder) -> bool
self and other values to be equal, and is used
by ==.