/*
* 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 connectparticipant-2018-09-07.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.ConnectParticipant.Model
{
///
/// Container for the parameters to the CreateParticipantConnection operation.
/// Creates the participant's connection.
///
///
///
/// ParticipantToken
is used for invoking this API instead of ConnectionToken
.
///
///
///
/// The participant token is valid for the lifetime of the participant – until they are
/// part of a contact.
///
///
///
/// The response URL for WEBSOCKET
Type has a connect expiry timeout of 100s.
/// Clients must manually connect to the returned websocket URL and subscribe to the desired
/// topic.
///
///
///
/// For chat, you need to publish the following on the established websocket connection:
///
///
///
/// {"topic":"aws/subscribe","content":{"topics":["aws/chat"]}}
///
///
///
/// Upon websocket URL expiry, as specified in the response ConnectionExpiry parameter,
/// clients need to call this API again to obtain a new websocket URL and perform the
/// same steps as before.
///
///
///
/// Message streaming support: This API can also be used together with the StartContactStreaming
/// API to create a participant connection for chat contacts that are not using a websocket.
/// For more information about message streaming, Enable
/// real-time chat message streaming in the Amazon Connect Administrator Guide.
///
///
///
/// Feature specifications: For information about feature specifications, such
/// as the allowed number of open websocket connections per participant, see Feature
/// specifications in the Amazon Connect Administrator Guide.
///
///
///
/// The Amazon Connect Participant Service APIs do not use Signature
/// Version 4 authentication.
///
///
///
public partial class CreateParticipantConnectionRequest : AmazonConnectParticipantRequest
{
private bool? _connectParticipant;
private string _participantToken;
private List _type = new List();
///
/// Gets and sets the property ConnectParticipant.
///
/// Amazon Connect Participant is used to mark the participant as connected for customer
/// participant in message streaming, as well as for agent or manager participant in non-streaming
/// chats.
///
///
public bool ConnectParticipant
{
get { return this._connectParticipant.GetValueOrDefault(); }
set { this._connectParticipant = value; }
}
// Check to see if ConnectParticipant property is set
internal bool IsSetConnectParticipant()
{
return this._connectParticipant.HasValue;
}
///
/// Gets and sets the property ParticipantToken.
///
/// This is a header parameter.
///
///
///
/// The ParticipantToken as obtained from StartChatContact
/// API response.
///
///
[AWSProperty(Required=true, Min=1, Max=1000)]
public string ParticipantToken
{
get { return this._participantToken; }
set { this._participantToken = value; }
}
// Check to see if ParticipantToken property is set
internal bool IsSetParticipantToken()
{
return this._participantToken != null;
}
///
/// Gets and sets the property Type.
///
/// Type of connection information required. This can be omitted if ConnectParticipant
/// is true
.
///
///
[AWSProperty(Min=1)]
public List Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null && this._type.Count > 0;
}
}
}