Struct aws_sdk_apigateway::client::fluent_builders::CreateUsagePlan
source · pub struct CreateUsagePlan { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateUsagePlan
.
Creates a usage plan with the throttle and quota limits, as well as the associated API stages, specified in the payload.
Implementations§
source§impl CreateUsagePlan
impl CreateUsagePlan
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateUsagePlan, AwsResponseRetryClassifier>, SdkError<CreateUsagePlanError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateUsagePlan, AwsResponseRetryClassifier>, SdkError<CreateUsagePlanError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateUsagePlanOutput, SdkError<CreateUsagePlanError>>
pub async fn send(
self
) -> Result<CreateUsagePlanOutput, SdkError<CreateUsagePlanError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the usage plan.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the usage plan.
sourcepub fn api_stages(self, input: ApiStage) -> Self
pub fn api_stages(self, input: ApiStage) -> Self
Appends an item to apiStages
.
To override the contents of this collection use set_api_stages
.
The associated API stages of the usage plan.
sourcepub fn set_api_stages(self, input: Option<Vec<ApiStage>>) -> Self
pub fn set_api_stages(self, input: Option<Vec<ApiStage>>) -> Self
The associated API stages of the usage plan.
sourcepub fn throttle(self, input: ThrottleSettings) -> Self
pub fn throttle(self, input: ThrottleSettings) -> Self
The throttling limits of the usage plan.
sourcepub fn set_throttle(self, input: Option<ThrottleSettings>) -> Self
pub fn set_throttle(self, input: Option<ThrottleSettings>) -> Self
The throttling limits of the usage plan.
sourcepub fn quota(self, input: QuotaSettings) -> Self
pub fn quota(self, input: QuotaSettings) -> Self
The quota of the usage plan.
sourcepub fn set_quota(self, input: Option<QuotaSettings>) -> Self
pub fn set_quota(self, input: Option<QuotaSettings>) -> Self
The quota of the usage plan.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
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.
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.
Trait Implementations§
source§impl Clone for CreateUsagePlan
impl Clone for CreateUsagePlan
source§fn clone(&self) -> CreateUsagePlan
fn clone(&self) -> CreateUsagePlan
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more