Struct aws_sdk_redshift::operation::modify_usage_limit::builders::ModifyUsageLimitInputBuilder
source · #[non_exhaustive]pub struct ModifyUsageLimitInputBuilder { /* private fields */ }
Expand description
A builder for ModifyUsageLimitInput
.
Implementations§
source§impl ModifyUsageLimitInputBuilder
impl ModifyUsageLimitInputBuilder
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.
This field is required.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
.
sourcepub fn build(self) -> Result<ModifyUsageLimitInput, BuildError>
pub fn build(self) -> Result<ModifyUsageLimitInput, BuildError>
Consumes the builder and constructs a ModifyUsageLimitInput
.
source§impl ModifyUsageLimitInputBuilder
impl ModifyUsageLimitInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<ModifyUsageLimitOutput, SdkError<ModifyUsageLimitError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<ModifyUsageLimitOutput, SdkError<ModifyUsageLimitError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ModifyUsageLimitInputBuilder
impl Clone for ModifyUsageLimitInputBuilder
source§fn clone(&self) -> ModifyUsageLimitInputBuilder
fn clone(&self) -> ModifyUsageLimitInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ModifyUsageLimitInputBuilder
impl Debug for ModifyUsageLimitInputBuilder
source§impl Default for ModifyUsageLimitInputBuilder
impl Default for ModifyUsageLimitInputBuilder
source§fn default() -> ModifyUsageLimitInputBuilder
fn default() -> ModifyUsageLimitInputBuilder
source§impl PartialEq for ModifyUsageLimitInputBuilder
impl PartialEq for ModifyUsageLimitInputBuilder
source§fn eq(&self, other: &ModifyUsageLimitInputBuilder) -> bool
fn eq(&self, other: &ModifyUsageLimitInputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ModifyUsageLimitInputBuilder
Auto Trait Implementations§
impl Freeze for ModifyUsageLimitInputBuilder
impl RefUnwindSafe for ModifyUsageLimitInputBuilder
impl Send for ModifyUsageLimitInputBuilder
impl Sync for ModifyUsageLimitInputBuilder
impl Unpin for ModifyUsageLimitInputBuilder
impl UnwindSafe for ModifyUsageLimitInputBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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