AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
OutboundStrategy.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/OutboundStrategyConfig.h>
9#include <aws/connect/model/OutboundStrategyType.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
29 public:
30 AWS_CONNECT_API OutboundStrategy() = default;
31 AWS_CONNECT_API OutboundStrategy(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline OutboundStrategyType GetType() const { return m_type; }
40 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
41 inline void SetType(OutboundStrategyType value) {
42 m_typeHasBeenSet = true;
43 m_type = value;
44 }
46 SetType(value);
47 return *this;
48 }
50
52
55 inline const OutboundStrategyConfig& GetConfig() const { return m_config; }
56 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
57 template <typename ConfigT = OutboundStrategyConfig>
58 void SetConfig(ConfigT&& value) {
59 m_configHasBeenSet = true;
60 m_config = std::forward<ConfigT>(value);
61 }
62 template <typename ConfigT = OutboundStrategyConfig>
63 OutboundStrategy& WithConfig(ConfigT&& value) {
64 SetConfig(std::forward<ConfigT>(value));
65 return *this;
66 }
68 private:
70
71 OutboundStrategyConfig m_config;
72 bool m_typeHasBeenSet = false;
73 bool m_configHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Connect
78} // namespace Aws
AWS_CONNECT_API OutboundStrategy()=default
AWS_CONNECT_API OutboundStrategy(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
OutboundStrategy & WithType(OutboundStrategyType value)
OutboundStrategyType GetType() const
OutboundStrategy & WithConfig(ConfigT &&value)
const OutboundStrategyConfig & GetConfig() const
AWS_CONNECT_API OutboundStrategy & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(OutboundStrategyType value)
Aws::Utils::Json::JsonValue JsonValue