/*
* 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
{
///
/// Information about the contact
/// associated to the user.
///
public partial class AgentContactReference
{
private ContactState _agentContactState;
private Channel _channel;
private DateTime? _connectedToAgentTimestamp;
private string _contactId;
private ContactInitiationMethod _initiationMethod;
private QueueReference _queue;
private DateTime? _stateStartTimestamp;
///
/// Gets and sets the property AgentContactState.
///
/// The state
/// of the contact.
///
///
public ContactState AgentContactState
{
get { return this._agentContactState; }
set { this._agentContactState = value; }
}
// Check to see if AgentContactState property is set
internal bool IsSetAgentContactState()
{
return this._agentContactState != null;
}
///
/// Gets and sets the property Channel.
///
/// The channel of the contact.
///
///
public Channel Channel
{
get { return this._channel; }
set { this._channel = value; }
}
// Check to see if Channel property is set
internal bool IsSetChannel()
{
return this._channel != null;
}
///
/// Gets and sets the property ConnectedToAgentTimestamp.
///
/// The time at which the contact was connected to an agent.
///
///
public DateTime ConnectedToAgentTimestamp
{
get { return this._connectedToAgentTimestamp.GetValueOrDefault(); }
set { this._connectedToAgentTimestamp = value; }
}
// Check to see if ConnectedToAgentTimestamp property is set
internal bool IsSetConnectedToAgentTimestamp()
{
return this._connectedToAgentTimestamp.HasValue;
}
///
/// Gets and sets the property ContactId.
///
/// The identifier of the contact in this instance of Amazon Connect.
///
///
[AWSProperty(Min=1, Max=256)]
public string ContactId
{
get { return this._contactId; }
set { this._contactId = value; }
}
// Check to see if ContactId property is set
internal bool IsSetContactId()
{
return this._contactId != null;
}
///
/// Gets and sets the property InitiationMethod.
///
/// How the contact was initiated.
///
///
public ContactInitiationMethod InitiationMethod
{
get { return this._initiationMethod; }
set { this._initiationMethod = value; }
}
// Check to see if InitiationMethod property is set
internal bool IsSetInitiationMethod()
{
return this._initiationMethod != null;
}
///
/// Gets and sets the property Queue.
///
public QueueReference Queue
{
get { return this._queue; }
set { this._queue = value; }
}
// Check to see if Queue property is set
internal bool IsSetQueue()
{
return this._queue != null;
}
///
/// Gets and sets the property StateStartTimestamp.
///
/// The epoch timestamp when the contact state started.
///
///
public DateTime StateStartTimestamp
{
get { return this._stateStartTimestamp.GetValueOrDefault(); }
set { this._stateStartTimestamp = value; }
}
// Check to see if StateStartTimestamp property is set
internal bool IsSetStateStartTimestamp()
{
return this._stateStartTimestamp.HasValue;
}
}
}