Struct aws_sdk_redshift::operation::create_usage_limit::builders::CreateUsageLimitInputBuilder
source · #[non_exhaustive]pub struct CreateUsageLimitInputBuilder { /* private fields */ }
Expand description
A builder for CreateUsageLimitInput
.
Implementations§
source§impl CreateUsageLimitInputBuilder
impl CreateUsageLimitInputBuilder
sourcepub fn cluster_identifier(self, input: impl Into<String>) -> Self
pub fn cluster_identifier(self, input: impl Into<String>) -> Self
The identifier of the cluster that you want to limit usage.
This field is required.sourcepub fn set_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_cluster_identifier(self, input: Option<String>) -> Self
The identifier of the cluster that you want to limit usage.
sourcepub fn get_cluster_identifier(&self) -> &Option<String>
pub fn get_cluster_identifier(&self) -> &Option<String>
The identifier of the cluster that you want to limit usage.
sourcepub fn feature_type(self, input: UsageLimitFeatureType) -> Self
pub fn feature_type(self, input: UsageLimitFeatureType) -> Self
The Amazon Redshift feature that you want to limit.
This field is required.sourcepub fn set_feature_type(self, input: Option<UsageLimitFeatureType>) -> Self
pub fn set_feature_type(self, input: Option<UsageLimitFeatureType>) -> Self
The Amazon Redshift feature that you want to limit.
sourcepub fn get_feature_type(&self) -> &Option<UsageLimitFeatureType>
pub fn get_feature_type(&self) -> &Option<UsageLimitFeatureType>
The Amazon Redshift feature that you want to limit.
sourcepub fn limit_type(self, input: UsageLimitLimitType) -> Self
pub fn limit_type(self, input: UsageLimitLimitType) -> Self
The type of limit. Depending on the feature type, this can be based on a time duration or data size. If FeatureType
is spectrum
, then LimitType
must be data-scanned
. If FeatureType
is concurrency-scaling
, then LimitType
must be time
. If FeatureType
is cross-region-datasharing
, then LimitType
must be data-scanned
.
sourcepub fn set_limit_type(self, input: Option<UsageLimitLimitType>) -> Self
pub fn set_limit_type(self, input: Option<UsageLimitLimitType>) -> Self
The type of limit. Depending on the feature type, this can be based on a time duration or data size. If FeatureType
is spectrum
, then LimitType
must be data-scanned
. If FeatureType
is concurrency-scaling
, then LimitType
must be time
. If FeatureType
is cross-region-datasharing
, then LimitType
must be data-scanned
.
sourcepub fn get_limit_type(&self) -> &Option<UsageLimitLimitType>
pub fn get_limit_type(&self) -> &Option<UsageLimitLimitType>
The type of limit. Depending on the feature type, this can be based on a time duration or data size. If FeatureType
is spectrum
, then LimitType
must be data-scanned
. If FeatureType
is concurrency-scaling
, then LimitType
must be time
. If FeatureType
is cross-region-datasharing
, then LimitType
must be data-scanned
.
sourcepub fn amount(self, input: i64) -> Self
pub fn amount(self, input: i64) -> Self
The limit amount. If time-based, this amount is in minutes. If data-based, this amount is in terabytes (TB). The value must be a positive number.
This field is required.sourcepub fn set_amount(self, input: Option<i64>) -> Self
pub fn set_amount(self, input: Option<i64>) -> Self
The limit amount. If time-based, this amount is in minutes. If data-based, this amount is in terabytes (TB). The value must be a positive number.
sourcepub fn get_amount(&self) -> &Option<i64>
pub fn get_amount(&self) -> &Option<i64>
The limit amount. If time-based, this amount is in minutes. If data-based, this amount is in terabytes (TB). The value must be a positive number.
sourcepub fn period(self, input: UsageLimitPeriod) -> Self
pub fn period(self, input: UsageLimitPeriod) -> Self
The time period that the amount applies to. A weekly
period begins on Sunday. The default is monthly
.
sourcepub fn set_period(self, input: Option<UsageLimitPeriod>) -> Self
pub fn set_period(self, input: Option<UsageLimitPeriod>) -> Self
The time period that the amount applies to. A weekly
period begins on Sunday. The default is monthly
.
sourcepub fn get_period(&self) -> &Option<UsageLimitPeriod>
pub fn get_period(&self) -> &Option<UsageLimitPeriod>
The time period that the amount applies to. A weekly
period begins on Sunday. The default is monthly
.
sourcepub fn breach_action(self, input: UsageLimitBreachAction) -> Self
pub fn breach_action(self, input: UsageLimitBreachAction) -> Self
The action that Amazon Redshift takes when the limit is reached. The default is log. 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 action that Amazon Redshift takes when the limit is reached. The default is log. 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 action that Amazon Redshift takes when the limit is reached. The default is log. For more information about this parameter, see UsageLimit
.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
A list of tag instances.
A list of tag instances.
A list of tag instances.
sourcepub fn build(self) -> Result<CreateUsageLimitInput, BuildError>
pub fn build(self) -> Result<CreateUsageLimitInput, BuildError>
Consumes the builder and constructs a CreateUsageLimitInput
.
source§impl CreateUsageLimitInputBuilder
impl CreateUsageLimitInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateUsageLimitOutput, SdkError<CreateUsageLimitError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateUsageLimitOutput, SdkError<CreateUsageLimitError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateUsageLimitInputBuilder
impl Clone for CreateUsageLimitInputBuilder
source§fn clone(&self) -> CreateUsageLimitInputBuilder
fn clone(&self) -> CreateUsageLimitInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateUsageLimitInputBuilder
impl Debug for CreateUsageLimitInputBuilder
source§impl Default for CreateUsageLimitInputBuilder
impl Default for CreateUsageLimitInputBuilder
source§fn default() -> CreateUsageLimitInputBuilder
fn default() -> CreateUsageLimitInputBuilder
source§impl PartialEq for CreateUsageLimitInputBuilder
impl PartialEq for CreateUsageLimitInputBuilder
source§fn eq(&self, other: &CreateUsageLimitInputBuilder) -> bool
fn eq(&self, other: &CreateUsageLimitInputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateUsageLimitInputBuilder
Auto Trait Implementations§
impl Freeze for CreateUsageLimitInputBuilder
impl RefUnwindSafe for CreateUsageLimitInputBuilder
impl Send for CreateUsageLimitInputBuilder
impl Sync for CreateUsageLimitInputBuilder
impl Unpin for CreateUsageLimitInputBuilder
impl UnwindSafe for CreateUsageLimitInputBuilder
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