AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
TemplateAttributes.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.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 TemplateAttributes() = default;
33 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const Aws::Map<Aws::String, Aws::String>& GetCustomAttributes() const { return m_customAttributes; }
42 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
43 template <typename CustomAttributesT = Aws::Map<Aws::String, Aws::String>>
44 void SetCustomAttributes(CustomAttributesT&& value) {
45 m_customAttributesHasBeenSet = true;
46 m_customAttributes = std::forward<CustomAttributesT>(value);
47 }
48 template <typename CustomAttributesT = Aws::Map<Aws::String, Aws::String>>
49 TemplateAttributes& WithCustomAttributes(CustomAttributesT&& value) {
50 SetCustomAttributes(std::forward<CustomAttributesT>(value));
51 return *this;
52 }
53 template <typename CustomAttributesKeyT = Aws::String, typename CustomAttributesValueT = Aws::String>
54 TemplateAttributes& AddCustomAttributes(CustomAttributesKeyT&& key, CustomAttributesValueT&& value) {
55 m_customAttributesHasBeenSet = true;
56 m_customAttributes.emplace(std::forward<CustomAttributesKeyT>(key), std::forward<CustomAttributesValueT>(value));
57 return *this;
58 }
60
62
68 inline const Aws::String& GetCustomerProfileAttributes() const { return m_customerProfileAttributes; }
69 inline bool CustomerProfileAttributesHasBeenSet() const { return m_customerProfileAttributesHasBeenSet; }
70 template <typename CustomerProfileAttributesT = Aws::String>
71 void SetCustomerProfileAttributes(CustomerProfileAttributesT&& value) {
72 m_customerProfileAttributesHasBeenSet = true;
73 m_customerProfileAttributes = std::forward<CustomerProfileAttributesT>(value);
74 }
75 template <typename CustomerProfileAttributesT = Aws::String>
76 TemplateAttributes& WithCustomerProfileAttributes(CustomerProfileAttributesT&& value) {
77 SetCustomerProfileAttributes(std::forward<CustomerProfileAttributesT>(value));
78 return *this;
79 }
81 private:
82 Aws::Map<Aws::String, Aws::String> m_customAttributes;
83
84 Aws::String m_customerProfileAttributes;
85 bool m_customAttributesHasBeenSet = false;
86 bool m_customerProfileAttributesHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace Connect
91} // namespace Aws
TemplateAttributes & AddCustomAttributes(CustomAttributesKeyT &&key, CustomAttributesValueT &&value)
void SetCustomerProfileAttributes(CustomerProfileAttributesT &&value)
AWS_CONNECT_API TemplateAttributes(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API TemplateAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCustomerProfileAttributes() const
TemplateAttributes & WithCustomerProfileAttributes(CustomerProfileAttributesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomAttributes() const
AWS_CONNECT_API TemplateAttributes()=default
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
TemplateAttributes & WithCustomAttributes(CustomAttributesT &&value)
void SetCustomAttributes(CustomAttributesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue