Struct aws_sdk_servicequotas::types::builders::ServiceQuotaBuilder
source · #[non_exhaustive]pub struct ServiceQuotaBuilder { /* private fields */ }
Expand description
A builder for ServiceQuota
.
Implementations§
source§impl ServiceQuotaBuilder
impl ServiceQuotaBuilder
sourcepub fn service_code(self, input: impl Into<String>) -> Self
pub fn service_code(self, input: impl Into<String>) -> Self
Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the ListServices
operation.
sourcepub fn set_service_code(self, input: Option<String>) -> Self
pub fn set_service_code(self, input: Option<String>) -> Self
Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the ListServices
operation.
sourcepub fn get_service_code(&self) -> &Option<String>
pub fn get_service_code(&self) -> &Option<String>
Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the ListServices
operation.
sourcepub fn service_name(self, input: impl Into<String>) -> Self
pub fn service_name(self, input: impl Into<String>) -> Self
Specifies the service name.
sourcepub fn set_service_name(self, input: Option<String>) -> Self
pub fn set_service_name(self, input: Option<String>) -> Self
Specifies the service name.
sourcepub fn get_service_name(&self) -> &Option<String>
pub fn get_service_name(&self) -> &Option<String>
Specifies the service name.
sourcepub fn quota_arn(self, input: impl Into<String>) -> Self
pub fn quota_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the quota.
sourcepub fn set_quota_arn(self, input: Option<String>) -> Self
pub fn set_quota_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the quota.
sourcepub fn get_quota_arn(&self) -> &Option<String>
pub fn get_quota_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the quota.
sourcepub fn quota_code(self, input: impl Into<String>) -> Self
pub fn quota_code(self, input: impl Into<String>) -> Self
Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas
operation, and look for the QuotaCode
response in the output for the quota you want.
sourcepub fn set_quota_code(self, input: Option<String>) -> Self
pub fn set_quota_code(self, input: Option<String>) -> Self
Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas
operation, and look for the QuotaCode
response in the output for the quota you want.
sourcepub fn get_quota_code(&self) -> &Option<String>
pub fn get_quota_code(&self) -> &Option<String>
Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas
operation, and look for the QuotaCode
response in the output for the quota you want.
sourcepub fn quota_name(self, input: impl Into<String>) -> Self
pub fn quota_name(self, input: impl Into<String>) -> Self
Specifies the quota name.
sourcepub fn set_quota_name(self, input: Option<String>) -> Self
pub fn set_quota_name(self, input: Option<String>) -> Self
Specifies the quota name.
sourcepub fn get_quota_name(&self) -> &Option<String>
pub fn get_quota_name(&self) -> &Option<String>
Specifies the quota name.
sourcepub fn adjustable(self, input: bool) -> Self
pub fn adjustable(self, input: bool) -> Self
Indicates whether the quota value can be increased.
sourcepub fn set_adjustable(self, input: Option<bool>) -> Self
pub fn set_adjustable(self, input: Option<bool>) -> Self
Indicates whether the quota value can be increased.
sourcepub fn get_adjustable(&self) -> &Option<bool>
pub fn get_adjustable(&self) -> &Option<bool>
Indicates whether the quota value can be increased.
sourcepub fn global_quota(self, input: bool) -> Self
pub fn global_quota(self, input: bool) -> Self
Indicates whether the quota is global.
sourcepub fn set_global_quota(self, input: Option<bool>) -> Self
pub fn set_global_quota(self, input: Option<bool>) -> Self
Indicates whether the quota is global.
sourcepub fn get_global_quota(&self) -> &Option<bool>
pub fn get_global_quota(&self) -> &Option<bool>
Indicates whether the quota is global.
sourcepub fn usage_metric(self, input: MetricInfo) -> Self
pub fn usage_metric(self, input: MetricInfo) -> Self
Information about the measurement.
sourcepub fn set_usage_metric(self, input: Option<MetricInfo>) -> Self
pub fn set_usage_metric(self, input: Option<MetricInfo>) -> Self
Information about the measurement.
sourcepub fn get_usage_metric(&self) -> &Option<MetricInfo>
pub fn get_usage_metric(&self) -> &Option<MetricInfo>
Information about the measurement.
sourcepub fn period(self, input: QuotaPeriod) -> Self
pub fn period(self, input: QuotaPeriod) -> Self
The period of time.
sourcepub fn set_period(self, input: Option<QuotaPeriod>) -> Self
pub fn set_period(self, input: Option<QuotaPeriod>) -> Self
The period of time.
sourcepub fn get_period(&self) -> &Option<QuotaPeriod>
pub fn get_period(&self) -> &Option<QuotaPeriod>
The period of time.
sourcepub fn error_reason(self, input: ErrorReason) -> Self
pub fn error_reason(self, input: ErrorReason) -> Self
The error code and error reason.
sourcepub fn set_error_reason(self, input: Option<ErrorReason>) -> Self
pub fn set_error_reason(self, input: Option<ErrorReason>) -> Self
The error code and error reason.
sourcepub fn get_error_reason(&self) -> &Option<ErrorReason>
pub fn get_error_reason(&self) -> &Option<ErrorReason>
The error code and error reason.
sourcepub fn quota_applied_at_level(self, input: AppliedLevelEnum) -> Self
pub fn quota_applied_at_level(self, input: AppliedLevelEnum) -> Self
Specifies at which level of granularity that the quota value is applied.
sourcepub fn set_quota_applied_at_level(self, input: Option<AppliedLevelEnum>) -> Self
pub fn set_quota_applied_at_level(self, input: Option<AppliedLevelEnum>) -> Self
Specifies at which level of granularity that the quota value is applied.
sourcepub fn get_quota_applied_at_level(&self) -> &Option<AppliedLevelEnum>
pub fn get_quota_applied_at_level(&self) -> &Option<AppliedLevelEnum>
Specifies at which level of granularity that the quota value is applied.
sourcepub fn quota_context(self, input: QuotaContextInfo) -> Self
pub fn quota_context(self, input: QuotaContextInfo) -> Self
The context for this service quota.
sourcepub fn set_quota_context(self, input: Option<QuotaContextInfo>) -> Self
pub fn set_quota_context(self, input: Option<QuotaContextInfo>) -> Self
The context for this service quota.
sourcepub fn get_quota_context(&self) -> &Option<QuotaContextInfo>
pub fn get_quota_context(&self) -> &Option<QuotaContextInfo>
The context for this service quota.
sourcepub fn build(self) -> ServiceQuota
pub fn build(self) -> ServiceQuota
Consumes the builder and constructs a ServiceQuota
.
Trait Implementations§
source§impl Clone for ServiceQuotaBuilder
impl Clone for ServiceQuotaBuilder
source§fn clone(&self) -> ServiceQuotaBuilder
fn clone(&self) -> ServiceQuotaBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServiceQuotaBuilder
impl Debug for ServiceQuotaBuilder
source§impl Default for ServiceQuotaBuilder
impl Default for ServiceQuotaBuilder
source§fn default() -> ServiceQuotaBuilder
fn default() -> ServiceQuotaBuilder
source§impl PartialEq for ServiceQuotaBuilder
impl PartialEq for ServiceQuotaBuilder
source§fn eq(&self, other: &ServiceQuotaBuilder) -> bool
fn eq(&self, other: &ServiceQuotaBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ServiceQuotaBuilder
Auto Trait Implementations§
impl Freeze for ServiceQuotaBuilder
impl RefUnwindSafe for ServiceQuotaBuilder
impl Send for ServiceQuotaBuilder
impl Sync for ServiceQuotaBuilder
impl Unpin for ServiceQuotaBuilder
impl UnwindSafe for ServiceQuotaBuilder
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