aws_sdk_mturk/client/get_hit.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 [`GetHIT`](crate::operation::get_hit::builders::GetHITFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`hit_id(impl Into<String>)`](crate::operation::get_hit::builders::GetHITFluentBuilder::hit_id) / [`set_hit_id(Option<String>)`](crate::operation::get_hit::builders::GetHITFluentBuilder::set_hit_id):<br>required: **true**<br><p>The ID of the HIT to be retrieved.</p><br>
7 /// - On success, responds with [`GetHitOutput`](crate::operation::get_hit::GetHitOutput) with field(s):
8 /// - [`hit(Option<Hit>)`](crate::operation::get_hit::GetHitOutput::hit): <p>Contains the requested HIT data.</p>
9 /// - On failure, responds with [`SdkError<GetHITError>`](crate::operation::get_hit::GetHITError)
10 pub fn get_hit(&self) -> crate::operation::get_hit::builders::GetHITFluentBuilder {
11 crate::operation::get_hit::builders::GetHITFluentBuilder::new(self.handle.clone())
12 }
13}