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 ==.