Struct aws_sdk_apigateway::operation::create_usage_plan::builders::CreateUsagePlanFluentBuilder
source · pub struct CreateUsagePlanFluentBuilder { /* 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 CreateUsagePlanFluentBuilder
impl CreateUsagePlanFluentBuilder
sourcepub fn as_input(&self) -> &CreateUsagePlanInputBuilder
pub fn as_input(&self) -> &CreateUsagePlanInputBuilder
Access the CreateUsagePlan as a reference.
sourcepub async fn send(
self
) -> Result<CreateUsagePlanOutput, SdkError<CreateUsagePlanError, HttpResponse>>
pub async fn send( self ) -> Result<CreateUsagePlanOutput, SdkError<CreateUsagePlanError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<CreateUsagePlanOutput, CreateUsagePlanError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateUsagePlanOutput, CreateUsagePlanError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
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 get_api_stages(&self) -> &Option<Vec<ApiStage>>
pub fn get_api_stages(&self) -> &Option<Vec<ApiStage>>
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 get_throttle(&self) -> &Option<ThrottleSettings>
pub fn get_throttle(&self) -> &Option<ThrottleSettings>
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.
sourcepub fn get_quota(&self) -> &Option<QuotaSettings>
pub fn get_quota(&self) -> &Option<QuotaSettings>
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.
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 CreateUsagePlanFluentBuilder
impl Clone for CreateUsagePlanFluentBuilder
source§fn clone(&self) -> CreateUsagePlanFluentBuilder
fn clone(&self) -> CreateUsagePlanFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more