Struct aws_sdk_apigateway::operation::create_base_path_mapping::builders::CreateBasePathMappingFluentBuilder
source · pub struct CreateBasePathMappingFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateBasePathMapping
.
Creates a new BasePathMapping resource.
Implementations§
source§impl CreateBasePathMappingFluentBuilder
impl CreateBasePathMappingFluentBuilder
sourcepub fn as_input(&self) -> &CreateBasePathMappingInputBuilder
pub fn as_input(&self) -> &CreateBasePathMappingInputBuilder
Access the CreateBasePathMapping as a reference.
sourcepub async fn send(
self
) -> Result<CreateBasePathMappingOutput, SdkError<CreateBasePathMappingError, HttpResponse>>
pub async fn send( self ) -> Result<CreateBasePathMappingOutput, SdkError<CreateBasePathMappingError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateBasePathMappingOutput, CreateBasePathMappingError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateBasePathMappingOutput, CreateBasePathMappingError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn domain_name(self, input: impl Into<String>) -> Self
pub fn domain_name(self, input: impl Into<String>) -> Self
The domain name of the BasePathMapping resource to create.
sourcepub fn set_domain_name(self, input: Option<String>) -> Self
pub fn set_domain_name(self, input: Option<String>) -> Self
The domain name of the BasePathMapping resource to create.
sourcepub fn get_domain_name(&self) -> &Option<String>
pub fn get_domain_name(&self) -> &Option<String>
The domain name of the BasePathMapping resource to create.
sourcepub fn base_path(self, input: impl Into<String>) -> Self
pub fn base_path(self, input: impl Into<String>) -> Self
The base path name that callers of the API must provide as part of the URL after the domain name. This value must be unique for all of the mappings across a single API. Specify '(none)' if you do not want callers to specify a base path name after the domain name.
sourcepub fn set_base_path(self, input: Option<String>) -> Self
pub fn set_base_path(self, input: Option<String>) -> Self
The base path name that callers of the API must provide as part of the URL after the domain name. This value must be unique for all of the mappings across a single API. Specify '(none)' if you do not want callers to specify a base path name after the domain name.
sourcepub fn get_base_path(&self) -> &Option<String>
pub fn get_base_path(&self) -> &Option<String>
The base path name that callers of the API must provide as part of the URL after the domain name. This value must be unique for all of the mappings across a single API. Specify '(none)' if you do not want callers to specify a base path name after the domain name.
sourcepub fn rest_api_id(self, input: impl Into<String>) -> Self
pub fn rest_api_id(self, input: impl Into<String>) -> Self
The string identifier of the associated RestApi.
sourcepub fn set_rest_api_id(self, input: Option<String>) -> Self
pub fn set_rest_api_id(self, input: Option<String>) -> Self
The string identifier of the associated RestApi.
sourcepub fn get_rest_api_id(&self) -> &Option<String>
pub fn get_rest_api_id(&self) -> &Option<String>
The string identifier of the associated RestApi.
sourcepub fn stage(self, input: impl Into<String>) -> Self
pub fn stage(self, input: impl Into<String>) -> Self
The name of the API's stage that you want to use for this mapping. Specify '(none)' if you want callers to explicitly specify the stage name after any base path name.
Trait Implementations§
source§impl Clone for CreateBasePathMappingFluentBuilder
impl Clone for CreateBasePathMappingFluentBuilder
source§fn clone(&self) -> CreateBasePathMappingFluentBuilder
fn clone(&self) -> CreateBasePathMappingFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateBasePathMappingFluentBuilder
impl !RefUnwindSafe for CreateBasePathMappingFluentBuilder
impl Send for CreateBasePathMappingFluentBuilder
impl Sync for CreateBasePathMappingFluentBuilder
impl Unpin for CreateBasePathMappingFluentBuilder
impl !UnwindSafe for CreateBasePathMappingFluentBuilder
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