#[non_exhaustive]pub struct ExportApiInputBuilder { /* private fields */ }
Expand description
A builder for ExportApiInput
.
Implementations§
source§impl ExportApiInputBuilder
impl ExportApiInputBuilder
sourcepub fn api_id(self, input: impl Into<String>) -> Self
pub fn api_id(self, input: impl Into<String>) -> Self
The API identifier.
This field is required.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.
This field is required.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.
This field is required.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.
sourcepub fn build(self) -> Result<ExportApiInput, BuildError>
pub fn build(self) -> Result<ExportApiInput, BuildError>
Consumes the builder and constructs a ExportApiInput
.
source§impl ExportApiInputBuilder
impl ExportApiInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ExportApiOutput, SdkError<ExportApiError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ExportApiOutput, SdkError<ExportApiError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ExportApiInputBuilder
impl Clone for ExportApiInputBuilder
source§fn clone(&self) -> ExportApiInputBuilder
fn clone(&self) -> ExportApiInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExportApiInputBuilder
impl Debug for ExportApiInputBuilder
source§impl Default for ExportApiInputBuilder
impl Default for ExportApiInputBuilder
source§fn default() -> ExportApiInputBuilder
fn default() -> ExportApiInputBuilder
source§impl PartialEq for ExportApiInputBuilder
impl PartialEq for ExportApiInputBuilder
source§fn eq(&self, other: &ExportApiInputBuilder) -> bool
fn eq(&self, other: &ExportApiInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.