// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`SwapEnvironmentCNAMEs`](crate::operation::swap_environment_cnam_es::builders::SwapEnvironmentCNAMEsFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`source_environment_id(impl ::std::convert::Into<String>)`](crate::operation::swap_environment_cnam_es::builders::SwapEnvironmentCNAMEsFluentBuilder::source_environment_id) / [`set_source_environment_id(Option<String>)`](crate::operation::swap_environment_cnam_es::builders::SwapEnvironmentCNAMEsFluentBuilder::set_source_environment_id): <p>The ID of the source environment.</p> <p> Condition: You must specify at least the <code>SourceEnvironmentID</code> or the <code>SourceEnvironmentName</code>. You may also specify both. If you specify the <code>SourceEnvironmentId</code>, you must specify the <code>DestinationEnvironmentId</code>. </p>
/// - [`source_environment_name(impl ::std::convert::Into<String>)`](crate::operation::swap_environment_cnam_es::builders::SwapEnvironmentCNAMEsFluentBuilder::source_environment_name) / [`set_source_environment_name(Option<String>)`](crate::operation::swap_environment_cnam_es::builders::SwapEnvironmentCNAMEsFluentBuilder::set_source_environment_name): <p>The name of the source environment.</p> <p> Condition: You must specify at least the <code>SourceEnvironmentID</code> or the <code>SourceEnvironmentName</code>. You may also specify both. If you specify the <code>SourceEnvironmentName</code>, you must specify the <code>DestinationEnvironmentName</code>. </p>
/// - [`destination_environment_id(impl ::std::convert::Into<String>)`](crate::operation::swap_environment_cnam_es::builders::SwapEnvironmentCNAMEsFluentBuilder::destination_environment_id) / [`set_destination_environment_id(Option<String>)`](crate::operation::swap_environment_cnam_es::builders::SwapEnvironmentCNAMEsFluentBuilder::set_destination_environment_id): <p>The ID of the destination environment.</p> <p> Condition: You must specify at least the <code>DestinationEnvironmentID</code> or the <code>DestinationEnvironmentName</code>. You may also specify both. You must specify the <code>SourceEnvironmentId</code> with the <code>DestinationEnvironmentId</code>. </p>
/// - [`destination_environment_name(impl ::std::convert::Into<String>)`](crate::operation::swap_environment_cnam_es::builders::SwapEnvironmentCNAMEsFluentBuilder::destination_environment_name) / [`set_destination_environment_name(Option<String>)`](crate::operation::swap_environment_cnam_es::builders::SwapEnvironmentCNAMEsFluentBuilder::set_destination_environment_name): <p>The name of the destination environment.</p> <p> Condition: You must specify at least the <code>DestinationEnvironmentID</code> or the <code>DestinationEnvironmentName</code>. You may also specify both. You must specify the <code>SourceEnvironmentName</code> with the <code>DestinationEnvironmentName</code>. </p>
/// - On success, responds with [`SwapEnvironmentCnamEsOutput`](crate::operation::swap_environment_cnam_es::SwapEnvironmentCnamEsOutput)
/// - On failure, responds with [`SdkError<SwapEnvironmentCNAMEsError>`](crate::operation::swap_environment_cnam_es::SwapEnvironmentCNAMEsError)
pub fn swap_environment_cnam_es(
&self,
) -> crate::operation::swap_environment_cnam_es::builders::SwapEnvironmentCNAMEsFluentBuilder
{
crate::operation::swap_environment_cnam_es::builders::SwapEnvironmentCNAMEsFluentBuilder::new(self.handle.clone())
}
}