aws_sdk_mturk/client/
get_assignment.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetAssignment`](crate::operation::get_assignment::builders::GetAssignmentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`assignment_id(impl Into<String>)`](crate::operation::get_assignment::builders::GetAssignmentFluentBuilder::assignment_id) / [`set_assignment_id(Option<String>)`](crate::operation::get_assignment::builders::GetAssignmentFluentBuilder::set_assignment_id):<br>required: **true**<br><p>The ID of the Assignment to be retrieved.</p><br>
7    /// - On success, responds with [`GetAssignmentOutput`](crate::operation::get_assignment::GetAssignmentOutput) with field(s):
8    ///   - [`assignment(Option<Assignment>)`](crate::operation::get_assignment::GetAssignmentOutput::assignment): <p>The assignment. The response includes one Assignment element.</p>
9    ///   - [`hit(Option<Hit>)`](crate::operation::get_assignment::GetAssignmentOutput::hit): <p>The HIT associated with this assignment. The response includes one HIT element.</p>
10    /// - On failure, responds with [`SdkError<GetAssignmentError>`](crate::operation::get_assignment::GetAssignmentError)
11    pub fn get_assignment(&self) -> crate::operation::get_assignment::builders::GetAssignmentFluentBuilder {
12        crate::operation::get_assignment::builders::GetAssignmentFluentBuilder::new(self.handle.clone())
13    }
14}