@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PersistentChat extends Object implements Serializable, Cloneable, StructuredPojo
Enable persistent chats. For more information about enabling persistent chat, and for example use cases and how to configure for them, see Enable persistent chat.
| Constructor and Description | 
|---|
| PersistentChat() | 
| Modifier and Type | Method and Description | 
|---|---|
| PersistentChat | clone() | 
| boolean | equals(Object obj) | 
| String | getRehydrationType()
 The contactId that is used for rehydration depends on the rehydration type. | 
| String | getSourceContactId()
 The contactId from which a persistent chat session must be started. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setRehydrationType(String rehydrationType)
 The contactId that is used for rehydration depends on the rehydration type. | 
| void | setSourceContactId(String sourceContactId)
 The contactId from which a persistent chat session must be started. | 
| String | toString()Returns a string representation of this object. | 
| PersistentChat | withRehydrationType(RehydrationType rehydrationType)
 The contactId that is used for rehydration depends on the rehydration type. | 
| PersistentChat | withRehydrationType(String rehydrationType)
 The contactId that is used for rehydration depends on the rehydration type. | 
| PersistentChat | withSourceContactId(String sourceContactId)
 The contactId from which a persistent chat session must be started. | 
public void setRehydrationType(String rehydrationType)
The contactId that is used for rehydration depends on the rehydration type. RehydrationType is required for persistent chat.
 ENTIRE_PAST_SESSION: Rehydrates a chat from the most recently terminated past chat contact of the
 specified past ended chat session. To use this type, provide the initialContactId of the past ended
 chat session in the sourceContactId field. In this type, Amazon Connect determines the most recent
 chat contact on the specified chat session that has ended, and uses it to start a persistent chat.
 
 FROM_SEGMENT: Rehydrates a chat from the past chat contact that is specified in the
 sourceContactId field.
 
The actual contactId used for rehydration is provided in the response of this API.
rehydrationType - The contactId that is used for rehydration depends on the rehydration type. RehydrationType is required
        for persistent chat. 
        
        ENTIRE_PAST_SESSION: Rehydrates a chat from the most recently terminated past chat contact of
        the specified past ended chat session. To use this type, provide the initialContactId of the
        past ended chat session in the sourceContactId field. In this type, Amazon Connect determines
        the most recent chat contact on the specified chat session that has ended, and uses it to start a
        persistent chat.
        
        FROM_SEGMENT: Rehydrates a chat from the past chat contact that is specified in the
        sourceContactId field.
        
The actual contactId used for rehydration is provided in the response of this API.
RehydrationTypepublic String getRehydrationType()
The contactId that is used for rehydration depends on the rehydration type. RehydrationType is required for persistent chat.
 ENTIRE_PAST_SESSION: Rehydrates a chat from the most recently terminated past chat contact of the
 specified past ended chat session. To use this type, provide the initialContactId of the past ended
 chat session in the sourceContactId field. In this type, Amazon Connect determines the most recent
 chat contact on the specified chat session that has ended, and uses it to start a persistent chat.
 
 FROM_SEGMENT: Rehydrates a chat from the past chat contact that is specified in the
 sourceContactId field.
 
The actual contactId used for rehydration is provided in the response of this API.
         ENTIRE_PAST_SESSION: Rehydrates a chat from the most recently terminated past chat contact
         of the specified past ended chat session. To use this type, provide the initialContactId of
         the past ended chat session in the sourceContactId field. In this type, Amazon Connect
         determines the most recent chat contact on the specified chat session that has ended, and uses it to
         start a persistent chat.
         
         FROM_SEGMENT: Rehydrates a chat from the past chat contact that is specified in the
         sourceContactId field.
         
The actual contactId used for rehydration is provided in the response of this API.
RehydrationTypepublic PersistentChat withRehydrationType(String rehydrationType)
The contactId that is used for rehydration depends on the rehydration type. RehydrationType is required for persistent chat.
 ENTIRE_PAST_SESSION: Rehydrates a chat from the most recently terminated past chat contact of the
 specified past ended chat session. To use this type, provide the initialContactId of the past ended
 chat session in the sourceContactId field. In this type, Amazon Connect determines the most recent
 chat contact on the specified chat session that has ended, and uses it to start a persistent chat.
 
 FROM_SEGMENT: Rehydrates a chat from the past chat contact that is specified in the
 sourceContactId field.
 
The actual contactId used for rehydration is provided in the response of this API.
rehydrationType - The contactId that is used for rehydration depends on the rehydration type. RehydrationType is required
        for persistent chat. 
        
        ENTIRE_PAST_SESSION: Rehydrates a chat from the most recently terminated past chat contact of
        the specified past ended chat session. To use this type, provide the initialContactId of the
        past ended chat session in the sourceContactId field. In this type, Amazon Connect determines
        the most recent chat contact on the specified chat session that has ended, and uses it to start a
        persistent chat.
        
        FROM_SEGMENT: Rehydrates a chat from the past chat contact that is specified in the
        sourceContactId field.
        
The actual contactId used for rehydration is provided in the response of this API.
RehydrationTypepublic PersistentChat withRehydrationType(RehydrationType rehydrationType)
The contactId that is used for rehydration depends on the rehydration type. RehydrationType is required for persistent chat.
 ENTIRE_PAST_SESSION: Rehydrates a chat from the most recently terminated past chat contact of the
 specified past ended chat session. To use this type, provide the initialContactId of the past ended
 chat session in the sourceContactId field. In this type, Amazon Connect determines the most recent
 chat contact on the specified chat session that has ended, and uses it to start a persistent chat.
 
 FROM_SEGMENT: Rehydrates a chat from the past chat contact that is specified in the
 sourceContactId field.
 
The actual contactId used for rehydration is provided in the response of this API.
rehydrationType - The contactId that is used for rehydration depends on the rehydration type. RehydrationType is required
        for persistent chat. 
        
        ENTIRE_PAST_SESSION: Rehydrates a chat from the most recently terminated past chat contact of
        the specified past ended chat session. To use this type, provide the initialContactId of the
        past ended chat session in the sourceContactId field. In this type, Amazon Connect determines
        the most recent chat contact on the specified chat session that has ended, and uses it to start a
        persistent chat.
        
        FROM_SEGMENT: Rehydrates a chat from the past chat contact that is specified in the
        sourceContactId field.
        
The actual contactId used for rehydration is provided in the response of this API.
RehydrationTypepublic void setSourceContactId(String sourceContactId)
The contactId from which a persistent chat session must be started.
sourceContactId - The contactId from which a persistent chat session must be started.public String getSourceContactId()
The contactId from which a persistent chat session must be started.
public PersistentChat withSourceContactId(String sourceContactId)
The contactId from which a persistent chat session must be started.
sourceContactId - The contactId from which a persistent chat session must be started.public String toString()
toString in class ObjectObject.toString()public PersistentChat clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.