#[non_exhaustive]pub struct ControlMetadataBuilder { /* private fields */ }Expand description
A builder for ControlMetadata.
Implementations§
source§impl ControlMetadataBuilder
impl ControlMetadataBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the control.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the control.
sourcepub fn control_sources(self, input: impl Into<String>) -> Self
pub fn control_sources(self, input: impl Into<String>) -> Self
The data source that determines where Audit Manager collects evidence from for the control.
sourcepub fn set_control_sources(self, input: Option<String>) -> Self
pub fn set_control_sources(self, input: Option<String>) -> Self
The data source that determines where Audit Manager collects evidence from for the control.
sourcepub fn get_control_sources(&self) -> &Option<String>
pub fn get_control_sources(&self) -> &Option<String>
The data source that determines where Audit Manager collects evidence from for the control.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The time when the control was created.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The time when the control was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The time when the control was created.
sourcepub fn last_updated_at(self, input: DateTime) -> Self
pub fn last_updated_at(self, input: DateTime) -> Self
The time when the control was most recently updated.
sourcepub fn set_last_updated_at(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_at(self, input: Option<DateTime>) -> Self
The time when the control was most recently updated.
sourcepub fn get_last_updated_at(&self) -> &Option<DateTime>
pub fn get_last_updated_at(&self) -> &Option<DateTime>
The time when the control was most recently updated.
sourcepub fn build(self) -> ControlMetadata
pub fn build(self) -> ControlMetadata
Consumes the builder and constructs a ControlMetadata.
Trait Implementations§
source§impl Clone for ControlMetadataBuilder
impl Clone for ControlMetadataBuilder
source§fn clone(&self) -> ControlMetadataBuilder
fn clone(&self) -> ControlMetadataBuilder
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 ControlMetadataBuilder
impl Debug for ControlMetadataBuilder
source§impl Default for ControlMetadataBuilder
impl Default for ControlMetadataBuilder
source§fn default() -> ControlMetadataBuilder
fn default() -> ControlMetadataBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ControlMetadataBuilder
impl PartialEq for ControlMetadataBuilder
source§fn eq(&self, other: &ControlMetadataBuilder) -> bool
fn eq(&self, other: &ControlMetadataBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ControlMetadataBuilder
Auto Trait Implementations§
impl Freeze for ControlMetadataBuilder
impl RefUnwindSafe for ControlMetadataBuilder
impl Send for ControlMetadataBuilder
impl Sync for ControlMetadataBuilder
impl Unpin for ControlMetadataBuilder
impl UnwindSafe for ControlMetadataBuilder
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>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.