#[non_exhaustive]pub struct ImportRestApiInputBuilder { /* private fields */ }
Expand description
A builder for ImportRestApiInput
.
Implementations§
source§impl ImportRestApiInputBuilder
impl ImportRestApiInputBuilder
sourcepub fn fail_on_warnings(self, input: bool) -> Self
pub fn fail_on_warnings(self, input: bool) -> Self
A query parameter to indicate whether to rollback the API creation (true
) or not (false
) when a warning is encountered. The default value is false
.
sourcepub fn set_fail_on_warnings(self, input: Option<bool>) -> Self
pub fn set_fail_on_warnings(self, input: Option<bool>) -> Self
A query parameter to indicate whether to rollback the API creation (true
) or not (false
) when a warning is encountered. The default value is false
.
sourcepub fn get_fail_on_warnings(&self) -> &Option<bool>
pub fn get_fail_on_warnings(&self) -> &Option<bool>
A query parameter to indicate whether to rollback the API creation (true
) or not (false
) when a warning is encountered. The default value is false
.
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 context-specific query string parameters specifying the behavior of different API importing operations. The following shows operation-specific parameters and their supported values.
To exclude DocumentationParts from the import, set parameters
as ignore=documentation
.
To configure the endpoint type, set parameters
as endpointConfigurationTypes=EDGE
, endpointConfigurationTypes=REGIONAL
, or endpointConfigurationTypes=PRIVATE
. The default endpoint type is EDGE
.
To handle imported basepath
, set parameters
as basepath=ignore
, basepath=prepend
or basepath=split
.
For example, the AWS CLI command to exclude documentation from the imported API is:
The AWS CLI command to set the regional endpoint on the imported API is:
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 context-specific query string parameters specifying the behavior of different API importing operations. The following shows operation-specific parameters and their supported values.
To exclude DocumentationParts from the import, set parameters
as ignore=documentation
.
To configure the endpoint type, set parameters
as endpointConfigurationTypes=EDGE
, endpointConfigurationTypes=REGIONAL
, or endpointConfigurationTypes=PRIVATE
. The default endpoint type is EDGE
.
To handle imported basepath
, set parameters
as basepath=ignore
, basepath=prepend
or basepath=split
.
For example, the AWS CLI command to exclude documentation from the imported API is:
The AWS CLI command to set the regional endpoint on the imported API is:
sourcepub fn get_parameters(&self) -> &Option<HashMap<String, String>>
pub fn get_parameters(&self) -> &Option<HashMap<String, String>>
A key-value map of context-specific query string parameters specifying the behavior of different API importing operations. The following shows operation-specific parameters and their supported values.
To exclude DocumentationParts from the import, set parameters
as ignore=documentation
.
To configure the endpoint type, set parameters
as endpointConfigurationTypes=EDGE
, endpointConfigurationTypes=REGIONAL
, or endpointConfigurationTypes=PRIVATE
. The default endpoint type is EDGE
.
To handle imported basepath
, set parameters
as basepath=ignore
, basepath=prepend
or basepath=split
.
For example, the AWS CLI command to exclude documentation from the imported API is:
The AWS CLI command to set the regional endpoint on the imported API is:
sourcepub fn body(self, input: Blob) -> Self
pub fn body(self, input: Blob) -> Self
The POST request body containing external API definitions. Currently, only OpenAPI definition JSON/YAML files are supported. The maximum size of the API definition file is 6MB.
sourcepub fn set_body(self, input: Option<Blob>) -> Self
pub fn set_body(self, input: Option<Blob>) -> Self
The POST request body containing external API definitions. Currently, only OpenAPI definition JSON/YAML files are supported. The maximum size of the API definition file is 6MB.
sourcepub fn get_body(&self) -> &Option<Blob>
pub fn get_body(&self) -> &Option<Blob>
The POST request body containing external API definitions. Currently, only OpenAPI definition JSON/YAML files are supported. The maximum size of the API definition file is 6MB.
sourcepub fn build(self) -> Result<ImportRestApiInput, BuildError>
pub fn build(self) -> Result<ImportRestApiInput, BuildError>
Consumes the builder and constructs a ImportRestApiInput
.
source§impl ImportRestApiInputBuilder
impl ImportRestApiInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ImportRestApiOutput, SdkError<ImportRestApiError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ImportRestApiOutput, SdkError<ImportRestApiError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ImportRestApiInputBuilder
impl Clone for ImportRestApiInputBuilder
source§fn clone(&self) -> ImportRestApiInputBuilder
fn clone(&self) -> ImportRestApiInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImportRestApiInputBuilder
impl Debug for ImportRestApiInputBuilder
source§impl Default for ImportRestApiInputBuilder
impl Default for ImportRestApiInputBuilder
source§fn default() -> ImportRestApiInputBuilder
fn default() -> ImportRestApiInputBuilder
source§impl PartialEq<ImportRestApiInputBuilder> for ImportRestApiInputBuilder
impl PartialEq<ImportRestApiInputBuilder> for ImportRestApiInputBuilder
source§fn eq(&self, other: &ImportRestApiInputBuilder) -> bool
fn eq(&self, other: &ImportRestApiInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.