AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
MediaConcurrency.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/Channel.h>
9#include <aws/connect/model/CrossChannelBehavior.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Connect {
21namespace Model {
22
31 public:
32 AWS_CONNECT_API MediaConcurrency() = default;
33 AWS_CONNECT_API MediaConcurrency(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline Channel GetChannel() const { return m_channel; }
42 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
43 inline void SetChannel(Channel value) {
44 m_channelHasBeenSet = true;
45 m_channel = value;
46 }
48 SetChannel(value);
49 return *this;
50 }
52
54
61 inline int GetConcurrency() const { return m_concurrency; }
62 inline bool ConcurrencyHasBeenSet() const { return m_concurrencyHasBeenSet; }
63 inline void SetConcurrency(int value) {
64 m_concurrencyHasBeenSet = true;
65 m_concurrency = value;
66 }
67 inline MediaConcurrency& WithConcurrency(int value) {
68 SetConcurrency(value);
69 return *this;
70 }
72
74
80 inline const CrossChannelBehavior& GetCrossChannelBehavior() const { return m_crossChannelBehavior; }
81 inline bool CrossChannelBehaviorHasBeenSet() const { return m_crossChannelBehaviorHasBeenSet; }
82 template <typename CrossChannelBehaviorT = CrossChannelBehavior>
83 void SetCrossChannelBehavior(CrossChannelBehaviorT&& value) {
84 m_crossChannelBehaviorHasBeenSet = true;
85 m_crossChannelBehavior = std::forward<CrossChannelBehaviorT>(value);
86 }
87 template <typename CrossChannelBehaviorT = CrossChannelBehavior>
88 MediaConcurrency& WithCrossChannelBehavior(CrossChannelBehaviorT&& value) {
89 SetCrossChannelBehavior(std::forward<CrossChannelBehaviorT>(value));
90 return *this;
91 }
93 private:
94 Channel m_channel{Channel::NOT_SET};
95
96 int m_concurrency{0};
97
98 CrossChannelBehavior m_crossChannelBehavior;
99 bool m_channelHasBeenSet = false;
100 bool m_concurrencyHasBeenSet = false;
101 bool m_crossChannelBehaviorHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace Connect
106} // namespace Aws
AWS_CONNECT_API MediaConcurrency()=default
const CrossChannelBehavior & GetCrossChannelBehavior() const
AWS_CONNECT_API MediaConcurrency & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
MediaConcurrency & WithConcurrency(int value)
void SetCrossChannelBehavior(CrossChannelBehaviorT &&value)
MediaConcurrency & WithChannel(Channel value)
AWS_CONNECT_API MediaConcurrency(Aws::Utils::Json::JsonView jsonValue)
MediaConcurrency & WithCrossChannelBehavior(CrossChannelBehaviorT &&value)
Aws::Utils::Json::JsonValue JsonValue