1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`MoveAccount`](crate::operation::move_account::builders::MoveAccountFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`account_id(impl Into<String>)`](crate::operation::move_account::builders::MoveAccountFluentBuilder::account_id) / [`set_account_id(Option<String>)`](crate::operation::move_account::builders::MoveAccountFluentBuilder::set_account_id):<br>required: **true**<br><p>The unique identifier (ID) of the account that you want to move.</p> <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> for an account ID string requires exactly 12 digits.</p><br>
    ///   - [`source_parent_id(impl Into<String>)`](crate::operation::move_account::builders::MoveAccountFluentBuilder::source_parent_id) / [`set_source_parent_id(Option<String>)`](crate::operation::move_account::builders::MoveAccountFluentBuilder::set_source_parent_id):<br>required: **true**<br><p>The unique identifier (ID) of the root or organizational unit that you want to move the account from.</p> <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> for a parent ID string requires one of the following:</p> <ul>  <li>   <p><b>Root</b> - A string that begins with "r-" followed by from 4 to 32 lowercase letters or digits.</p></li>  <li>   <p><b>Organizational unit (OU)</b> - A string that begins with "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that the OU is in). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.</p></li> </ul><br>
    ///   - [`destination_parent_id(impl Into<String>)`](crate::operation::move_account::builders::MoveAccountFluentBuilder::destination_parent_id) / [`set_destination_parent_id(Option<String>)`](crate::operation::move_account::builders::MoveAccountFluentBuilder::set_destination_parent_id):<br>required: **true**<br><p>The unique identifier (ID) of the root or organizational unit that you want to move the account to.</p> <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> for a parent ID string requires one of the following:</p> <ul>  <li>   <p><b>Root</b> - A string that begins with "r-" followed by from 4 to 32 lowercase letters or digits.</p></li>  <li>   <p><b>Organizational unit (OU)</b> - A string that begins with "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that the OU is in). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.</p></li> </ul><br>
    /// - On success, responds with [`MoveAccountOutput`](crate::operation::move_account::MoveAccountOutput)
    /// - On failure, responds with [`SdkError<MoveAccountError>`](crate::operation::move_account::MoveAccountError)
    pub fn move_account(&self) -> crate::operation::move_account::builders::MoveAccountFluentBuilder {
        crate::operation::move_account::builders::MoveAccountFluentBuilder::new(self.handle.clone())
    }
}