Struct aws_sdk_redshift::operation::modify_usage_limit::builders::ModifyUsageLimitFluentBuilder
source · pub struct ModifyUsageLimitFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ModifyUsageLimit
.
Modifies a usage limit in a cluster. You can't modify the feature type or period of a usage limit.
Implementations§
source§impl ModifyUsageLimitFluentBuilder
impl ModifyUsageLimitFluentBuilder
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ModifyUsageLimit, AwsResponseRetryClassifier>, SdkError<ModifyUsageLimitError>>
pub async fn customize( self ) -> Result<CustomizableOperation<ModifyUsageLimit, AwsResponseRetryClassifier>, SdkError<ModifyUsageLimitError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<ModifyUsageLimitOutput, SdkError<ModifyUsageLimitError>>
pub async fn send( self ) -> Result<ModifyUsageLimitOutput, SdkError<ModifyUsageLimitError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn usage_limit_id(self, input: impl Into<String>) -> Self
pub fn usage_limit_id(self, input: impl Into<String>) -> Self
The identifier of the usage limit to modify.
sourcepub fn set_usage_limit_id(self, input: Option<String>) -> Self
pub fn set_usage_limit_id(self, input: Option<String>) -> Self
The identifier of the usage limit to modify.
sourcepub fn amount(self, input: i64) -> Self
pub fn amount(self, input: i64) -> Self
The new limit amount. For more information about this parameter, see UsageLimit
.
sourcepub fn set_amount(self, input: Option<i64>) -> Self
pub fn set_amount(self, input: Option<i64>) -> Self
The new limit amount. For more information about this parameter, see UsageLimit
.
sourcepub fn breach_action(self, input: UsageLimitBreachAction) -> Self
pub fn breach_action(self, input: UsageLimitBreachAction) -> Self
The new action that Amazon Redshift takes when the limit is reached. For more information about this parameter, see UsageLimit
.
sourcepub fn set_breach_action(self, input: Option<UsageLimitBreachAction>) -> Self
pub fn set_breach_action(self, input: Option<UsageLimitBreachAction>) -> Self
The new action that Amazon Redshift takes when the limit is reached. For more information about this parameter, see UsageLimit
.
Trait Implementations§
source§impl Clone for ModifyUsageLimitFluentBuilder
impl Clone for ModifyUsageLimitFluentBuilder
source§fn clone(&self) -> ModifyUsageLimitFluentBuilder
fn clone(&self) -> ModifyUsageLimitFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more