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 [`GetPlace`](crate::operation::get_place::builders::GetPlaceFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`index_name(impl Into<String>)`](crate::operation::get_place::builders::GetPlaceFluentBuilder::index_name) / [`set_index_name(Option<String>)`](crate::operation::get_place::builders::GetPlaceFluentBuilder::set_index_name):<br>required: **true**<br><p>The name of the place index resource that you want to use for the search.</p><br>
    ///   - [`place_id(impl Into<String>)`](crate::operation::get_place::builders::GetPlaceFluentBuilder::place_id) / [`set_place_id(Option<String>)`](crate::operation::get_place::builders::GetPlaceFluentBuilder::set_place_id):<br>required: **true**<br><p>The identifier of the place to find.</p><br>
    ///   - [`language(impl Into<String>)`](crate::operation::get_place::builders::GetPlaceFluentBuilder::language) / [`set_language(Option<String>)`](crate::operation::get_place::builders::GetPlaceFluentBuilder::set_language):<br>required: **false**<br><p>The preferred language used to return results. The value must be a valid <a href="https://tools.ietf.org/search/bcp47">BCP 47</a> language tag, for example, <code>en</code> for English.</p> <p>This setting affects the languages used in the results, but not the results themselves. If no language is specified, or not supported for a particular result, the partner automatically chooses a language for the result.</p> <p>For an example, we'll use the Greek language. You search for a location around Athens, Greece, with the <code>language</code> parameter set to <code>en</code>. The <code>city</code> in the results will most likely be returned as <code>Athens</code>.</p> <p>If you set the <code>language</code> parameter to <code>el</code>, for Greek, then the <code>city</code> in the results will more likely be returned as <code>Αθήνα</code>.</p> <p>If the data provider does not have a value for Greek, the result will be in a language that the provider does support.</p><br>
    ///   - [`key(impl Into<String>)`](crate::operation::get_place::builders::GetPlaceFluentBuilder::key) / [`set_key(Option<String>)`](crate::operation::get_place::builders::GetPlaceFluentBuilder::set_key):<br>required: **false**<br><p>The optional <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">API key</a> to authorize the request.</p><br>
    /// - On success, responds with [`GetPlaceOutput`](crate::operation::get_place::GetPlaceOutput) with field(s):
    ///   - [`place(Option<Place>)`](crate::operation::get_place::GetPlaceOutput::place): <p>Details about the result, such as its address and position.</p>
    /// - On failure, responds with [`SdkError<GetPlaceError>`](crate::operation::get_place::GetPlaceError)
    pub fn get_place(&self) -> crate::operation::get_place::builders::GetPlaceFluentBuilder {
        crate::operation::get_place::builders::GetPlaceFluentBuilder::new(self.handle.clone())
    }
}