Class AnalyticsIntentFilter
- java.lang.Object
-
- software.amazon.awssdk.services.lexmodelsv2.model.AnalyticsIntentFilter
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AnalyticsIntentFilter.Builder,AnalyticsIntentFilter>
@Generated("software.amazon.awssdk:codegen") public final class AnalyticsIntentFilter extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AnalyticsIntentFilter.Builder,AnalyticsIntentFilter>
Contains fields describing a condition by which to filter the intents. The expression may be understood as
nameoperatorvalues. For example:-
IntentName CO Book– The intent name contains the string "Book." -
BotVersion EQ 2– The bot version is equal to two.
The operators that each filter supports are listed below:
-
BotAlias–EQ. -
BotVersion–EQ. -
LocaleId–EQ. -
Modality–EQ. -
Channel–EQ. -
SessionId–EQ. -
OriginatingRequestId–EQ. -
IntentName–EQ,CO. -
IntentEndState–EQ,CO.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAnalyticsIntentFilter.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AnalyticsIntentFilter.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasValues()For responses, this returns true if the service returned a value for the Values property.AnalyticsIntentFilterNamename()The category by which to filter the intents.StringnameAsString()The category by which to filter the intents.AnalyticsFilterOperatoroperator()The operation by which to filter the category.StringoperatorAsString()The operation by which to filter the category.List<SdkField<?>>sdkFields()static Class<? extends AnalyticsIntentFilter.Builder>serializableBuilderClass()AnalyticsIntentFilter.BuildertoBuilder()StringtoString()Returns a string representation of this object.List<String>values()An array containing the values of the category by which to apply the operator to filter the results.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final AnalyticsIntentFilterName name()
The category by which to filter the intents. The descriptions for each option are as follows:
-
BotAlias– The name of the bot alias. -
BotVersion– The version of the bot. -
LocaleId– The locale of the bot. -
Modality– The modality of the session with the bot (audio, DTMF, or text). -
Channel– The channel that the bot is integrated with. -
SessionId– The identifier of the session with the bot. -
OriginatingRequestId– The identifier of the first request in a session. -
IntentName– The name of the intent. -
IntentEndState– The final state of the intent.
If the service returns an enum value that is not available in the current SDK version,
namewill returnAnalyticsIntentFilterName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The category by which to filter the intents. The descriptions for each option are as follows:
-
BotAlias– The name of the bot alias. -
BotVersion– The version of the bot. -
LocaleId– The locale of the bot. -
Modality– The modality of the session with the bot (audio, DTMF, or text). -
Channel– The channel that the bot is integrated with. -
SessionId– The identifier of the session with the bot. -
OriginatingRequestId– The identifier of the first request in a session. -
IntentName– The name of the intent. -
IntentEndState– The final state of the intent.
-
- See Also:
AnalyticsIntentFilterName
-
-
nameAsString
public final String nameAsString()
The category by which to filter the intents. The descriptions for each option are as follows:
-
BotAlias– The name of the bot alias. -
BotVersion– The version of the bot. -
LocaleId– The locale of the bot. -
Modality– The modality of the session with the bot (audio, DTMF, or text). -
Channel– The channel that the bot is integrated with. -
SessionId– The identifier of the session with the bot. -
OriginatingRequestId– The identifier of the first request in a session. -
IntentName– The name of the intent. -
IntentEndState– The final state of the intent.
If the service returns an enum value that is not available in the current SDK version,
namewill returnAnalyticsIntentFilterName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The category by which to filter the intents. The descriptions for each option are as follows:
-
BotAlias– The name of the bot alias. -
BotVersion– The version of the bot. -
LocaleId– The locale of the bot. -
Modality– The modality of the session with the bot (audio, DTMF, or text). -
Channel– The channel that the bot is integrated with. -
SessionId– The identifier of the session with the bot. -
OriginatingRequestId– The identifier of the first request in a session. -
IntentName– The name of the intent. -
IntentEndState– The final state of the intent.
-
- See Also:
AnalyticsIntentFilterName
-
-
operator
public final AnalyticsFilterOperator operator()
The operation by which to filter the category. The following operations are possible:
-
CO– Contains -
EQ– Equals -
GT– Greater than -
LT– Less than
The operators that each filter supports are listed below:
-
BotAlias–EQ. -
BotVersion–EQ. -
LocaleId–EQ. -
Modality–EQ. -
Channel–EQ. -
SessionId–EQ. -
OriginatingRequestId–EQ. -
IntentName–EQ,CO. -
IntentEndState–EQ,CO.
If the service returns an enum value that is not available in the current SDK version,
operatorwill returnAnalyticsFilterOperator.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoperatorAsString().- Returns:
- The operation by which to filter the category. The following operations are possible:
-
CO– Contains -
EQ– Equals -
GT– Greater than -
LT– Less than
The operators that each filter supports are listed below:
-
BotAlias–EQ. -
BotVersion–EQ. -
LocaleId–EQ. -
Modality–EQ. -
Channel–EQ. -
SessionId–EQ. -
OriginatingRequestId–EQ. -
IntentName–EQ,CO. -
IntentEndState–EQ,CO.
-
- See Also:
AnalyticsFilterOperator
-
-
operatorAsString
public final String operatorAsString()
The operation by which to filter the category. The following operations are possible:
-
CO– Contains -
EQ– Equals -
GT– Greater than -
LT– Less than
The operators that each filter supports are listed below:
-
BotAlias–EQ. -
BotVersion–EQ. -
LocaleId–EQ. -
Modality–EQ. -
Channel–EQ. -
SessionId–EQ. -
OriginatingRequestId–EQ. -
IntentName–EQ,CO. -
IntentEndState–EQ,CO.
If the service returns an enum value that is not available in the current SDK version,
operatorwill returnAnalyticsFilterOperator.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoperatorAsString().- Returns:
- The operation by which to filter the category. The following operations are possible:
-
CO– Contains -
EQ– Equals -
GT– Greater than -
LT– Less than
The operators that each filter supports are listed below:
-
BotAlias–EQ. -
BotVersion–EQ. -
LocaleId–EQ. -
Modality–EQ. -
Channel–EQ. -
SessionId–EQ. -
OriginatingRequestId–EQ. -
IntentName–EQ,CO. -
IntentEndState–EQ,CO.
-
- See Also:
AnalyticsFilterOperator
-
-
hasValues
public final boolean hasValues()
For responses, this returns true if the service returned a value for the Values property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
values
public final List<String> values()
An array containing the values of the category by which to apply the operator to filter the results. You can provide multiple values if the operator is
EQorCO. If you provide multiple values, you filter for results that equal/contain any of the values. For example, if thename,operator, andvaluesfields areModality,EQ, and[Speech, Text], the operation filters for results where the modality was eitherSpeechorText.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasValues()method.- Returns:
- An array containing the values of the category by which to apply the operator to filter the results. You
can provide multiple values if the operator is
EQorCO. If you provide multiple values, you filter for results that equal/contain any of the values. For example, if thename,operator, andvaluesfields areModality,EQ, and[Speech, Text], the operation filters for results where the modality was eitherSpeechorText.
-
toBuilder
public AnalyticsIntentFilter.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AnalyticsIntentFilter.Builder,AnalyticsIntentFilter>
-
builder
public static AnalyticsIntentFilter.Builder builder()
-
serializableBuilderClass
public static Class<? extends AnalyticsIntentFilter.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-