pub struct Builder { /* private fields */ }Expand description
A builder for BatchDetectTargetedSentimentItemResult.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_index(self, input: Option<i32>) -> Self
pub fn set_index(self, input: Option<i32>) -> Self
The zero-based index of this result in the input list.
sourcepub fn entities(self, input: TargetedSentimentEntity) -> Self
pub fn entities(self, input: TargetedSentimentEntity) -> Self
Appends an item to entities.
To override the contents of this collection use set_entities.
An array of targeted sentiment entities.
sourcepub fn set_entities(self, input: Option<Vec<TargetedSentimentEntity>>) -> Self
pub fn set_entities(self, input: Option<Vec<TargetedSentimentEntity>>) -> Self
An array of targeted sentiment entities.
sourcepub fn build(self) -> BatchDetectTargetedSentimentItemResult
pub fn build(self) -> BatchDetectTargetedSentimentItemResult
Consumes the builder and constructs a BatchDetectTargetedSentimentItemResult.