Class SyntheticCustomerPersona

java.lang.Object
software.amazon.awssdk.services.connect.model.SyntheticCustomerPersona
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<SyntheticCustomerPersona.Builder,SyntheticCustomerPersona>

@Generated("software.amazon.awssdk:codegen") public final class SyntheticCustomerPersona extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SyntheticCustomerPersona.Builder,SyntheticCustomerPersona>

Defines who the synthetic customer is, including how they communicate, what they know, and how they behave.

See Also:
  • Method Details

    • name

      public final String name()

      The name of the persona.

      Returns:
      The name of the persona.
    • communicationStyle

      public final PersonaCommunicationStyle communicationStyle()

      How the synthetic customer communicates.

      If the service returns an enum value that is not available in the current SDK version, communicationStyle will return PersonaCommunicationStyle.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from communicationStyleAsString().

      Returns:
      How the synthetic customer communicates.
      See Also:
    • communicationStyleAsString

      public final String communicationStyleAsString()

      How the synthetic customer communicates.

      If the service returns an enum value that is not available in the current SDK version, communicationStyle will return PersonaCommunicationStyle.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from communicationStyleAsString().

      Returns:
      How the synthetic customer communicates.
      See Also:
    • language

      public final String language()

      The language that the synthetic customer uses, for example en-US.

      Returns:
      The language that the synthetic customer uses, for example en-US.
    • voice

      public final String voice()

      The Amazon Polly voice for the synthetic customer, for example Joanna.

      Returns:
      The Amazon Polly voice for the synthetic customer, for example Joanna.
    • voiceEngine

      public final PersonaVoiceEngine voiceEngine()

      The Amazon Polly engine that synthesizes the speech of the synthetic customer. Choose an engine that the selected Voice supports. If you don't specify an engine, Amazon Polly uses the standard engine.

      If the service returns an enum value that is not available in the current SDK version, voiceEngine will return PersonaVoiceEngine.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from voiceEngineAsString().

      Returns:
      The Amazon Polly engine that synthesizes the speech of the synthetic customer. Choose an engine that the selected Voice supports. If you don't specify an engine, Amazon Polly uses the standard engine.
      See Also:
    • voiceEngineAsString

      public final String voiceEngineAsString()

      The Amazon Polly engine that synthesizes the speech of the synthetic customer. Choose an engine that the selected Voice supports. If you don't specify an engine, Amazon Polly uses the standard engine.

      If the service returns an enum value that is not available in the current SDK version, voiceEngine will return PersonaVoiceEngine.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from voiceEngineAsString().

      Returns:
      The Amazon Polly engine that synthesizes the speech of the synthetic customer. Choose an engine that the selected Voice supports. If you don't specify an engine, Amazon Polly uses the standard engine.
      See Also:
    • domainKnowledge

      public final String domainKnowledge()

      The background knowledge that the synthetic customer brings to the conversation.

      Returns:
      The background knowledge that the synthetic customer brings to the conversation.
    • emotionalState

      public final PersonaEmotionalState emotionalState()

      How the synthetic customer feels during the conversation.

      If the service returns an enum value that is not available in the current SDK version, emotionalState will return PersonaEmotionalState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from emotionalStateAsString().

      Returns:
      How the synthetic customer feels during the conversation.
      See Also:
    • emotionalStateAsString

      public final String emotionalStateAsString()

      How the synthetic customer feels during the conversation.

      If the service returns an enum value that is not available in the current SDK version, emotionalState will return PersonaEmotionalState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from emotionalStateAsString().

      Returns:
      How the synthetic customer feels during the conversation.
      See Also:
    • cooperativeness

      public final PersonaCooperativeness cooperativeness()

      How cooperative the synthetic customer is.

      If the service returns an enum value that is not available in the current SDK version, cooperativeness will return PersonaCooperativeness.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from cooperativenessAsString().

      Returns:
      How cooperative the synthetic customer is.
      See Also:
    • cooperativenessAsString

      public final String cooperativenessAsString()

      How cooperative the synthetic customer is.

      If the service returns an enum value that is not available in the current SDK version, cooperativeness will return PersonaCooperativeness.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from cooperativenessAsString().

      Returns:
      How cooperative the synthetic customer is.
      See Also:
    • toBuilder

      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<SyntheticCustomerPersona.Builder,SyntheticCustomerPersona>
      Returns:
      a builder for type T
    • builder

      public static SyntheticCustomerPersona.Builder builder()
    • serializableBuilderClass

      public static Class<? extends SyntheticCustomerPersona.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.