#[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 ==.impl StructuralPartialEq for ImportApiInputBuilder
Auto Trait Implementations§
impl Freeze for ImportApiInputBuilder
impl RefUnwindSafe for ImportApiInputBuilder
impl Send for ImportApiInputBuilder
impl Sync for ImportApiInputBuilder
impl Unpin for ImportApiInputBuilder
impl UnwindSafe for ImportApiInputBuilder
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