pub struct ExportApiFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ExportApi
.
Implementations§
source§impl ExportApiFluentBuilder
impl ExportApiFluentBuilder
sourcepub fn as_input(&self) -> &ExportApiInputBuilder
pub fn as_input(&self) -> &ExportApiInputBuilder
Access the ExportApi as a reference.
sourcepub async fn send(
self
) -> Result<ExportApiOutput, SdkError<ExportApiError, HttpResponse>>
pub async fn send( self ) -> Result<ExportApiOutput, SdkError<ExportApiError, 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<ExportApiOutput, ExportApiError, Self>
pub fn customize( self ) -> CustomizableOperation<ExportApiOutput, ExportApiError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_api_id(&self) -> &Option<String>
pub fn get_api_id(&self) -> &Option<String>
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 get_export_version(&self) -> &Option<String>
pub fn get_export_version(&self) -> &Option<String>
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 get_include_extensions(&self) -> &Option<bool>
pub fn get_include_extensions(&self) -> &Option<bool>
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 get_output_type(&self) -> &Option<String>
pub fn get_output_type(&self) -> &Option<String>
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 get_specification(&self) -> &Option<String>
pub fn get_specification(&self) -> &Option<String>
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.
sourcepub fn get_stage_name(&self) -> &Option<String>
pub fn get_stage_name(&self) -> &Option<String>
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 moreAuto Trait Implementations§
impl Freeze for ExportApiFluentBuilder
impl !RefUnwindSafe for ExportApiFluentBuilder
impl Send for ExportApiFluentBuilder
impl Sync for ExportApiFluentBuilder
impl Unpin for ExportApiFluentBuilder
impl !UnwindSafe for ExportApiFluentBuilder
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