Struct aws_sdk_elasticbeanstalk::operation::swap_environment_cnames::builders::SwapEnvironmentCnamEsInputBuilder
source · #[non_exhaustive]pub struct SwapEnvironmentCnamEsInputBuilder { /* private fields */ }Expand description
A builder for SwapEnvironmentCnamEsInput.
Implementations§
source§impl SwapEnvironmentCnamEsInputBuilder
impl SwapEnvironmentCnamEsInputBuilder
sourcepub fn source_environment_id(self, input: impl Into<String>) -> Self
pub fn source_environment_id(self, input: impl Into<String>) -> Self
The ID of the source environment.
Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentId, you must specify the DestinationEnvironmentId.
sourcepub fn set_source_environment_id(self, input: Option<String>) -> Self
pub fn set_source_environment_id(self, input: Option<String>) -> Self
The ID of the source environment.
Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentId, you must specify the DestinationEnvironmentId.
sourcepub fn get_source_environment_id(&self) -> &Option<String>
pub fn get_source_environment_id(&self) -> &Option<String>
The ID of the source environment.
Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentId, you must specify the DestinationEnvironmentId.
sourcepub fn source_environment_name(self, input: impl Into<String>) -> Self
pub fn source_environment_name(self, input: impl Into<String>) -> Self
The name of the source environment.
Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentName, you must specify the DestinationEnvironmentName.
sourcepub fn set_source_environment_name(self, input: Option<String>) -> Self
pub fn set_source_environment_name(self, input: Option<String>) -> Self
The name of the source environment.
Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentName, you must specify the DestinationEnvironmentName.
sourcepub fn get_source_environment_name(&self) -> &Option<String>
pub fn get_source_environment_name(&self) -> &Option<String>
The name of the source environment.
Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentName, you must specify the DestinationEnvironmentName.
sourcepub fn destination_environment_id(self, input: impl Into<String>) -> Self
pub fn destination_environment_id(self, input: impl Into<String>) -> Self
The ID of the destination environment.
Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentId with the DestinationEnvironmentId.
sourcepub fn set_destination_environment_id(self, input: Option<String>) -> Self
pub fn set_destination_environment_id(self, input: Option<String>) -> Self
The ID of the destination environment.
Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentId with the DestinationEnvironmentId.
sourcepub fn get_destination_environment_id(&self) -> &Option<String>
pub fn get_destination_environment_id(&self) -> &Option<String>
The ID of the destination environment.
Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentId with the DestinationEnvironmentId.
sourcepub fn destination_environment_name(self, input: impl Into<String>) -> Self
pub fn destination_environment_name(self, input: impl Into<String>) -> Self
The name of the destination environment.
Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentName with the DestinationEnvironmentName.
sourcepub fn set_destination_environment_name(self, input: Option<String>) -> Self
pub fn set_destination_environment_name(self, input: Option<String>) -> Self
The name of the destination environment.
Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentName with the DestinationEnvironmentName.
sourcepub fn get_destination_environment_name(&self) -> &Option<String>
pub fn get_destination_environment_name(&self) -> &Option<String>
The name of the destination environment.
Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentName with the DestinationEnvironmentName.
sourcepub fn build(self) -> Result<SwapEnvironmentCnamEsInput, BuildError>
pub fn build(self) -> Result<SwapEnvironmentCnamEsInput, BuildError>
Consumes the builder and constructs a SwapEnvironmentCnamEsInput.
source§impl SwapEnvironmentCnamEsInputBuilder
impl SwapEnvironmentCnamEsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<SwapEnvironmentCnamEsOutput, SdkError<SwapEnvironmentCNAMEsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<SwapEnvironmentCnamEsOutput, SdkError<SwapEnvironmentCNAMEsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for SwapEnvironmentCnamEsInputBuilder
impl Clone for SwapEnvironmentCnamEsInputBuilder
source§fn clone(&self) -> SwapEnvironmentCnamEsInputBuilder
fn clone(&self) -> SwapEnvironmentCnamEsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for SwapEnvironmentCnamEsInputBuilder
impl Default for SwapEnvironmentCnamEsInputBuilder
source§fn default() -> SwapEnvironmentCnamEsInputBuilder
fn default() -> SwapEnvironmentCnamEsInputBuilder
source§impl PartialEq for SwapEnvironmentCnamEsInputBuilder
impl PartialEq for SwapEnvironmentCnamEsInputBuilder
source§fn eq(&self, other: &SwapEnvironmentCnamEsInputBuilder) -> bool
fn eq(&self, other: &SwapEnvironmentCnamEsInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SwapEnvironmentCnamEsInputBuilder
Auto Trait Implementations§
impl Freeze for SwapEnvironmentCnamEsInputBuilder
impl RefUnwindSafe for SwapEnvironmentCnamEsInputBuilder
impl Send for SwapEnvironmentCnamEsInputBuilder
impl Sync for SwapEnvironmentCnamEsInputBuilder
impl Unpin for SwapEnvironmentCnamEsInputBuilder
impl UnwindSafe for SwapEnvironmentCnamEsInputBuilder
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