AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
PreviewConfig.h
1
6#pragma once
7#include <aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h>
8#include <aws/connectcampaignsv2/model/AgentAction.h>
9#include <aws/connectcampaignsv2/model/TimeoutConfig.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ConnectCampaignsV2 {
22namespace Model {
23
30 public:
31 AWS_CONNECTCAMPAIGNSV2_API PreviewConfig() = default;
32 AWS_CONNECTCAMPAIGNSV2_API PreviewConfig(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECTCAMPAIGNSV2_API PreviewConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline double GetBandwidthAllocation() const { return m_bandwidthAllocation; }
39 inline bool BandwidthAllocationHasBeenSet() const { return m_bandwidthAllocationHasBeenSet; }
40 inline void SetBandwidthAllocation(double value) {
41 m_bandwidthAllocationHasBeenSet = true;
42 m_bandwidthAllocation = value;
43 }
44 inline PreviewConfig& WithBandwidthAllocation(double value) {
46 return *this;
47 }
49
51
52 inline const TimeoutConfig& GetTimeoutConfig() const { return m_timeoutConfig; }
53 inline bool TimeoutConfigHasBeenSet() const { return m_timeoutConfigHasBeenSet; }
54 template <typename TimeoutConfigT = TimeoutConfig>
55 void SetTimeoutConfig(TimeoutConfigT&& value) {
56 m_timeoutConfigHasBeenSet = true;
57 m_timeoutConfig = std::forward<TimeoutConfigT>(value);
58 }
59 template <typename TimeoutConfigT = TimeoutConfig>
60 PreviewConfig& WithTimeoutConfig(TimeoutConfigT&& value) {
61 SetTimeoutConfig(std::forward<TimeoutConfigT>(value));
62 return *this;
63 }
65
67
68 inline const Aws::Vector<AgentAction>& GetAgentActions() const { return m_agentActions; }
69 inline bool AgentActionsHasBeenSet() const { return m_agentActionsHasBeenSet; }
70 template <typename AgentActionsT = Aws::Vector<AgentAction>>
71 void SetAgentActions(AgentActionsT&& value) {
72 m_agentActionsHasBeenSet = true;
73 m_agentActions = std::forward<AgentActionsT>(value);
74 }
75 template <typename AgentActionsT = Aws::Vector<AgentAction>>
76 PreviewConfig& WithAgentActions(AgentActionsT&& value) {
77 SetAgentActions(std::forward<AgentActionsT>(value));
78 return *this;
79 }
81 m_agentActionsHasBeenSet = true;
82 m_agentActions.push_back(value);
83 return *this;
84 }
86 private:
87 double m_bandwidthAllocation{0.0};
88
89 TimeoutConfig m_timeoutConfig;
90
91 Aws::Vector<AgentAction> m_agentActions;
92 bool m_bandwidthAllocationHasBeenSet = false;
93 bool m_timeoutConfigHasBeenSet = false;
94 bool m_agentActionsHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace ConnectCampaignsV2
99} // namespace Aws
PreviewConfig & WithBandwidthAllocation(double value)
PreviewConfig & WithTimeoutConfig(TimeoutConfigT &&value)
AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECTCAMPAIGNSV2_API PreviewConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
PreviewConfig & WithAgentActions(AgentActionsT &&value)
void SetTimeoutConfig(TimeoutConfigT &&value)
AWS_CONNECTCAMPAIGNSV2_API PreviewConfig()=default
AWS_CONNECTCAMPAIGNSV2_API PreviewConfig(Aws::Utils::Json::JsonView jsonValue)
const TimeoutConfig & GetTimeoutConfig() const
const Aws::Vector< AgentAction > & GetAgentActions() const
PreviewConfig & AddAgentActions(AgentAction value)
void SetAgentActions(AgentActionsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue