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 [`DetectEntitiesV2`](crate::operation::detect_entities_v2::builders::DetectEntitiesV2FluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`text(impl Into<String>)`](crate::operation::detect_entities_v2::builders::DetectEntitiesV2FluentBuilder::text) / [`set_text(Option<String>)`](crate::operation::detect_entities_v2::builders::DetectEntitiesV2FluentBuilder::set_text):<br>required: **true**<br><p>A UTF-8 string containing the clinical content being examined for entities.</p><br>
    /// - On success, responds with [`DetectEntitiesV2Output`](crate::operation::detect_entities_v2::DetectEntitiesV2Output) with field(s):
    ///   - [`entities(Vec::<Entity>)`](crate::operation::detect_entities_v2::DetectEntitiesV2Output::entities): <p>The collection of medical entities extracted from the input text and their associated information. For each entity, the response provides the entity text, the entity category, where the entity text begins and ends, and the level of confidence in the detection and analysis. Attributes and traits of the entity are also returned.</p>
    ///   - [`unmapped_attributes(Option<Vec::<UnmappedAttribute>>)`](crate::operation::detect_entities_v2::DetectEntitiesV2Output::unmapped_attributes): <p>Attributes extracted from the input text that couldn't be related to an entity.</p>
    ///   - [`pagination_token(Option<String>)`](crate::operation::detect_entities_v2::DetectEntitiesV2Output::pagination_token): <p>If the result to the <code>DetectEntitiesV2</code> operation was truncated, include the <code>PaginationToken</code> to fetch the next page of entities.</p>
    ///   - [`model_version(String)`](crate::operation::detect_entities_v2::DetectEntitiesV2Output::model_version): <p>The version of the model used to analyze the documents. The version number looks like X.X.X. You can use this information to track the model used for a particular batch of documents.</p>
    /// - On failure, responds with [`SdkError<DetectEntitiesV2Error>`](crate::operation::detect_entities_v2::DetectEntitiesV2Error)
    pub fn detect_entities_v2(&self) -> crate::operation::detect_entities_v2::builders::DetectEntitiesV2FluentBuilder {
        crate::operation::detect_entities_v2::builders::DetectEntitiesV2FluentBuilder::new(self.handle.clone())
    }
}