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 fn as_input(&self) -> &ModifyUsageLimitInputBuilder
pub fn as_input(&self) -> &ModifyUsageLimitInputBuilder
Access the ModifyUsageLimit as a reference.
sourcepub async fn send(
self
) -> Result<ModifyUsageLimitOutput, SdkError<ModifyUsageLimitError, HttpResponse>>
pub async fn send( self ) -> Result<ModifyUsageLimitOutput, SdkError<ModifyUsageLimitError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<ModifyUsageLimitOutput, ModifyUsageLimitError, Self>
pub fn customize( self ) -> CustomizableOperation<ModifyUsageLimitOutput, ModifyUsageLimitError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_usage_limit_id(&self) -> &Option<String>
pub fn get_usage_limit_id(&self) -> &Option<String>
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 get_amount(&self) -> &Option<i64>
pub fn get_amount(&self) -> &Option<i64>
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
.
sourcepub fn get_breach_action(&self) -> &Option<UsageLimitBreachAction>
pub fn get_breach_action(&self) -> &Option<UsageLimitBreachAction>
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