#[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.
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.
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.
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.
This field is required.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 for ImportRestApiInputBuilder
impl PartialEq 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 ==.impl StructuralPartialEq for ImportRestApiInputBuilder
Auto Trait Implementations§
impl Freeze for ImportRestApiInputBuilder
impl RefUnwindSafe for ImportRestApiInputBuilder
impl Send for ImportRestApiInputBuilder
impl Sync for ImportRestApiInputBuilder
impl Unpin for ImportRestApiInputBuilder
impl UnwindSafe for ImportRestApiInputBuilder
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