Struct aws_sdk_cloudwatchlogs::operation::update_anomaly::builders::UpdateAnomalyInputBuilder
source · #[non_exhaustive]pub struct UpdateAnomalyInputBuilder { /* private fields */ }
Expand description
A builder for UpdateAnomalyInput
.
Implementations§
source§impl UpdateAnomalyInputBuilder
impl UpdateAnomalyInputBuilder
sourcepub fn anomaly_id(self, input: impl Into<String>) -> Self
pub fn anomaly_id(self, input: impl Into<String>) -> Self
If you are suppressing or unsuppressing an anomaly, specify its unique ID here. You can find anomaly IDs by using the ListAnomalies operation.
sourcepub fn set_anomaly_id(self, input: Option<String>) -> Self
pub fn set_anomaly_id(self, input: Option<String>) -> Self
If you are suppressing or unsuppressing an anomaly, specify its unique ID here. You can find anomaly IDs by using the ListAnomalies operation.
sourcepub fn get_anomaly_id(&self) -> &Option<String>
pub fn get_anomaly_id(&self) -> &Option<String>
If you are suppressing or unsuppressing an anomaly, specify its unique ID here. You can find anomaly IDs by using the ListAnomalies operation.
sourcepub fn pattern_id(self, input: impl Into<String>) -> Self
pub fn pattern_id(self, input: impl Into<String>) -> Self
If you are suppressing or unsuppressing an pattern, specify its unique ID here. You can find pattern IDs by using the ListAnomalies operation.
sourcepub fn set_pattern_id(self, input: Option<String>) -> Self
pub fn set_pattern_id(self, input: Option<String>) -> Self
If you are suppressing or unsuppressing an pattern, specify its unique ID here. You can find pattern IDs by using the ListAnomalies operation.
sourcepub fn get_pattern_id(&self) -> &Option<String>
pub fn get_pattern_id(&self) -> &Option<String>
If you are suppressing or unsuppressing an pattern, specify its unique ID here. You can find pattern IDs by using the ListAnomalies operation.
sourcepub fn anomaly_detector_arn(self, input: impl Into<String>) -> Self
pub fn anomaly_detector_arn(self, input: impl Into<String>) -> Self
The ARN of the anomaly detector that this operation is to act on.
This field is required.sourcepub fn set_anomaly_detector_arn(self, input: Option<String>) -> Self
pub fn set_anomaly_detector_arn(self, input: Option<String>) -> Self
The ARN of the anomaly detector that this operation is to act on.
sourcepub fn get_anomaly_detector_arn(&self) -> &Option<String>
pub fn get_anomaly_detector_arn(&self) -> &Option<String>
The ARN of the anomaly detector that this operation is to act on.
sourcepub fn suppression_type(self, input: SuppressionType) -> Self
pub fn suppression_type(self, input: SuppressionType) -> Self
Use this to specify whether the suppression to be temporary or infinite. If you specify LIMITED
, you must also specify a suppressionPeriod
. If you specify INFINITE
, any value for suppressionPeriod
is ignored.
sourcepub fn set_suppression_type(self, input: Option<SuppressionType>) -> Self
pub fn set_suppression_type(self, input: Option<SuppressionType>) -> Self
Use this to specify whether the suppression to be temporary or infinite. If you specify LIMITED
, you must also specify a suppressionPeriod
. If you specify INFINITE
, any value for suppressionPeriod
is ignored.
sourcepub fn get_suppression_type(&self) -> &Option<SuppressionType>
pub fn get_suppression_type(&self) -> &Option<SuppressionType>
Use this to specify whether the suppression to be temporary or infinite. If you specify LIMITED
, you must also specify a suppressionPeriod
. If you specify INFINITE
, any value for suppressionPeriod
is ignored.
sourcepub fn suppression_period(self, input: SuppressionPeriod) -> Self
pub fn suppression_period(self, input: SuppressionPeriod) -> Self
If you are temporarily suppressing an anomaly or pattern, use this structure to specify how long the suppression is to last.
sourcepub fn set_suppression_period(self, input: Option<SuppressionPeriod>) -> Self
pub fn set_suppression_period(self, input: Option<SuppressionPeriod>) -> Self
If you are temporarily suppressing an anomaly or pattern, use this structure to specify how long the suppression is to last.
sourcepub fn get_suppression_period(&self) -> &Option<SuppressionPeriod>
pub fn get_suppression_period(&self) -> &Option<SuppressionPeriod>
If you are temporarily suppressing an anomaly or pattern, use this structure to specify how long the suppression is to last.
sourcepub fn build(self) -> Result<UpdateAnomalyInput, BuildError>
pub fn build(self) -> Result<UpdateAnomalyInput, BuildError>
Consumes the builder and constructs a UpdateAnomalyInput
.
source§impl UpdateAnomalyInputBuilder
impl UpdateAnomalyInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<UpdateAnomalyOutput, SdkError<UpdateAnomalyError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<UpdateAnomalyOutput, SdkError<UpdateAnomalyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateAnomalyInputBuilder
impl Clone for UpdateAnomalyInputBuilder
source§fn clone(&self) -> UpdateAnomalyInputBuilder
fn clone(&self) -> UpdateAnomalyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateAnomalyInputBuilder
impl Debug for UpdateAnomalyInputBuilder
source§impl Default for UpdateAnomalyInputBuilder
impl Default for UpdateAnomalyInputBuilder
source§fn default() -> UpdateAnomalyInputBuilder
fn default() -> UpdateAnomalyInputBuilder
source§impl PartialEq for UpdateAnomalyInputBuilder
impl PartialEq for UpdateAnomalyInputBuilder
source§fn eq(&self, other: &UpdateAnomalyInputBuilder) -> bool
fn eq(&self, other: &UpdateAnomalyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateAnomalyInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateAnomalyInputBuilder
impl RefUnwindSafe for UpdateAnomalyInputBuilder
impl Send for UpdateAnomalyInputBuilder
impl Sync for UpdateAnomalyInputBuilder
impl Unpin for UpdateAnomalyInputBuilder
impl UnwindSafe for UpdateAnomalyInputBuilder
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> 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