#[non_exhaustive]pub struct CreateUsagePlanInput {
pub name: Option<String>,
pub description: Option<String>,
pub api_stages: Option<Vec<ApiStage>>,
pub throttle: Option<ThrottleSettings>,
pub quota: Option<QuotaSettings>,
pub tags: Option<HashMap<String, String>>,
}Expand description
The POST request to create a usage plan with the name, description, throttle limits and quota limits, as well as the associated API stages, specified in the payload.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<String>The name of the usage plan.
description: Option<String>The description of the usage plan.
api_stages: Option<Vec<ApiStage>>The associated API stages of the usage plan.
throttle: Option<ThrottleSettings>The throttling limits of the usage plan.
quota: Option<QuotaSettings>The quota of the usage plan.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.
Implementations§
source§impl CreateUsagePlanInput
impl CreateUsagePlanInput
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the usage plan.
sourcepub fn api_stages(&self) -> &[ApiStage]
pub fn api_stages(&self) -> &[ApiStage]
The associated API stages of the usage plan.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .api_stages.is_none().
sourcepub fn throttle(&self) -> Option<&ThrottleSettings>
pub fn throttle(&self) -> Option<&ThrottleSettings>
The throttling limits of the usage plan.
sourcepub fn quota(&self) -> Option<&QuotaSettings>
pub fn quota(&self) -> Option<&QuotaSettings>
The quota of the usage plan.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.
source§impl CreateUsagePlanInput
impl CreateUsagePlanInput
sourcepub fn builder() -> CreateUsagePlanInputBuilder
pub fn builder() -> CreateUsagePlanInputBuilder
Creates a new builder-style object to manufacture CreateUsagePlanInput.
Trait Implementations§
source§impl Clone for CreateUsagePlanInput
impl Clone for CreateUsagePlanInput
source§fn clone(&self) -> CreateUsagePlanInput
fn clone(&self) -> CreateUsagePlanInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateUsagePlanInput
impl Debug for CreateUsagePlanInput
source§impl PartialEq for CreateUsagePlanInput
impl PartialEq for CreateUsagePlanInput
source§fn eq(&self, other: &CreateUsagePlanInput) -> bool
fn eq(&self, other: &CreateUsagePlanInput) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateUsagePlanInput
Auto Trait Implementations§
impl Freeze for CreateUsagePlanInput
impl RefUnwindSafe for CreateUsagePlanInput
impl Send for CreateUsagePlanInput
impl Sync for CreateUsagePlanInput
impl Unpin for CreateUsagePlanInput
impl UnwindSafe for CreateUsagePlanInput
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