@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SentimentConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
A structure that contains the configuration settings for a sentiment analysis task.
Constructor and Description |
---|
SentimentConfiguration() |
Modifier and Type | Method and Description |
---|---|
SentimentConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getRuleName()
The name of the rule in the sentiment configuration.
|
String |
getSentimentType()
The type of sentiment,
POSITIVE , NEGATIVE , or NEUTRAL . |
Integer |
getTimePeriod()
Specifies the analysis interval.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setRuleName(String ruleName)
The name of the rule in the sentiment configuration.
|
void |
setSentimentType(String sentimentType)
The type of sentiment,
POSITIVE , NEGATIVE , or NEUTRAL . |
void |
setTimePeriod(Integer timePeriod)
Specifies the analysis interval.
|
String |
toString()
Returns a string representation of this object.
|
SentimentConfiguration |
withRuleName(String ruleName)
The name of the rule in the sentiment configuration.
|
SentimentConfiguration |
withSentimentType(SentimentType sentimentType)
The type of sentiment,
POSITIVE , NEGATIVE , or NEUTRAL . |
SentimentConfiguration |
withSentimentType(String sentimentType)
The type of sentiment,
POSITIVE , NEGATIVE , or NEUTRAL . |
SentimentConfiguration |
withTimePeriod(Integer timePeriod)
Specifies the analysis interval.
|
public void setRuleName(String ruleName)
The name of the rule in the sentiment configuration.
ruleName
- The name of the rule in the sentiment configuration.public String getRuleName()
The name of the rule in the sentiment configuration.
public SentimentConfiguration withRuleName(String ruleName)
The name of the rule in the sentiment configuration.
ruleName
- The name of the rule in the sentiment configuration.public void setSentimentType(String sentimentType)
The type of sentiment, POSITIVE
, NEGATIVE
, or NEUTRAL
.
sentimentType
- The type of sentiment, POSITIVE
, NEGATIVE
, or NEUTRAL
.SentimentType
public String getSentimentType()
The type of sentiment, POSITIVE
, NEGATIVE
, or NEUTRAL
.
POSITIVE
, NEGATIVE
, or NEUTRAL
.SentimentType
public SentimentConfiguration withSentimentType(String sentimentType)
The type of sentiment, POSITIVE
, NEGATIVE
, or NEUTRAL
.
sentimentType
- The type of sentiment, POSITIVE
, NEGATIVE
, or NEUTRAL
.SentimentType
public SentimentConfiguration withSentimentType(SentimentType sentimentType)
The type of sentiment, POSITIVE
, NEGATIVE
, or NEUTRAL
.
sentimentType
- The type of sentiment, POSITIVE
, NEGATIVE
, or NEUTRAL
.SentimentType
public void setTimePeriod(Integer timePeriod)
Specifies the analysis interval.
timePeriod
- Specifies the analysis interval.public Integer getTimePeriod()
Specifies the analysis interval.
public SentimentConfiguration withTimePeriod(Integer timePeriod)
Specifies the analysis interval.
timePeriod
- Specifies the analysis interval.public String toString()
toString
in class Object
Object.toString()
public SentimentConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.