aws_sdk_rekognition/client/
get_celebrity_info.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 [`GetCelebrityInfo`](crate::operation::get_celebrity_info::builders::GetCelebrityInfoFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`id(impl Into<String>)`](crate::operation::get_celebrity_info::builders::GetCelebrityInfoFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::get_celebrity_info::builders::GetCelebrityInfoFluentBuilder::set_id):<br>required: **true**<br><p>The ID for the celebrity. You get the celebrity ID from a call to the <code>RecognizeCelebrities</code> operation, which recognizes celebrities in an image.</p><br>
7    /// - On success, responds with [`GetCelebrityInfoOutput`](crate::operation::get_celebrity_info::GetCelebrityInfoOutput) with field(s):
8    ///   - [`urls(Option<Vec::<String>>)`](crate::operation::get_celebrity_info::GetCelebrityInfoOutput::urls): <p>An array of URLs pointing to additional celebrity information.</p>
9    ///   - [`name(Option<String>)`](crate::operation::get_celebrity_info::GetCelebrityInfoOutput::name): <p>The name of the celebrity.</p>
10    ///   - [`known_gender(Option<KnownGender>)`](crate::operation::get_celebrity_info::GetCelebrityInfoOutput::known_gender): <p>Retrieves the known gender for the celebrity.</p>
11    /// - On failure, responds with [`SdkError<GetCelebrityInfoError>`](crate::operation::get_celebrity_info::GetCelebrityInfoError)
12    pub fn get_celebrity_info(&self) -> crate::operation::get_celebrity_info::builders::GetCelebrityInfoFluentBuilder {
13        crate::operation::get_celebrity_info::builders::GetCelebrityInfoFluentBuilder::new(self.handle.clone())
14    }
15}