@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SentimentFilter extends Object implements Serializable, Cloneable, StructuredPojo
Flag the presence or absence of specific sentiments detected in your Call Analytics transcription output.
Rules using SentimentFilter are designed to match:
The presence or absence of a positive sentiment felt by the customer, agent, or both at specified points in the call
The presence or absence of a negative sentiment felt by the customer, agent, or both at specified points in the call
The presence or absence of a neutral sentiment felt by the customer, agent, or both at specified points in the call
The presence or absence of a mixed sentiment felt by the customer, the agent, or both at specified points in the call
See Rule criteria for examples.
| Constructor and Description |
|---|
SentimentFilter() |
| Modifier and Type | Method and Description |
|---|---|
SentimentFilter |
clone() |
boolean |
equals(Object obj) |
AbsoluteTimeRange |
getAbsoluteTimeRange()
Allows you to specify a time range (in milliseconds) in your audio, during which you want to search for the
specified sentiments.
|
Boolean |
getNegate()
Set to
TRUE to flag the sentiments you didn't include in your request. |
String |
getParticipantRole()
Specify the participant you want to flag.
|
RelativeTimeRange |
getRelativeTimeRange()
Allows you to specify a time range (in percentage) in your media file, during which you want to search for the
specified sentiments.
|
List<String> |
getSentiments()
Specify the sentiments you want to flag.
|
int |
hashCode() |
Boolean |
isNegate()
Set to
TRUE to flag the sentiments you didn't include in your request. |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setAbsoluteTimeRange(AbsoluteTimeRange absoluteTimeRange)
Allows you to specify a time range (in milliseconds) in your audio, during which you want to search for the
specified sentiments.
|
void |
setNegate(Boolean negate)
Set to
TRUE to flag the sentiments you didn't include in your request. |
void |
setParticipantRole(String participantRole)
Specify the participant you want to flag.
|
void |
setRelativeTimeRange(RelativeTimeRange relativeTimeRange)
Allows you to specify a time range (in percentage) in your media file, during which you want to search for the
specified sentiments.
|
void |
setSentiments(Collection<String> sentiments)
Specify the sentiments you want to flag.
|
String |
toString()
Returns a string representation of this object.
|
SentimentFilter |
withAbsoluteTimeRange(AbsoluteTimeRange absoluteTimeRange)
Allows you to specify a time range (in milliseconds) in your audio, during which you want to search for the
specified sentiments.
|
SentimentFilter |
withNegate(Boolean negate)
Set to
TRUE to flag the sentiments you didn't include in your request. |
SentimentFilter |
withParticipantRole(ParticipantRole participantRole)
Specify the participant you want to flag.
|
SentimentFilter |
withParticipantRole(String participantRole)
Specify the participant you want to flag.
|
SentimentFilter |
withRelativeTimeRange(RelativeTimeRange relativeTimeRange)
Allows you to specify a time range (in percentage) in your media file, during which you want to search for the
specified sentiments.
|
SentimentFilter |
withSentiments(Collection<String> sentiments)
Specify the sentiments you want to flag.
|
SentimentFilter |
withSentiments(SentimentValue... sentiments)
Specify the sentiments you want to flag.
|
SentimentFilter |
withSentiments(String... sentiments)
Specify the sentiments you want to flag.
|
public List<String> getSentiments()
Specify the sentiments you want to flag.
SentimentValuepublic void setSentiments(Collection<String> sentiments)
Specify the sentiments you want to flag.
sentiments - Specify the sentiments you want to flag.SentimentValuepublic SentimentFilter withSentiments(String... sentiments)
Specify the sentiments you want to flag.
NOTE: This method appends the values to the existing list (if any). Use
setSentiments(java.util.Collection) or withSentiments(java.util.Collection) if you want to
override the existing values.
sentiments - Specify the sentiments you want to flag.SentimentValuepublic SentimentFilter withSentiments(Collection<String> sentiments)
Specify the sentiments you want to flag.
sentiments - Specify the sentiments you want to flag.SentimentValuepublic SentimentFilter withSentiments(SentimentValue... sentiments)
Specify the sentiments you want to flag.
sentiments - Specify the sentiments you want to flag.SentimentValuepublic void setAbsoluteTimeRange(AbsoluteTimeRange absoluteTimeRange)
Allows you to specify a time range (in milliseconds) in your audio, during which you want to search for the specified sentiments. See for more detail.
absoluteTimeRange - Allows you to specify a time range (in milliseconds) in your audio, during which you want to search for
the specified sentiments. See for more detail.public AbsoluteTimeRange getAbsoluteTimeRange()
Allows you to specify a time range (in milliseconds) in your audio, during which you want to search for the specified sentiments. See for more detail.
public SentimentFilter withAbsoluteTimeRange(AbsoluteTimeRange absoluteTimeRange)
Allows you to specify a time range (in milliseconds) in your audio, during which you want to search for the specified sentiments. See for more detail.
absoluteTimeRange - Allows you to specify a time range (in milliseconds) in your audio, during which you want to search for
the specified sentiments. See for more detail.public void setRelativeTimeRange(RelativeTimeRange relativeTimeRange)
Allows you to specify a time range (in percentage) in your media file, during which you want to search for the specified sentiments. See for more detail.
relativeTimeRange - Allows you to specify a time range (in percentage) in your media file, during which you want to search for
the specified sentiments. See for more detail.public RelativeTimeRange getRelativeTimeRange()
Allows you to specify a time range (in percentage) in your media file, during which you want to search for the specified sentiments. See for more detail.
public SentimentFilter withRelativeTimeRange(RelativeTimeRange relativeTimeRange)
Allows you to specify a time range (in percentage) in your media file, during which you want to search for the specified sentiments. See for more detail.
relativeTimeRange - Allows you to specify a time range (in percentage) in your media file, during which you want to search for
the specified sentiments. See for more detail.public void setParticipantRole(String participantRole)
Specify the participant you want to flag. Omitting this parameter is equivalent to specifying both participants.
participantRole - Specify the participant you want to flag. Omitting this parameter is equivalent to specifying both
participants.ParticipantRolepublic String getParticipantRole()
Specify the participant you want to flag. Omitting this parameter is equivalent to specifying both participants.
ParticipantRolepublic SentimentFilter withParticipantRole(String participantRole)
Specify the participant you want to flag. Omitting this parameter is equivalent to specifying both participants.
participantRole - Specify the participant you want to flag. Omitting this parameter is equivalent to specifying both
participants.ParticipantRolepublic SentimentFilter withParticipantRole(ParticipantRole participantRole)
Specify the participant you want to flag. Omitting this parameter is equivalent to specifying both participants.
participantRole - Specify the participant you want to flag. Omitting this parameter is equivalent to specifying both
participants.ParticipantRolepublic void setNegate(Boolean negate)
Set to TRUE to flag the sentiments you didn't include in your request. Set to FALSE to
flag the sentiments you specified in your request.
negate - Set to TRUE to flag the sentiments you didn't include in your request. Set to
FALSE to flag the sentiments you specified in your request.public Boolean getNegate()
Set to TRUE to flag the sentiments you didn't include in your request. Set to FALSE to
flag the sentiments you specified in your request.
TRUE to flag the sentiments you didn't include in your request. Set to
FALSE to flag the sentiments you specified in your request.public SentimentFilter withNegate(Boolean negate)
Set to TRUE to flag the sentiments you didn't include in your request. Set to FALSE to
flag the sentiments you specified in your request.
negate - Set to TRUE to flag the sentiments you didn't include in your request. Set to
FALSE to flag the sentiments you specified in your request.public Boolean isNegate()
Set to TRUE to flag the sentiments you didn't include in your request. Set to FALSE to
flag the sentiments you specified in your request.
TRUE to flag the sentiments you didn't include in your request. Set to
FALSE to flag the sentiments you specified in your request.public String toString()
toString in class ObjectObject.toString()public SentimentFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2022. All rights reserved.