@Generated(value="software.amazon.awssdk:codegen") public final class SentimentConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SentimentConfiguration.Builder,SentimentConfiguration>
A structure that contains the configuration settings for a sentiment analysis task.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SentimentConfiguration.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SentimentConfiguration.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
ruleName()
The name of the rule in the sentiment configuration.
|
List<SdkField<?>> |
sdkFields() |
SentimentType |
sentimentType()
The type of sentiment,
POSITIVE, NEGATIVE, or NEUTRAL. |
String |
sentimentTypeAsString()
The type of sentiment,
POSITIVE, NEGATIVE, or NEUTRAL. |
static Class<? extends SentimentConfiguration.Builder> |
serializableBuilderClass() |
Integer |
timePeriod()
Specifies the analysis interval.
|
SentimentConfiguration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String ruleName()
The name of the rule in the sentiment configuration.
public final SentimentType sentimentType()
The type of sentiment, POSITIVE, NEGATIVE, or NEUTRAL.
If the service returns an enum value that is not available in the current SDK version, sentimentType
will return SentimentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
sentimentTypeAsString().
POSITIVE, NEGATIVE, or NEUTRAL.SentimentTypepublic final String sentimentTypeAsString()
The type of sentiment, POSITIVE, NEGATIVE, or NEUTRAL.
If the service returns an enum value that is not available in the current SDK version, sentimentType
will return SentimentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
sentimentTypeAsString().
POSITIVE, NEGATIVE, or NEUTRAL.SentimentTypepublic final Integer timePeriod()
Specifies the analysis interval.
public SentimentConfiguration.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SentimentConfiguration.Builder,SentimentConfiguration>public static SentimentConfiguration.Builder builder()
public static Class<? extends SentimentConfiguration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.