Class Rule
- java.lang.Object
-
- software.amazon.awssdk.services.transcribe.model.Rule
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Rule.Builder,Rule>
@Generated("software.amazon.awssdk:codegen") public final class Rule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Rule.Builder,Rule>
A rule is a set of criteria that you can specify to flag an attribute in your Call Analytics output. Rules define a Call Analytics category.
Rules can include these parameters: , , , and .
To learn more about Call Analytics rules and categories, see Creating categories for post-call transcriptions and Creating categories for real-time transcriptions.
To learn more about Call Analytics, see Analyzing call center audio with Call Analytics.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRule.Builderstatic classRule.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Rule.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static RulefromInterruptionFilter(Consumer<InterruptionFilter.Builder> interruptionFilter)Create an instance of this class withinterruptionFilter()initialized to the given value.static RulefromInterruptionFilter(InterruptionFilter interruptionFilter)Create an instance of this class withinterruptionFilter()initialized to the given value.static RulefromNonTalkTimeFilter(Consumer<NonTalkTimeFilter.Builder> nonTalkTimeFilter)Create an instance of this class withnonTalkTimeFilter()initialized to the given value.static RulefromNonTalkTimeFilter(NonTalkTimeFilter nonTalkTimeFilter)Create an instance of this class withnonTalkTimeFilter()initialized to the given value.static RulefromSentimentFilter(Consumer<SentimentFilter.Builder> sentimentFilter)Create an instance of this class withsentimentFilter()initialized to the given value.static RulefromSentimentFilter(SentimentFilter sentimentFilter)Create an instance of this class withsentimentFilter()initialized to the given value.static RulefromTranscriptFilter(Consumer<TranscriptFilter.Builder> transcriptFilter)Create an instance of this class withtranscriptFilter()initialized to the given value.static RulefromTranscriptFilter(TranscriptFilter transcriptFilter)Create an instance of this class withtranscriptFilter()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InterruptionFilterinterruptionFilter()Flag the presence or absence of interruptions in your Call Analytics transcription output.NonTalkTimeFilternonTalkTimeFilter()Flag the presence or absence of periods of silence in your Call Analytics transcription output.List<SdkField<?>>sdkFields()SentimentFiltersentimentFilter()Flag the presence or absence of specific sentiments in your Call Analytics transcription output.static Class<? extends Rule.Builder>serializableBuilderClass()Rule.BuildertoBuilder()StringtoString()Returns a string representation of this object.TranscriptFiltertranscriptFilter()Flag the presence or absence of specific words or phrases in your Call Analytics transcription output.Rule.Typetype()Retrieve an enum value representing which member of this object is populated.-
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
-
nonTalkTimeFilter
public final NonTalkTimeFilter nonTalkTimeFilter()
Flag the presence or absence of periods of silence in your Call Analytics transcription output. Refer to for more detail.
- Returns:
- Flag the presence or absence of periods of silence in your Call Analytics transcription output. Refer to for more detail.
-
interruptionFilter
public final InterruptionFilter interruptionFilter()
Flag the presence or absence of interruptions in your Call Analytics transcription output. Refer to for more detail.
- Returns:
- Flag the presence or absence of interruptions in your Call Analytics transcription output. Refer to for more detail.
-
transcriptFilter
public final TranscriptFilter transcriptFilter()
Flag the presence or absence of specific words or phrases in your Call Analytics transcription output. Refer to for more detail.
- Returns:
- Flag the presence or absence of specific words or phrases in your Call Analytics transcription output. Refer to for more detail.
-
sentimentFilter
public final SentimentFilter sentimentFilter()
Flag the presence or absence of specific sentiments in your Call Analytics transcription output. Refer to for more detail.
- Returns:
- Flag the presence or absence of specific sentiments in your Call Analytics transcription output. Refer to for more detail.
-
toBuilder
public Rule.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Rule.Builder,Rule>
-
builder
public static Rule.Builder builder()
-
serializableBuilderClass
public static Class<? extends Rule.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.
-
fromNonTalkTimeFilter
public static Rule fromNonTalkTimeFilter(NonTalkTimeFilter nonTalkTimeFilter)
Create an instance of this class withnonTalkTimeFilter()initialized to the given value.Flag the presence or absence of periods of silence in your Call Analytics transcription output. Refer to for more detail.
- Parameters:
nonTalkTimeFilter- Flag the presence or absence of periods of silence in your Call Analytics transcription output. Refer to for more detail.
-
fromNonTalkTimeFilter
public static Rule fromNonTalkTimeFilter(Consumer<NonTalkTimeFilter.Builder> nonTalkTimeFilter)
Create an instance of this class withnonTalkTimeFilter()initialized to the given value.Flag the presence or absence of periods of silence in your Call Analytics transcription output. Refer to for more detail.
- Parameters:
nonTalkTimeFilter- Flag the presence or absence of periods of silence in your Call Analytics transcription output. Refer to for more detail.
-
fromInterruptionFilter
public static Rule fromInterruptionFilter(InterruptionFilter interruptionFilter)
Create an instance of this class withinterruptionFilter()initialized to the given value.Flag the presence or absence of interruptions in your Call Analytics transcription output. Refer to for more detail.
- Parameters:
interruptionFilter- Flag the presence or absence of interruptions in your Call Analytics transcription output. Refer to for more detail.
-
fromInterruptionFilter
public static Rule fromInterruptionFilter(Consumer<InterruptionFilter.Builder> interruptionFilter)
Create an instance of this class withinterruptionFilter()initialized to the given value.Flag the presence or absence of interruptions in your Call Analytics transcription output. Refer to for more detail.
- Parameters:
interruptionFilter- Flag the presence or absence of interruptions in your Call Analytics transcription output. Refer to for more detail.
-
fromTranscriptFilter
public static Rule fromTranscriptFilter(TranscriptFilter transcriptFilter)
Create an instance of this class withtranscriptFilter()initialized to the given value.Flag the presence or absence of specific words or phrases in your Call Analytics transcription output. Refer to for more detail.
- Parameters:
transcriptFilter- Flag the presence or absence of specific words or phrases in your Call Analytics transcription output. Refer to for more detail.
-
fromTranscriptFilter
public static Rule fromTranscriptFilter(Consumer<TranscriptFilter.Builder> transcriptFilter)
Create an instance of this class withtranscriptFilter()initialized to the given value.Flag the presence or absence of specific words or phrases in your Call Analytics transcription output. Refer to for more detail.
- Parameters:
transcriptFilter- Flag the presence or absence of specific words or phrases in your Call Analytics transcription output. Refer to for more detail.
-
fromSentimentFilter
public static Rule fromSentimentFilter(SentimentFilter sentimentFilter)
Create an instance of this class withsentimentFilter()initialized to the given value.Flag the presence or absence of specific sentiments in your Call Analytics transcription output. Refer to for more detail.
- Parameters:
sentimentFilter- Flag the presence or absence of specific sentiments in your Call Analytics transcription output. Refer to for more detail.
-
fromSentimentFilter
public static Rule fromSentimentFilter(Consumer<SentimentFilter.Builder> sentimentFilter)
Create an instance of this class withsentimentFilter()initialized to the given value.Flag the presence or absence of specific sentiments in your Call Analytics transcription output. Refer to for more detail.
- Parameters:
sentimentFilter- Flag the presence or absence of specific sentiments in your Call Analytics transcription output. Refer to for more detail.
-
type
public Rule.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beRule.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beRule.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-