1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`AddGroupMember`](crate::operation::add_group_member::builders::AddGroupMemberFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`directory_id(impl Into<String>)`](crate::operation::add_group_member::builders::AddGroupMemberFluentBuilder::directory_id) / [`set_directory_id(Option<String>)`](crate::operation::add_group_member::builders::AddGroupMemberFluentBuilder::set_directory_id):<br>required: **true**<br><p>The identifier (ID) of the directory that's associated with the group.</p><br>
    ///   - [`group_name(impl Into<String>)`](crate::operation::add_group_member::builders::AddGroupMemberFluentBuilder::group_name) / [`set_group_name(Option<String>)`](crate::operation::add_group_member::builders::AddGroupMemberFluentBuilder::set_group_name):<br>required: **true**<br><p>The name of the group.</p><br>
    ///   - [`member_name(impl Into<String>)`](crate::operation::add_group_member::builders::AddGroupMemberFluentBuilder::member_name) / [`set_member_name(Option<String>)`](crate::operation::add_group_member::builders::AddGroupMemberFluentBuilder::set_member_name):<br>required: **true**<br><p>The <code>SAMAccountName</code> of the user, group, or computer to add as a group member.</p><br>
    ///   - [`member_realm(impl Into<String>)`](crate::operation::add_group_member::builders::AddGroupMemberFluentBuilder::member_realm) / [`set_member_realm(Option<String>)`](crate::operation::add_group_member::builders::AddGroupMemberFluentBuilder::set_member_realm):<br>required: **false**<br><p>The domain name that's associated with the group member. This parameter is required only when adding a member outside of your Managed Microsoft AD domain to a group inside of your Managed Microsoft AD domain. This parameter defaults to the Managed Microsoft AD domain.</p><note>  <p>This parameter is case insensitive.</p> </note><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::add_group_member::builders::AddGroupMemberFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::add_group_member::builders::AddGroupMemberFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique and case-sensitive identifier that you provide to make sure the idempotency of the request, so multiple identical calls have the same effect as one single call.</p> <p>A client token is valid for 8 hours after the first request that uses it completes. After 8 hours, any request with the same client token is treated as a new request. If the request succeeds, any future uses of that token will be idempotent for another 8 hours.</p> <p>If you submit a request with the same client token but change one of the other parameters within the 8-hour idempotency window, Directory Service Data returns an <code>ConflictException</code>.</p><note>  <p>This parameter is optional when using the CLI or SDK.</p> </note><br>
    /// - On success, responds with [`AddGroupMemberOutput`](crate::operation::add_group_member::AddGroupMemberOutput)
    /// - On failure, responds with [`SdkError<AddGroupMemberError>`](crate::operation::add_group_member::AddGroupMemberError)
    pub fn add_group_member(&self) -> crate::operation::add_group_member::builders::AddGroupMemberFluentBuilder {
        crate::operation::add_group_member::builders::AddGroupMemberFluentBuilder::new(self.handle.clone())
    }
}