@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SentimentFilter extends Object implements Serializable, Cloneable, StructuredPojo
An object that enables you to specify a particular customer or agent sentiment. If at least 50 percent of the conversation turns (the back-and-forth between two speakers) in a specified time period match the specified sentiment, Amazon Transcribe will consider the sentiment a match.
| Constructor and Description |
|---|
SentimentFilter() |
| Modifier and Type | Method and Description |
|---|---|
SentimentFilter |
clone() |
boolean |
equals(Object obj) |
AbsoluteTimeRange |
getAbsoluteTimeRange()
The time range, measured in seconds, of the sentiment.
|
Boolean |
getNegate()
Set to
TRUE to look for sentiments that weren't specified in the request. |
String |
getParticipantRole()
A value that determines whether the sentiment belongs to the customer or the agent.
|
RelativeTimeRange |
getRelativeTimeRange()
The time range, set in percentages, that correspond to proportion of the call.
|
List<String> |
getSentiments()
An array that enables you to specify sentiments for the customer or agent.
|
int |
hashCode() |
Boolean |
isNegate()
Set to
TRUE to look for sentiments that weren't specified in the request. |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setAbsoluteTimeRange(AbsoluteTimeRange absoluteTimeRange)
The time range, measured in seconds, of the sentiment.
|
void |
setNegate(Boolean negate)
Set to
TRUE to look for sentiments that weren't specified in the request. |
void |
setParticipantRole(String participantRole)
A value that determines whether the sentiment belongs to the customer or the agent.
|
void |
setRelativeTimeRange(RelativeTimeRange relativeTimeRange)
The time range, set in percentages, that correspond to proportion of the call.
|
void |
setSentiments(Collection<String> sentiments)
An array that enables you to specify sentiments for the customer or agent.
|
String |
toString()
Returns a string representation of this object.
|
SentimentFilter |
withAbsoluteTimeRange(AbsoluteTimeRange absoluteTimeRange)
The time range, measured in seconds, of the sentiment.
|
SentimentFilter |
withNegate(Boolean negate)
Set to
TRUE to look for sentiments that weren't specified in the request. |
SentimentFilter |
withParticipantRole(ParticipantRole participantRole)
A value that determines whether the sentiment belongs to the customer or the agent.
|
SentimentFilter |
withParticipantRole(String participantRole)
A value that determines whether the sentiment belongs to the customer or the agent.
|
SentimentFilter |
withRelativeTimeRange(RelativeTimeRange relativeTimeRange)
The time range, set in percentages, that correspond to proportion of the call.
|
SentimentFilter |
withSentiments(Collection<String> sentiments)
An array that enables you to specify sentiments for the customer or agent.
|
SentimentFilter |
withSentiments(SentimentValue... sentiments)
An array that enables you to specify sentiments for the customer or agent.
|
SentimentFilter |
withSentiments(String... sentiments)
An array that enables you to specify sentiments for the customer or agent.
|
public List<String> getSentiments()
An array that enables you to specify sentiments for the customer or agent. You can specify one or more values.
SentimentValuepublic void setSentiments(Collection<String> sentiments)
An array that enables you to specify sentiments for the customer or agent. You can specify one or more values.
sentiments - An array that enables you to specify sentiments for the customer or agent. You can specify one or more
values.SentimentValuepublic SentimentFilter withSentiments(String... sentiments)
An array that enables you to specify sentiments for the customer or agent. You can specify one or more values.
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 - An array that enables you to specify sentiments for the customer or agent. You can specify one or more
values.SentimentValuepublic SentimentFilter withSentiments(Collection<String> sentiments)
An array that enables you to specify sentiments for the customer or agent. You can specify one or more values.
sentiments - An array that enables you to specify sentiments for the customer or agent. You can specify one or more
values.SentimentValuepublic SentimentFilter withSentiments(SentimentValue... sentiments)
An array that enables you to specify sentiments for the customer or agent. You can specify one or more values.
sentiments - An array that enables you to specify sentiments for the customer or agent. You can specify one or more
values.SentimentValuepublic void setAbsoluteTimeRange(AbsoluteTimeRange absoluteTimeRange)
The time range, measured in seconds, of the sentiment.
absoluteTimeRange - The time range, measured in seconds, of the sentiment.public AbsoluteTimeRange getAbsoluteTimeRange()
The time range, measured in seconds, of the sentiment.
public SentimentFilter withAbsoluteTimeRange(AbsoluteTimeRange absoluteTimeRange)
The time range, measured in seconds, of the sentiment.
absoluteTimeRange - The time range, measured in seconds, of the sentiment.public void setRelativeTimeRange(RelativeTimeRange relativeTimeRange)
The time range, set in percentages, that correspond to proportion of the call.
relativeTimeRange - The time range, set in percentages, that correspond to proportion of the call.public RelativeTimeRange getRelativeTimeRange()
The time range, set in percentages, that correspond to proportion of the call.
public SentimentFilter withRelativeTimeRange(RelativeTimeRange relativeTimeRange)
The time range, set in percentages, that correspond to proportion of the call.
relativeTimeRange - The time range, set in percentages, that correspond to proportion of the call.public void setParticipantRole(String participantRole)
A value that determines whether the sentiment belongs to the customer or the agent.
participantRole - A value that determines whether the sentiment belongs to the customer or the agent.ParticipantRolepublic String getParticipantRole()
A value that determines whether the sentiment belongs to the customer or the agent.
ParticipantRolepublic SentimentFilter withParticipantRole(String participantRole)
A value that determines whether the sentiment belongs to the customer or the agent.
participantRole - A value that determines whether the sentiment belongs to the customer or the agent.ParticipantRolepublic SentimentFilter withParticipantRole(ParticipantRole participantRole)
A value that determines whether the sentiment belongs to the customer or the agent.
participantRole - A value that determines whether the sentiment belongs to the customer or the agent.ParticipantRolepublic void setNegate(Boolean negate)
Set to TRUE to look for sentiments that weren't specified in the request.
negate - Set to TRUE to look for sentiments that weren't specified in the request.public Boolean getNegate()
Set to TRUE to look for sentiments that weren't specified in the request.
TRUE to look for sentiments that weren't specified in the request.public SentimentFilter withNegate(Boolean negate)
Set to TRUE to look for sentiments that weren't specified in the request.
negate - Set to TRUE to look for sentiments that weren't specified in the request.public Boolean isNegate()
Set to TRUE to look for sentiments that weren't specified in the request.
TRUE to look for sentiments that weren't specified in the 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.