1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`source_environment_id(impl Into<String>)`](crate::operation::swap_environment_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder::source_environment_id) / [`set_source_environment_id(Option<String>)`](crate::operation::swap_environment_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder::set_source_environment_id):<br>required: **false**<br><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><br>
    ///   - [`source_environment_name(impl Into<String>)`](crate::operation::swap_environment_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder::source_environment_name) / [`set_source_environment_name(Option<String>)`](crate::operation::swap_environment_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder::set_source_environment_name):<br>required: **false**<br><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><br>
    ///   - [`destination_environment_id(impl Into<String>)`](crate::operation::swap_environment_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder::destination_environment_id) / [`set_destination_environment_id(Option<String>)`](crate::operation::swap_environment_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder::set_destination_environment_id):<br>required: **false**<br><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><br>
    ///   - [`destination_environment_name(impl Into<String>)`](crate::operation::swap_environment_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder::destination_environment_name) / [`set_destination_environment_name(Option<String>)`](crate::operation::swap_environment_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder::set_destination_environment_name):<br>required: **false**<br><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><br>
    /// - On success, responds with [`SwapEnvironmentCnamEsOutput`](crate::operation::swap_environment_cnames::SwapEnvironmentCnamEsOutput)
    /// - On failure, responds with [`SdkError<SwapEnvironmentCNAMEsError>`](crate::operation::swap_environment_cnames::SwapEnvironmentCNAMEsError)
    pub fn swap_environment_cnames(&self) -> crate::operation::swap_environment_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder {
        crate::operation::swap_environment_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder::new(self.handle.clone())
    }
}