pub struct CreateStageFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateStage
.
Creates a Stage for an API.
Implementations§
source§impl CreateStageFluentBuilder
impl CreateStageFluentBuilder
sourcepub fn as_input(&self) -> &CreateStageInputBuilder
pub fn as_input(&self) -> &CreateStageInputBuilder
Access the CreateStage as a reference.
sourcepub async fn send(
self
) -> Result<CreateStageOutput, SdkError<CreateStageError, HttpResponse>>
pub async fn send( self ) -> Result<CreateStageOutput, SdkError<CreateStageError, 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<CreateStageOutput, CreateStageError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateStageOutput, CreateStageError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn access_log_settings(self, input: AccessLogSettings) -> Self
pub fn access_log_settings(self, input: AccessLogSettings) -> Self
Settings for logging access in this stage.
sourcepub fn set_access_log_settings(self, input: Option<AccessLogSettings>) -> Self
pub fn set_access_log_settings(self, input: Option<AccessLogSettings>) -> Self
Settings for logging access in this stage.
sourcepub fn get_access_log_settings(&self) -> &Option<AccessLogSettings>
pub fn get_access_log_settings(&self) -> &Option<AccessLogSettings>
Settings for logging access in this stage.
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 auto_deploy(self, input: bool) -> Self
pub fn auto_deploy(self, input: bool) -> Self
Specifies whether updates to an API automatically trigger a new deployment. The default value is false.
sourcepub fn set_auto_deploy(self, input: Option<bool>) -> Self
pub fn set_auto_deploy(self, input: Option<bool>) -> Self
Specifies whether updates to an API automatically trigger a new deployment. The default value is false.
sourcepub fn get_auto_deploy(&self) -> &Option<bool>
pub fn get_auto_deploy(&self) -> &Option<bool>
Specifies whether updates to an API automatically trigger a new deployment. The default value is false.
sourcepub fn client_certificate_id(self, input: impl Into<String>) -> Self
pub fn client_certificate_id(self, input: impl Into<String>) -> Self
The identifier of a client certificate for a Stage. Supported only for WebSocket APIs.
sourcepub fn set_client_certificate_id(self, input: Option<String>) -> Self
pub fn set_client_certificate_id(self, input: Option<String>) -> Self
The identifier of a client certificate for a Stage. Supported only for WebSocket APIs.
sourcepub fn get_client_certificate_id(&self) -> &Option<String>
pub fn get_client_certificate_id(&self) -> &Option<String>
The identifier of a client certificate for a Stage. Supported only for WebSocket APIs.
sourcepub fn default_route_settings(self, input: RouteSettings) -> Self
pub fn default_route_settings(self, input: RouteSettings) -> Self
The default route settings for the stage.
sourcepub fn set_default_route_settings(self, input: Option<RouteSettings>) -> Self
pub fn set_default_route_settings(self, input: Option<RouteSettings>) -> Self
The default route settings for the stage.
sourcepub fn get_default_route_settings(&self) -> &Option<RouteSettings>
pub fn get_default_route_settings(&self) -> &Option<RouteSettings>
The default route settings for the stage.
sourcepub fn deployment_id(self, input: impl Into<String>) -> Self
pub fn deployment_id(self, input: impl Into<String>) -> Self
The deployment identifier of the API stage.
sourcepub fn set_deployment_id(self, input: Option<String>) -> Self
pub fn set_deployment_id(self, input: Option<String>) -> Self
The deployment identifier of the API stage.
sourcepub fn get_deployment_id(&self) -> &Option<String>
pub fn get_deployment_id(&self) -> &Option<String>
The deployment identifier of the API stage.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description for the API stage.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description for the API stage.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description for the API stage.
sourcepub fn route_settings(self, k: impl Into<String>, v: RouteSettings) -> Self
pub fn route_settings(self, k: impl Into<String>, v: RouteSettings) -> Self
Adds a key-value pair to RouteSettings
.
To override the contents of this collection use set_route_settings
.
Route settings for the stage, by routeKey.
sourcepub fn set_route_settings(
self,
input: Option<HashMap<String, RouteSettings>>
) -> Self
pub fn set_route_settings( self, input: Option<HashMap<String, RouteSettings>> ) -> Self
Route settings for the stage, by routeKey.
sourcepub fn get_route_settings(&self) -> &Option<HashMap<String, RouteSettings>>
pub fn get_route_settings(&self) -> &Option<HashMap<String, RouteSettings>>
Route settings for the stage, by routeKey.
sourcepub fn stage_name(self, input: impl Into<String>) -> Self
pub fn stage_name(self, input: impl Into<String>) -> Self
The name of the stage.
sourcepub fn set_stage_name(self, input: Option<String>) -> Self
pub fn set_stage_name(self, input: Option<String>) -> Self
The name of the stage.
sourcepub fn get_stage_name(&self) -> &Option<String>
pub fn get_stage_name(&self) -> &Option<String>
The name of the stage.
sourcepub fn stage_variables(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn stage_variables(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to StageVariables
.
To override the contents of this collection use set_stage_variables
.
A map that defines the stage variables for a Stage. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.
sourcepub fn set_stage_variables(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_stage_variables(self, input: Option<HashMap<String, String>>) -> Self
A map that defines the stage variables for a Stage. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.
sourcepub fn get_stage_variables(&self) -> &Option<HashMap<String, String>>
pub fn get_stage_variables(&self) -> &Option<HashMap<String, String>>
A map that defines the stage variables for a Stage. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.
Adds a key-value pair to Tags
.
To override the contents of this collection use set_tags
.
The collection of tags. Each tag element is associated with a given resource.
The collection of tags. Each tag element is associated with a given resource.
The collection of tags. Each tag element is associated with a given resource.
Trait Implementations§
source§impl Clone for CreateStageFluentBuilder
impl Clone for CreateStageFluentBuilder
source§fn clone(&self) -> CreateStageFluentBuilder
fn clone(&self) -> CreateStageFluentBuilder
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 CreateStageFluentBuilder
impl !RefUnwindSafe for CreateStageFluentBuilder
impl Send for CreateStageFluentBuilder
impl Sync for CreateStageFluentBuilder
impl Unpin for CreateStageFluentBuilder
impl !UnwindSafe for CreateStageFluentBuilder
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