#[non_exhaustive]pub struct ReimportApiInputBuilder { /* private fields */ }
Expand description
A builder for ReimportApiInput
.
Implementations§
source§impl ReimportApiInputBuilder
impl ReimportApiInputBuilder
sourcepub fn set_api_id(self, input: Option<String>) -> Self
pub fn set_api_id(self, input: Option<String>) -> Self
The API identifier.
sourcepub fn get_api_id(&self) -> &Option<String>
pub fn get_api_id(&self) -> &Option<String>
The API identifier.
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.
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<ReimportApiInput, BuildError>
pub fn build(self) -> Result<ReimportApiInput, BuildError>
Consumes the builder and constructs a ReimportApiInput
.
source§impl ReimportApiInputBuilder
impl ReimportApiInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ReimportApiOutput, SdkError<ReimportApiError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ReimportApiOutput, SdkError<ReimportApiError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ReimportApiInputBuilder
impl Clone for ReimportApiInputBuilder
source§fn clone(&self) -> ReimportApiInputBuilder
fn clone(&self) -> ReimportApiInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReimportApiInputBuilder
impl Debug for ReimportApiInputBuilder
source§impl Default for ReimportApiInputBuilder
impl Default for ReimportApiInputBuilder
source§fn default() -> ReimportApiInputBuilder
fn default() -> ReimportApiInputBuilder
source§impl PartialEq<ReimportApiInputBuilder> for ReimportApiInputBuilder
impl PartialEq<ReimportApiInputBuilder> for ReimportApiInputBuilder
source§fn eq(&self, other: &ReimportApiInputBuilder) -> bool
fn eq(&self, other: &ReimportApiInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.