#[non_exhaustive]pub struct QuotaContextInfoBuilder { /* private fields */ }
Expand description
A builder for QuotaContextInfo
.
Implementations§
source§impl QuotaContextInfoBuilder
impl QuotaContextInfoBuilder
sourcepub fn context_scope(self, input: QuotaContextScope) -> Self
pub fn context_scope(self, input: QuotaContextScope) -> Self
Specifies whether the quota applies to an Amazon Web Services account, or to a resource.
sourcepub fn set_context_scope(self, input: Option<QuotaContextScope>) -> Self
pub fn set_context_scope(self, input: Option<QuotaContextScope>) -> Self
Specifies whether the quota applies to an Amazon Web Services account, or to a resource.
sourcepub fn get_context_scope(&self) -> &Option<QuotaContextScope>
pub fn get_context_scope(&self) -> &Option<QuotaContextScope>
Specifies whether the quota applies to an Amazon Web Services account, or to a resource.
sourcepub fn context_scope_type(self, input: impl Into<String>) -> Self
pub fn context_scope_type(self, input: impl Into<String>) -> Self
When the ContextScope
is RESOURCE
, then this specifies the resource type of the specified resource.
sourcepub fn set_context_scope_type(self, input: Option<String>) -> Self
pub fn set_context_scope_type(self, input: Option<String>) -> Self
When the ContextScope
is RESOURCE
, then this specifies the resource type of the specified resource.
sourcepub fn get_context_scope_type(&self) -> &Option<String>
pub fn get_context_scope_type(&self) -> &Option<String>
When the ContextScope
is RESOURCE
, then this specifies the resource type of the specified resource.
sourcepub fn context_id(self, input: impl Into<String>) -> Self
pub fn context_id(self, input: impl Into<String>) -> Self
Specifies the Amazon Web Services account or resource to which the quota applies. The value in this field depends on the context scope associated with the specified service quota.
sourcepub fn set_context_id(self, input: Option<String>) -> Self
pub fn set_context_id(self, input: Option<String>) -> Self
Specifies the Amazon Web Services account or resource to which the quota applies. The value in this field depends on the context scope associated with the specified service quota.
sourcepub fn get_context_id(&self) -> &Option<String>
pub fn get_context_id(&self) -> &Option<String>
Specifies the Amazon Web Services account or resource to which the quota applies. The value in this field depends on the context scope associated with the specified service quota.
sourcepub fn build(self) -> QuotaContextInfo
pub fn build(self) -> QuotaContextInfo
Consumes the builder and constructs a QuotaContextInfo
.
Trait Implementations§
source§impl Clone for QuotaContextInfoBuilder
impl Clone for QuotaContextInfoBuilder
source§fn clone(&self) -> QuotaContextInfoBuilder
fn clone(&self) -> QuotaContextInfoBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QuotaContextInfoBuilder
impl Debug for QuotaContextInfoBuilder
source§impl Default for QuotaContextInfoBuilder
impl Default for QuotaContextInfoBuilder
source§fn default() -> QuotaContextInfoBuilder
fn default() -> QuotaContextInfoBuilder
source§impl PartialEq for QuotaContextInfoBuilder
impl PartialEq for QuotaContextInfoBuilder
source§fn eq(&self, other: &QuotaContextInfoBuilder) -> bool
fn eq(&self, other: &QuotaContextInfoBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for QuotaContextInfoBuilder
Auto Trait Implementations§
impl Freeze for QuotaContextInfoBuilder
impl RefUnwindSafe for QuotaContextInfoBuilder
impl Send for QuotaContextInfoBuilder
impl Sync for QuotaContextInfoBuilder
impl Unpin for QuotaContextInfoBuilder
impl UnwindSafe for QuotaContextInfoBuilder
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