#[non_exhaustive]pub struct ImportApiInputBuilder { /* private fields */ }
Expand description
A builder for ImportApiInput
.
Implementations§
source§impl ImportApiInputBuilder
impl ImportApiInputBuilder
sourcepub fn basepath(self, input: impl Into<String>) -> Self
pub fn basepath(self, input: impl Into<String>) -> Self
Specifies how to interpret the base path of the API during import. Valid values are ignore, prepend, and split. The default value is ignore. To learn more, see Set the OpenAPI basePath Property. Supported only for HTTP APIs.
sourcepub fn set_basepath(self, input: Option<String>) -> Self
pub fn set_basepath(self, input: Option<String>) -> Self
Specifies how to interpret the base path of the API during import. Valid values are ignore, prepend, and split. The default value is ignore. To learn more, see Set the OpenAPI basePath Property. Supported only for HTTP APIs.
sourcepub fn get_basepath(&self) -> &Option<String>
pub fn get_basepath(&self) -> &Option<String>
Specifies how to interpret the base path of the API during import. Valid values are ignore, prepend, and split. The default value is ignore. To learn more, see Set the OpenAPI basePath Property. Supported only for HTTP APIs.
sourcepub fn body(self, input: impl Into<String>) -> Self
pub fn body(self, input: impl Into<String>) -> Self
The OpenAPI definition. Supported only for HTTP APIs.
This field is required.sourcepub fn set_body(self, input: Option<String>) -> Self
pub fn set_body(self, input: Option<String>) -> Self
The OpenAPI definition. Supported only for HTTP APIs.
sourcepub fn get_body(&self) -> &Option<String>
pub fn get_body(&self) -> &Option<String>
The OpenAPI definition. Supported only for HTTP APIs.
sourcepub fn fail_on_warnings(self, input: bool) -> Self
pub fn fail_on_warnings(self, input: bool) -> Self
Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered.
sourcepub fn set_fail_on_warnings(self, input: Option<bool>) -> Self
pub fn set_fail_on_warnings(self, input: Option<bool>) -> Self
Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered.
sourcepub fn get_fail_on_warnings(&self) -> &Option<bool>
pub fn get_fail_on_warnings(&self) -> &Option<bool>
Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered.
sourcepub fn build(self) -> Result<ImportApiInput, BuildError>
pub fn build(self) -> Result<ImportApiInput, BuildError>
Consumes the builder and constructs a ImportApiInput
.
source§impl ImportApiInputBuilder
impl ImportApiInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ImportApiOutput, SdkError<ImportApiError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ImportApiOutput, SdkError<ImportApiError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ImportApiInputBuilder
impl Clone for ImportApiInputBuilder
source§fn clone(&self) -> ImportApiInputBuilder
fn clone(&self) -> ImportApiInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImportApiInputBuilder
impl Debug for ImportApiInputBuilder
source§impl Default for ImportApiInputBuilder
impl Default for ImportApiInputBuilder
source§fn default() -> ImportApiInputBuilder
fn default() -> ImportApiInputBuilder
source§impl PartialEq for ImportApiInputBuilder
impl PartialEq for ImportApiInputBuilder
source§fn eq(&self, other: &ImportApiInputBuilder) -> bool
fn eq(&self, other: &ImportApiInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.