Struct aws_sdk_elasticbeanstalk::operation::restart_app_server::builders::RestartAppServerFluentBuilder
source · pub struct RestartAppServerFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to RestartAppServer
.
Causes the environment to restart the application container server running on each Amazon EC2 instance.
Implementations§
source§impl RestartAppServerFluentBuilder
impl RestartAppServerFluentBuilder
sourcepub fn as_input(&self) -> &RestartAppServerInputBuilder
pub fn as_input(&self) -> &RestartAppServerInputBuilder
Access the RestartAppServer as a reference.
sourcepub async fn send(
self
) -> Result<RestartAppServerOutput, SdkError<RestartAppServerError, HttpResponse>>
pub async fn send( self ) -> Result<RestartAppServerOutput, SdkError<RestartAppServerError, 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 async fn customize(
self
) -> Result<CustomizableOperation<RestartAppServerOutput, RestartAppServerError>, SdkError<RestartAppServerError>>
pub async fn customize( self ) -> Result<CustomizableOperation<RestartAppServerOutput, RestartAppServerError>, SdkError<RestartAppServerError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn environment_id(self, input: impl Into<String>) -> Self
pub fn environment_id(self, input: impl Into<String>) -> Self
The ID of the environment to restart the server for.
Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
error.
sourcepub fn set_environment_id(self, input: Option<String>) -> Self
pub fn set_environment_id(self, input: Option<String>) -> Self
The ID of the environment to restart the server for.
Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
error.
sourcepub fn get_environment_id(&self) -> &Option<String>
pub fn get_environment_id(&self) -> &Option<String>
The ID of the environment to restart the server for.
Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
error.
sourcepub fn environment_name(self, input: impl Into<String>) -> Self
pub fn environment_name(self, input: impl Into<String>) -> Self
The name of the environment to restart the server for.
Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
error.
sourcepub fn set_environment_name(self, input: Option<String>) -> Self
pub fn set_environment_name(self, input: Option<String>) -> Self
The name of the environment to restart the server for.
Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
error.
sourcepub fn get_environment_name(&self) -> &Option<String>
pub fn get_environment_name(&self) -> &Option<String>
The name of the environment to restart the server for.
Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
error.
Trait Implementations§
source§impl Clone for RestartAppServerFluentBuilder
impl Clone for RestartAppServerFluentBuilder
source§fn clone(&self) -> RestartAppServerFluentBuilder
fn clone(&self) -> RestartAppServerFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more