#[non_exhaustive]pub struct GetExportInputBuilder { /* private fields */ }
Expand description
A builder for GetExportInput
.
Implementations§
source§impl GetExportInputBuilder
impl GetExportInputBuilder
sourcepub fn rest_api_id(self, input: impl Into<String>) -> Self
pub fn rest_api_id(self, input: impl Into<String>) -> Self
The string identifier of the associated RestApi.
This field is required.sourcepub fn set_rest_api_id(self, input: Option<String>) -> Self
pub fn set_rest_api_id(self, input: Option<String>) -> Self
The string identifier of the associated RestApi.
sourcepub fn get_rest_api_id(&self) -> &Option<String>
pub fn get_rest_api_id(&self) -> &Option<String>
The string identifier of the associated RestApi.
sourcepub fn stage_name(self, input: impl Into<String>) -> Self
pub fn stage_name(self, input: impl Into<String>) -> Self
The name of the Stage that will be exported.
This field is required.sourcepub fn set_stage_name(self, input: Option<String>) -> Self
pub fn set_stage_name(self, input: Option<String>) -> Self
The name of the Stage that will be exported.
sourcepub fn get_stage_name(&self) -> &Option<String>
pub fn get_stage_name(&self) -> &Option<String>
The name of the Stage that will be exported.
sourcepub fn export_type(self, input: impl Into<String>) -> Self
pub fn export_type(self, input: impl Into<String>) -> Self
The type of export. Acceptable values are 'oas30' for OpenAPI 3.0.x and 'swagger' for Swagger/OpenAPI 2.0.
This field is required.sourcepub fn set_export_type(self, input: Option<String>) -> Self
pub fn set_export_type(self, input: Option<String>) -> Self
The type of export. Acceptable values are 'oas30' for OpenAPI 3.0.x and 'swagger' for Swagger/OpenAPI 2.0.
sourcepub fn get_export_type(&self) -> &Option<String>
pub fn get_export_type(&self) -> &Option<String>
The type of export. Acceptable values are 'oas30' for OpenAPI 3.0.x and 'swagger' for Swagger/OpenAPI 2.0.
sourcepub fn parameters(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn parameters(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to parameters
.
To override the contents of this collection use set_parameters
.
A key-value map of query string parameters that specify properties of the export, depending on the requested exportType
. For exportType
oas30
and swagger
, any combination of the following parameters are supported: extensions='integrations'
or extensions='apigateway'
will export the API with x-amazon-apigateway-integration extensions. extensions='authorizers'
will export the API with x-amazon-apigateway-authorizer extensions. postman
will export the API with Postman extensions, allowing for import to the Postman tool
sourcepub fn set_parameters(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_parameters(self, input: Option<HashMap<String, String>>) -> Self
A key-value map of query string parameters that specify properties of the export, depending on the requested exportType
. For exportType
oas30
and swagger
, any combination of the following parameters are supported: extensions='integrations'
or extensions='apigateway'
will export the API with x-amazon-apigateway-integration extensions. extensions='authorizers'
will export the API with x-amazon-apigateway-authorizer extensions. postman
will export the API with Postman extensions, allowing for import to the Postman tool
sourcepub fn get_parameters(&self) -> &Option<HashMap<String, String>>
pub fn get_parameters(&self) -> &Option<HashMap<String, String>>
A key-value map of query string parameters that specify properties of the export, depending on the requested exportType
. For exportType
oas30
and swagger
, any combination of the following parameters are supported: extensions='integrations'
or extensions='apigateway'
will export the API with x-amazon-apigateway-integration extensions. extensions='authorizers'
will export the API with x-amazon-apigateway-authorizer extensions. postman
will export the API with Postman extensions, allowing for import to the Postman tool
sourcepub fn accepts(self, input: impl Into<String>) -> Self
pub fn accepts(self, input: impl Into<String>) -> Self
The content-type of the export, for example application/json
. Currently application/json
and application/yaml
are supported for exportType
ofoas30
and swagger
. This should be specified in the Accept
header for direct API requests.
sourcepub fn set_accepts(self, input: Option<String>) -> Self
pub fn set_accepts(self, input: Option<String>) -> Self
The content-type of the export, for example application/json
. Currently application/json
and application/yaml
are supported for exportType
ofoas30
and swagger
. This should be specified in the Accept
header for direct API requests.
sourcepub fn get_accepts(&self) -> &Option<String>
pub fn get_accepts(&self) -> &Option<String>
The content-type of the export, for example application/json
. Currently application/json
and application/yaml
are supported for exportType
ofoas30
and swagger
. This should be specified in the Accept
header for direct API requests.
sourcepub fn build(self) -> Result<GetExportInput, BuildError>
pub fn build(self) -> Result<GetExportInput, BuildError>
Consumes the builder and constructs a GetExportInput
.
source§impl GetExportInputBuilder
impl GetExportInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetExportOutput, SdkError<GetExportError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetExportOutput, SdkError<GetExportError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetExportInputBuilder
impl Clone for GetExportInputBuilder
source§fn clone(&self) -> GetExportInputBuilder
fn clone(&self) -> GetExportInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetExportInputBuilder
impl Debug for GetExportInputBuilder
source§impl Default for GetExportInputBuilder
impl Default for GetExportInputBuilder
source§fn default() -> GetExportInputBuilder
fn default() -> GetExportInputBuilder
source§impl PartialEq for GetExportInputBuilder
impl PartialEq for GetExportInputBuilder
source§fn eq(&self, other: &GetExportInputBuilder) -> bool
fn eq(&self, other: &GetExportInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.