AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
MessageTemplateAttributes.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qconnect/QConnect_EXPORTS.h>
10#include <aws/qconnect/model/AgentAttributes.h>
11#include <aws/qconnect/model/CustomerProfileAttributes.h>
12#include <aws/qconnect/model/SystemAttributes.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QConnect {
24namespace Model {
25
33 public:
34 AWS_QCONNECT_API MessageTemplateAttributes() = default;
37 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const SystemAttributes& GetSystemAttributes() const { return m_systemAttributes; }
44 inline bool SystemAttributesHasBeenSet() const { return m_systemAttributesHasBeenSet; }
45 template <typename SystemAttributesT = SystemAttributes>
47 m_systemAttributesHasBeenSet = true;
48 m_systemAttributes = std::forward<SystemAttributesT>(value);
49 }
50 template <typename SystemAttributesT = SystemAttributes>
52 SetSystemAttributes(std::forward<SystemAttributesT>(value));
53 return *this;
54 }
56
58
61 inline const AgentAttributes& GetAgentAttributes() const { return m_agentAttributes; }
62 inline bool AgentAttributesHasBeenSet() const { return m_agentAttributesHasBeenSet; }
63 template <typename AgentAttributesT = AgentAttributes>
65 m_agentAttributesHasBeenSet = true;
66 m_agentAttributes = std::forward<AgentAttributesT>(value);
67 }
68 template <typename AgentAttributesT = AgentAttributes>
70 SetAgentAttributes(std::forward<AgentAttributesT>(value));
71 return *this;
72 }
74
76
79 inline const CustomerProfileAttributes& GetCustomerProfileAttributes() const { return m_customerProfileAttributes; }
80 inline bool CustomerProfileAttributesHasBeenSet() const { return m_customerProfileAttributesHasBeenSet; }
81 template <typename CustomerProfileAttributesT = CustomerProfileAttributes>
83 m_customerProfileAttributesHasBeenSet = true;
84 m_customerProfileAttributes = std::forward<CustomerProfileAttributesT>(value);
85 }
86 template <typename CustomerProfileAttributesT = CustomerProfileAttributes>
88 SetCustomerProfileAttributes(std::forward<CustomerProfileAttributesT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Map<Aws::String, Aws::String>& GetCustomAttributes() const { return m_customAttributes; }
98 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
99 template <typename CustomAttributesT = Aws::Map<Aws::String, Aws::String>>
101 m_customAttributesHasBeenSet = true;
102 m_customAttributes = std::forward<CustomAttributesT>(value);
103 }
104 template <typename CustomAttributesT = Aws::Map<Aws::String, Aws::String>>
106 SetCustomAttributes(std::forward<CustomAttributesT>(value));
107 return *this;
108 }
109 template <typename CustomAttributesKeyT = Aws::String, typename CustomAttributesValueT = Aws::String>
111 m_customAttributesHasBeenSet = true;
112 m_customAttributes.emplace(std::forward<CustomAttributesKeyT>(key), std::forward<CustomAttributesValueT>(value));
113 return *this;
114 }
116 private:
117 SystemAttributes m_systemAttributes;
118
119 AgentAttributes m_agentAttributes;
120
121 CustomerProfileAttributes m_customerProfileAttributes;
122
123 Aws::Map<Aws::String, Aws::String> m_customAttributes;
124 bool m_systemAttributesHasBeenSet = false;
125 bool m_agentAttributesHasBeenSet = false;
126 bool m_customerProfileAttributesHasBeenSet = false;
127 bool m_customAttributesHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace QConnect
132} // namespace Aws
AWS_QCONNECT_API MessageTemplateAttributes()=default
MessageTemplateAttributes & WithSystemAttributes(SystemAttributesT &&value)
AWS_QCONNECT_API MessageTemplateAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
const CustomerProfileAttributes & GetCustomerProfileAttributes() const
MessageTemplateAttributes & WithAgentAttributes(AgentAttributesT &&value)
AWS_QCONNECT_API MessageTemplateAttributes(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
MessageTemplateAttributes & WithCustomerProfileAttributes(CustomerProfileAttributesT &&value)
void SetCustomerProfileAttributes(CustomerProfileAttributesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomAttributes() const
MessageTemplateAttributes & WithCustomAttributes(CustomAttributesT &&value)
MessageTemplateAttributes & AddCustomAttributes(CustomAttributesKeyT &&key, CustomAttributesValueT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue