Struct aws_sdk_accessanalyzer::types::builders::UnusedActionBuilder
source · #[non_exhaustive]pub struct UnusedActionBuilder { /* private fields */ }Expand description
A builder for UnusedAction.
Implementations§
source§impl UnusedActionBuilder
impl UnusedActionBuilder
sourcepub fn action(self, input: impl Into<String>) -> Self
pub fn action(self, input: impl Into<String>) -> Self
The action for which the unused access finding was generated.
This field is required.sourcepub fn set_action(self, input: Option<String>) -> Self
pub fn set_action(self, input: Option<String>) -> Self
The action for which the unused access finding was generated.
sourcepub fn get_action(&self) -> &Option<String>
pub fn get_action(&self) -> &Option<String>
The action for which the unused access finding was generated.
sourcepub fn last_accessed(self, input: DateTime) -> Self
pub fn last_accessed(self, input: DateTime) -> Self
The time at which the action was last accessed.
sourcepub fn set_last_accessed(self, input: Option<DateTime>) -> Self
pub fn set_last_accessed(self, input: Option<DateTime>) -> Self
The time at which the action was last accessed.
sourcepub fn get_last_accessed(&self) -> &Option<DateTime>
pub fn get_last_accessed(&self) -> &Option<DateTime>
The time at which the action was last accessed.
sourcepub fn build(self) -> Result<UnusedAction, BuildError>
pub fn build(self) -> Result<UnusedAction, BuildError>
Consumes the builder and constructs a UnusedAction.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for UnusedActionBuilder
impl Clone for UnusedActionBuilder
source§fn clone(&self) -> UnusedActionBuilder
fn clone(&self) -> UnusedActionBuilder
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 Debug for UnusedActionBuilder
impl Debug for UnusedActionBuilder
source§impl Default for UnusedActionBuilder
impl Default for UnusedActionBuilder
source§fn default() -> UnusedActionBuilder
fn default() -> UnusedActionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for UnusedActionBuilder
impl PartialEq for UnusedActionBuilder
source§fn eq(&self, other: &UnusedActionBuilder) -> bool
fn eq(&self, other: &UnusedActionBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UnusedActionBuilder
Auto Trait Implementations§
impl RefUnwindSafe for UnusedActionBuilder
impl Send for UnusedActionBuilder
impl Sync for UnusedActionBuilder
impl Unpin for UnusedActionBuilder
impl UnwindSafe for UnusedActionBuilder
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.