@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 post-call categories for usage examples.
Constructor and Description |
---|
SentimentFilter() |
Modifier and Type | Method and Description |
---|---|
SentimentFilter |
clone() |
boolean |
equals(Object obj) |
AbsoluteTimeRange |
getAbsoluteTimeRange()
Makes it possible 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 that you didn't include in your request. |
String |
getParticipantRole()
Specify the participant that you want to flag.
|
RelativeTimeRange |
getRelativeTimeRange()
Makes it possible 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 that you want to flag.
|
int |
hashCode() |
Boolean |
isNegate()
Set to
TRUE to flag the sentiments that you didn't include in your request. |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAbsoluteTimeRange(AbsoluteTimeRange absoluteTimeRange)
Makes it possible 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 that you didn't include in your request. |
void |
setParticipantRole(String participantRole)
Specify the participant that you want to flag.
|
void |
setRelativeTimeRange(RelativeTimeRange relativeTimeRange)
Makes it possible 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 that you want to flag.
|
String |
toString()
Returns a string representation of this object.
|
SentimentFilter |
withAbsoluteTimeRange(AbsoluteTimeRange absoluteTimeRange)
Makes it possible 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 that you didn't include in your request. |
SentimentFilter |
withParticipantRole(ParticipantRole participantRole)
Specify the participant that you want to flag.
|
SentimentFilter |
withParticipantRole(String participantRole)
Specify the participant that you want to flag.
|
SentimentFilter |
withRelativeTimeRange(RelativeTimeRange relativeTimeRange)
Makes it possible 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 that you want to flag.
|
SentimentFilter |
withSentiments(SentimentValue... sentiments)
Specify the sentiments that you want to flag.
|
SentimentFilter |
withSentiments(String... sentiments)
Specify the sentiments that you want to flag.
|
public List<String> getSentiments()
Specify the sentiments that you want to flag.
SentimentValue
public void setSentiments(Collection<String> sentiments)
Specify the sentiments that you want to flag.
sentiments
- Specify the sentiments that you want to flag.SentimentValue
public SentimentFilter withSentiments(String... sentiments)
Specify the sentiments that 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 that you want to flag.SentimentValue
public SentimentFilter withSentiments(Collection<String> sentiments)
Specify the sentiments that you want to flag.
sentiments
- Specify the sentiments that you want to flag.SentimentValue
public SentimentFilter withSentiments(SentimentValue... sentiments)
Specify the sentiments that you want to flag.
sentiments
- Specify the sentiments that you want to flag.SentimentValue
public void setAbsoluteTimeRange(AbsoluteTimeRange absoluteTimeRange)
Makes it possible 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
- Makes it possible 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()
Makes it possible 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)
Makes it possible 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
- Makes it possible 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)
Makes it possible 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
- Makes it possible 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()
Makes it possible 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)
Makes it possible 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
- Makes it possible 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 that you want to flag. Omitting this parameter is equivalent to specifying both participants.
participantRole
- Specify the participant that you want to flag. Omitting this parameter is equivalent to specifying both
participants.ParticipantRole
public String getParticipantRole()
Specify the participant that you want to flag. Omitting this parameter is equivalent to specifying both participants.
ParticipantRole
public SentimentFilter withParticipantRole(String participantRole)
Specify the participant that you want to flag. Omitting this parameter is equivalent to specifying both participants.
participantRole
- Specify the participant that you want to flag. Omitting this parameter is equivalent to specifying both
participants.ParticipantRole
public SentimentFilter withParticipantRole(ParticipantRole participantRole)
Specify the participant that you want to flag. Omitting this parameter is equivalent to specifying both participants.
participantRole
- Specify the participant that you want to flag. Omitting this parameter is equivalent to specifying both
participants.ParticipantRole
public void setNegate(Boolean negate)
Set to TRUE
to flag the sentiments that you didn't include in your request. Set to
FALSE
to flag the sentiments that you specified in your request.
negate
- Set to TRUE
to flag the sentiments that you didn't include in your request. Set to
FALSE
to flag the sentiments that you specified in your request.public Boolean getNegate()
Set to TRUE
to flag the sentiments that you didn't include in your request. Set to
FALSE
to flag the sentiments that you specified in your request.
TRUE
to flag the sentiments that you didn't include in your request. Set to
FALSE
to flag the sentiments that you specified in your request.public SentimentFilter withNegate(Boolean negate)
Set to TRUE
to flag the sentiments that you didn't include in your request. Set to
FALSE
to flag the sentiments that you specified in your request.
negate
- Set to TRUE
to flag the sentiments that you didn't include in your request. Set to
FALSE
to flag the sentiments that you specified in your request.public Boolean isNegate()
Set to TRUE
to flag the sentiments that you didn't include in your request. Set to
FALSE
to flag the sentiments that you specified in your request.
TRUE
to flag the sentiments that you didn't include in your request. Set to
FALSE
to flag the sentiments that you specified in your request.public String toString()
toString
in class Object
Object.toString()
public SentimentFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.