Struct aws_sdk_config::types::builders::RemediationExceptionBuilder
source · #[non_exhaustive]pub struct RemediationExceptionBuilder { /* private fields */ }Expand description
A builder for RemediationException.
Implementations§
source§impl RemediationExceptionBuilder
impl RemediationExceptionBuilder
sourcepub fn config_rule_name(self, input: impl Into<String>) -> Self
pub fn config_rule_name(self, input: impl Into<String>) -> Self
The name of the Config rule.
This field is required.sourcepub fn set_config_rule_name(self, input: Option<String>) -> Self
pub fn set_config_rule_name(self, input: Option<String>) -> Self
The name of the Config rule.
sourcepub fn get_config_rule_name(&self) -> &Option<String>
pub fn get_config_rule_name(&self) -> &Option<String>
The name of the Config rule.
sourcepub fn resource_type(self, input: impl Into<String>) -> Self
pub fn resource_type(self, input: impl Into<String>) -> Self
The type of a resource.
This field is required.sourcepub fn set_resource_type(self, input: Option<String>) -> Self
pub fn set_resource_type(self, input: Option<String>) -> Self
The type of a resource.
sourcepub fn get_resource_type(&self) -> &Option<String>
pub fn get_resource_type(&self) -> &Option<String>
The type of a resource.
sourcepub fn resource_id(self, input: impl Into<String>) -> Self
pub fn resource_id(self, input: impl Into<String>) -> Self
The ID of the resource (for example., sg-xxxxxx).
This field is required.sourcepub fn set_resource_id(self, input: Option<String>) -> Self
pub fn set_resource_id(self, input: Option<String>) -> Self
The ID of the resource (for example., sg-xxxxxx).
sourcepub fn get_resource_id(&self) -> &Option<String>
pub fn get_resource_id(&self) -> &Option<String>
The ID of the resource (for example., sg-xxxxxx).
sourcepub fn message(self, input: impl Into<String>) -> Self
pub fn message(self, input: impl Into<String>) -> Self
An explanation of an remediation exception.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
An explanation of an remediation exception.
sourcepub fn get_message(&self) -> &Option<String>
pub fn get_message(&self) -> &Option<String>
An explanation of an remediation exception.
sourcepub fn expiration_time(self, input: DateTime) -> Self
pub fn expiration_time(self, input: DateTime) -> Self
The time when the remediation exception will be deleted.
sourcepub fn set_expiration_time(self, input: Option<DateTime>) -> Self
pub fn set_expiration_time(self, input: Option<DateTime>) -> Self
The time when the remediation exception will be deleted.
sourcepub fn get_expiration_time(&self) -> &Option<DateTime>
pub fn get_expiration_time(&self) -> &Option<DateTime>
The time when the remediation exception will be deleted.
sourcepub fn build(self) -> Result<RemediationException, BuildError>
pub fn build(self) -> Result<RemediationException, BuildError>
Consumes the builder and constructs a RemediationException.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RemediationExceptionBuilder
impl Clone for RemediationExceptionBuilder
source§fn clone(&self) -> RemediationExceptionBuilder
fn clone(&self) -> RemediationExceptionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RemediationExceptionBuilder
impl Debug for RemediationExceptionBuilder
source§impl Default for RemediationExceptionBuilder
impl Default for RemediationExceptionBuilder
source§fn default() -> RemediationExceptionBuilder
fn default() -> RemediationExceptionBuilder
source§impl PartialEq for RemediationExceptionBuilder
impl PartialEq for RemediationExceptionBuilder
source§fn eq(&self, other: &RemediationExceptionBuilder) -> bool
fn eq(&self, other: &RemediationExceptionBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RemediationExceptionBuilder
Auto Trait Implementations§
impl Freeze for RemediationExceptionBuilder
impl RefUnwindSafe for RemediationExceptionBuilder
impl Send for RemediationExceptionBuilder
impl Sync for RemediationExceptionBuilder
impl Unpin for RemediationExceptionBuilder
impl UnwindSafe for RemediationExceptionBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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