/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the connect-2017-08-08.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Connect.Model
{
///
/// 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.
///
public partial class PersistentChat
{
private RehydrationType _rehydrationType;
private string _sourceContactId;
///
/// Gets and sets the property 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.
///
///
///
public RehydrationType RehydrationType
{
get { return this._rehydrationType; }
set { this._rehydrationType = value; }
}
// Check to see if RehydrationType property is set
internal bool IsSetRehydrationType()
{
return this._rehydrationType != null;
}
///
/// Gets and sets the property SourceContactId.
///
/// The contactId from which a persistent chat session must be started.
///
///
[AWSProperty(Min=1, Max=256)]
public string SourceContactId
{
get { return this._sourceContactId; }
set { this._sourceContactId = value; }
}
// Check to see if SourceContactId property is set
internal bool IsSetSourceContactId()
{
return this._sourceContactId != null;
}
}
}