Struct aws_sdk_comprehend::output::detect_syntax_output::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for DetectSyntaxOutput.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn syntax_tokens(self, input: SyntaxToken) -> Self
pub fn syntax_tokens(self, input: SyntaxToken) -> Self
Appends an item to syntax_tokens.
To override the contents of this collection use set_syntax_tokens.
A collection of syntax tokens describing the text. For each token, the response provides the text, the token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that the token is correct. For a list of token types, see Syntax in the Comprehend Developer Guide.
sourcepub fn set_syntax_tokens(self, input: Option<Vec<SyntaxToken>>) -> Self
pub fn set_syntax_tokens(self, input: Option<Vec<SyntaxToken>>) -> Self
A collection of syntax tokens describing the text. For each token, the response provides the text, the token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that the token is correct. For a list of token types, see Syntax in the Comprehend Developer Guide.
sourcepub fn build(self) -> DetectSyntaxOutput
pub fn build(self) -> DetectSyntaxOutput
Consumes the builder and constructs a DetectSyntaxOutput.