/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Connect { namespace Model { /** *

Contains information about which channels are supported, and how many * contacts an agent can have on a channel simultaneously.

See Also:

* AWS * API Reference

*/ class MediaConcurrency { public: AWS_CONNECT_API MediaConcurrency(); AWS_CONNECT_API MediaConcurrency(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECT_API MediaConcurrency& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The channels that agents can handle in the Contact Control Panel (CCP).

*/ inline const Channel& GetChannel() const{ return m_channel; } /** *

The channels that agents can handle in the Contact Control Panel (CCP).

*/ inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; } /** *

The channels that agents can handle in the Contact Control Panel (CCP).

*/ inline void SetChannel(const Channel& value) { m_channelHasBeenSet = true; m_channel = value; } /** *

The channels that agents can handle in the Contact Control Panel (CCP).

*/ inline void SetChannel(Channel&& value) { m_channelHasBeenSet = true; m_channel = std::move(value); } /** *

The channels that agents can handle in the Contact Control Panel (CCP).

*/ inline MediaConcurrency& WithChannel(const Channel& value) { SetChannel(value); return *this;} /** *

The channels that agents can handle in the Contact Control Panel (CCP).

*/ inline MediaConcurrency& WithChannel(Channel&& value) { SetChannel(std::move(value)); return *this;} /** *

The number of contacts an agent can have on a channel simultaneously.

*

Valid Range for VOICE: Minimum value of 1. Maximum value of * 1.

Valid Range for CHAT: Minimum value of 1. Maximum value * of 10.

Valid Range for TASK: Minimum value of 1. Maximum * value of 10.

*/ inline int GetConcurrency() const{ return m_concurrency; } /** *

The number of contacts an agent can have on a channel simultaneously.

*

Valid Range for VOICE: Minimum value of 1. Maximum value of * 1.

Valid Range for CHAT: Minimum value of 1. Maximum value * of 10.

Valid Range for TASK: Minimum value of 1. Maximum * value of 10.

*/ inline bool ConcurrencyHasBeenSet() const { return m_concurrencyHasBeenSet; } /** *

The number of contacts an agent can have on a channel simultaneously.

*

Valid Range for VOICE: Minimum value of 1. Maximum value of * 1.

Valid Range for CHAT: Minimum value of 1. Maximum value * of 10.

Valid Range for TASK: Minimum value of 1. Maximum * value of 10.

*/ inline void SetConcurrency(int value) { m_concurrencyHasBeenSet = true; m_concurrency = value; } /** *

The number of contacts an agent can have on a channel simultaneously.

*

Valid Range for VOICE: Minimum value of 1. Maximum value of * 1.

Valid Range for CHAT: Minimum value of 1. Maximum value * of 10.

Valid Range for TASK: Minimum value of 1. Maximum * value of 10.

*/ inline MediaConcurrency& WithConcurrency(int value) { SetConcurrency(value); return *this;} /** *

Defines the cross-channel routing behavior for each channel that is enabled * for this Routing Profile. For example, this allows you to offer an agent a * different contact from another channel when they are currently working with a * contact from a Voice channel.

*/ inline const CrossChannelBehavior& GetCrossChannelBehavior() const{ return m_crossChannelBehavior; } /** *

Defines the cross-channel routing behavior for each channel that is enabled * for this Routing Profile. For example, this allows you to offer an agent a * different contact from another channel when they are currently working with a * contact from a Voice channel.

*/ inline bool CrossChannelBehaviorHasBeenSet() const { return m_crossChannelBehaviorHasBeenSet; } /** *

Defines the cross-channel routing behavior for each channel that is enabled * for this Routing Profile. For example, this allows you to offer an agent a * different contact from another channel when they are currently working with a * contact from a Voice channel.

*/ inline void SetCrossChannelBehavior(const CrossChannelBehavior& value) { m_crossChannelBehaviorHasBeenSet = true; m_crossChannelBehavior = value; } /** *

Defines the cross-channel routing behavior for each channel that is enabled * for this Routing Profile. For example, this allows you to offer an agent a * different contact from another channel when they are currently working with a * contact from a Voice channel.

*/ inline void SetCrossChannelBehavior(CrossChannelBehavior&& value) { m_crossChannelBehaviorHasBeenSet = true; m_crossChannelBehavior = std::move(value); } /** *

Defines the cross-channel routing behavior for each channel that is enabled * for this Routing Profile. For example, this allows you to offer an agent a * different contact from another channel when they are currently working with a * contact from a Voice channel.

*/ inline MediaConcurrency& WithCrossChannelBehavior(const CrossChannelBehavior& value) { SetCrossChannelBehavior(value); return *this;} /** *

Defines the cross-channel routing behavior for each channel that is enabled * for this Routing Profile. For example, this allows you to offer an agent a * different contact from another channel when they are currently working with a * contact from a Voice channel.

*/ inline MediaConcurrency& WithCrossChannelBehavior(CrossChannelBehavior&& value) { SetCrossChannelBehavior(std::move(value)); return *this;} private: Channel m_channel; bool m_channelHasBeenSet = false; int m_concurrency; bool m_concurrencyHasBeenSet = false; CrossChannelBehavior m_crossChannelBehavior; bool m_crossChannelBehaviorHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws