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