#[non_exhaustive]pub struct AnalyzedResourceSummaryBuilder { /* private fields */ }Expand description
A builder for AnalyzedResourceSummary.
Implementations§
source§impl AnalyzedResourceSummaryBuilder
impl AnalyzedResourceSummaryBuilder
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
The ARN of the analyzed resource.
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 analyzed resource.
sourcepub fn get_resource_arn(&self) -> &Option<String>
pub fn get_resource_arn(&self) -> &Option<String>
The ARN of 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 resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The type of 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 resource that was analyzed.
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The type of resource that was analyzed.
sourcepub fn build(self) -> Result<AnalyzedResourceSummary, BuildError>
pub fn build(self) -> Result<AnalyzedResourceSummary, BuildError>
Consumes the builder and constructs a AnalyzedResourceSummary.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AnalyzedResourceSummaryBuilder
impl Clone for AnalyzedResourceSummaryBuilder
source§fn clone(&self) -> AnalyzedResourceSummaryBuilder
fn clone(&self) -> AnalyzedResourceSummaryBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for AnalyzedResourceSummaryBuilder
impl Default for AnalyzedResourceSummaryBuilder
source§fn default() -> AnalyzedResourceSummaryBuilder
fn default() -> AnalyzedResourceSummaryBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for AnalyzedResourceSummaryBuilder
impl PartialEq for AnalyzedResourceSummaryBuilder
source§fn eq(&self, other: &AnalyzedResourceSummaryBuilder) -> bool
fn eq(&self, other: &AnalyzedResourceSummaryBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AnalyzedResourceSummaryBuilder
Auto Trait Implementations§
impl RefUnwindSafe for AnalyzedResourceSummaryBuilder
impl Send for AnalyzedResourceSummaryBuilder
impl Sync for AnalyzedResourceSummaryBuilder
impl Unpin for AnalyzedResourceSummaryBuilder
impl UnwindSafe for AnalyzedResourceSummaryBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.