AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MessageTemplateAttributes.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/model/SystemAttributes.h>
9#include <aws/qconnect/model/AgentAttributes.h>
10#include <aws/qconnect/model/CustomerProfileAttributes.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace QConnect
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_QCONNECT_API MessageTemplateAttributes() = default;
42 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const SystemAttributes& GetSystemAttributes() const { return m_systemAttributes; }
50 inline bool SystemAttributesHasBeenSet() const { return m_systemAttributesHasBeenSet; }
51 template<typename SystemAttributesT = SystemAttributes>
52 void SetSystemAttributes(SystemAttributesT&& value) { m_systemAttributesHasBeenSet = true; m_systemAttributes = std::forward<SystemAttributesT>(value); }
53 template<typename SystemAttributesT = SystemAttributes>
54 MessageTemplateAttributes& WithSystemAttributes(SystemAttributesT&& value) { SetSystemAttributes(std::forward<SystemAttributesT>(value)); return *this;}
56
58
61 inline const AgentAttributes& GetAgentAttributes() const { return m_agentAttributes; }
62 inline bool AgentAttributesHasBeenSet() const { return m_agentAttributesHasBeenSet; }
63 template<typename AgentAttributesT = AgentAttributes>
64 void SetAgentAttributes(AgentAttributesT&& value) { m_agentAttributesHasBeenSet = true; m_agentAttributes = std::forward<AgentAttributesT>(value); }
65 template<typename AgentAttributesT = AgentAttributes>
66 MessageTemplateAttributes& WithAgentAttributes(AgentAttributesT&& value) { SetAgentAttributes(std::forward<AgentAttributesT>(value)); return *this;}
68
70
73 inline const CustomerProfileAttributes& GetCustomerProfileAttributes() const { return m_customerProfileAttributes; }
74 inline bool CustomerProfileAttributesHasBeenSet() const { return m_customerProfileAttributesHasBeenSet; }
75 template<typename CustomerProfileAttributesT = CustomerProfileAttributes>
76 void SetCustomerProfileAttributes(CustomerProfileAttributesT&& value) { m_customerProfileAttributesHasBeenSet = true; m_customerProfileAttributes = std::forward<CustomerProfileAttributesT>(value); }
77 template<typename CustomerProfileAttributesT = CustomerProfileAttributes>
78 MessageTemplateAttributes& WithCustomerProfileAttributes(CustomerProfileAttributesT&& value) { SetCustomerProfileAttributes(std::forward<CustomerProfileAttributesT>(value)); return *this;}
80
82
85 inline const Aws::Map<Aws::String, Aws::String>& GetCustomAttributes() const { return m_customAttributes; }
86 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
87 template<typename CustomAttributesT = Aws::Map<Aws::String, Aws::String>>
88 void SetCustomAttributes(CustomAttributesT&& value) { m_customAttributesHasBeenSet = true; m_customAttributes = std::forward<CustomAttributesT>(value); }
89 template<typename CustomAttributesT = Aws::Map<Aws::String, Aws::String>>
90 MessageTemplateAttributes& WithCustomAttributes(CustomAttributesT&& value) { SetCustomAttributes(std::forward<CustomAttributesT>(value)); return *this;}
91 template<typename CustomAttributesKeyT = Aws::String, typename CustomAttributesValueT = Aws::String>
93 m_customAttributesHasBeenSet = true; m_customAttributes.emplace(std::forward<CustomAttributesKeyT>(key), std::forward<CustomAttributesValueT>(value)); return *this;
94 }
96 private:
97
98 SystemAttributes m_systemAttributes;
99 bool m_systemAttributesHasBeenSet = false;
100
101 AgentAttributes m_agentAttributes;
102 bool m_agentAttributesHasBeenSet = false;
103
104 CustomerProfileAttributes m_customerProfileAttributes;
105 bool m_customerProfileAttributesHasBeenSet = false;
106
107 Aws::Map<Aws::String, Aws::String> m_customAttributes;
108 bool m_customAttributesHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace QConnect
113} // 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