// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`AttachToIndex`](crate::operation::attach_to_index::builders::AttachToIndexFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`directory_arn(impl Into<String>)`](crate::operation::attach_to_index::builders::AttachToIndexFluentBuilder::directory_arn) / [`set_directory_arn(Option<String>)`](crate::operation::attach_to_index::builders::AttachToIndexFluentBuilder::set_directory_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the directory where the object and index exist.</p><br>
/// - [`index_reference(ObjectReference)`](crate::operation::attach_to_index::builders::AttachToIndexFluentBuilder::index_reference) / [`set_index_reference(Option<ObjectReference>)`](crate::operation::attach_to_index::builders::AttachToIndexFluentBuilder::set_index_reference):<br>required: **true**<br><p>A reference to the index that you are attaching the object to.</p><br>
/// - [`target_reference(ObjectReference)`](crate::operation::attach_to_index::builders::AttachToIndexFluentBuilder::target_reference) / [`set_target_reference(Option<ObjectReference>)`](crate::operation::attach_to_index::builders::AttachToIndexFluentBuilder::set_target_reference):<br>required: **true**<br><p>A reference to the object that you are attaching to the index.</p><br>
/// - On success, responds with [`AttachToIndexOutput`](crate::operation::attach_to_index::AttachToIndexOutput) with field(s):
/// - [`attached_object_identifier(Option<String>)`](crate::operation::attach_to_index::AttachToIndexOutput::attached_object_identifier): <p>The <code>ObjectIdentifier</code> of the object that was attached to the index.</p>
/// - On failure, responds with [`SdkError<AttachToIndexError>`](crate::operation::attach_to_index::AttachToIndexError)
pub fn attach_to_index(&self) -> crate::operation::attach_to_index::builders::AttachToIndexFluentBuilder {
crate::operation::attach_to_index::builders::AttachToIndexFluentBuilder::new(self.handle.clone())
}
}