pub struct ExportApiFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ExportApi
.
Implementations§
source§impl ExportApiFluentBuilder
impl ExportApiFluentBuilder
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ExportApi, AwsResponseRetryClassifier>, SdkError<ExportApiError>>
pub async fn customize( self ) -> Result<CustomizableOperation<ExportApi, AwsResponseRetryClassifier>, SdkError<ExportApiError>>
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<ExportApiOutput, SdkError<ExportApiError>>
pub async fn send(self) -> Result<ExportApiOutput, SdkError<ExportApiError>>
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 set_api_id(self, input: Option<String>) -> Self
pub fn set_api_id(self, input: Option<String>) -> Self
The API identifier.
sourcepub fn export_version(self, input: impl Into<String>) -> Self
pub fn export_version(self, input: impl Into<String>) -> Self
The version of the API Gateway export algorithm. API Gateway uses the latest version by default. Currently, the only supported version is 1.0.
sourcepub fn set_export_version(self, input: Option<String>) -> Self
pub fn set_export_version(self, input: Option<String>) -> Self
The version of the API Gateway export algorithm. API Gateway uses the latest version by default. Currently, the only supported version is 1.0.
sourcepub fn include_extensions(self, input: bool) -> Self
pub fn include_extensions(self, input: bool) -> Self
Specifies whether to include API Gateway extensions in the exported API definition. API Gateway extensions are included by default.
sourcepub fn set_include_extensions(self, input: Option<bool>) -> Self
pub fn set_include_extensions(self, input: Option<bool>) -> Self
Specifies whether to include API Gateway extensions in the exported API definition. API Gateway extensions are included by default.
sourcepub fn output_type(self, input: impl Into<String>) -> Self
pub fn output_type(self, input: impl Into<String>) -> Self
The output type of the exported definition file. Valid values are JSON and YAML.
sourcepub fn set_output_type(self, input: Option<String>) -> Self
pub fn set_output_type(self, input: Option<String>) -> Self
The output type of the exported definition file. Valid values are JSON and YAML.
sourcepub fn specification(self, input: impl Into<String>) -> Self
pub fn specification(self, input: impl Into<String>) -> Self
The version of the API specification to use. OAS30, for OpenAPI 3.0, is the only supported value.
sourcepub fn set_specification(self, input: Option<String>) -> Self
pub fn set_specification(self, input: Option<String>) -> Self
The version of the API specification to use. OAS30, for OpenAPI 3.0, is the only supported value.
sourcepub fn stage_name(self, input: impl Into<String>) -> Self
pub fn stage_name(self, input: impl Into<String>) -> Self
The name of the API stage to export. If you don't specify this property, a representation of the latest API configuration is exported.
sourcepub fn set_stage_name(self, input: Option<String>) -> Self
pub fn set_stage_name(self, input: Option<String>) -> Self
The name of the API stage to export. If you don't specify this property, a representation of the latest API configuration is exported.
Trait Implementations§
source§impl Clone for ExportApiFluentBuilder
impl Clone for ExportApiFluentBuilder
source§fn clone(&self) -> ExportApiFluentBuilder
fn clone(&self) -> ExportApiFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more