AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Connect
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CONNECT_API TemplateAttributes() = default;
38 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::Map<Aws::String, Aws::String>& GetCustomAttributes() const { return m_customAttributes; }
48 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
49 template<typename CustomAttributesT = Aws::Map<Aws::String, Aws::String>>
50 void SetCustomAttributes(CustomAttributesT&& value) { m_customAttributesHasBeenSet = true; m_customAttributes = std::forward<CustomAttributesT>(value); }
51 template<typename CustomAttributesT = Aws::Map<Aws::String, Aws::String>>
52 TemplateAttributes& WithCustomAttributes(CustomAttributesT&& value) { SetCustomAttributes(std::forward<CustomAttributesT>(value)); return *this;}
53 template<typename CustomAttributesKeyT = Aws::String, typename CustomAttributesValueT = Aws::String>
54 TemplateAttributes& AddCustomAttributes(CustomAttributesKeyT&& key, CustomAttributesValueT&& value) {
55 m_customAttributesHasBeenSet = true; m_customAttributes.emplace(std::forward<CustomAttributesKeyT>(key), std::forward<CustomAttributesValueT>(value)); return *this;
56 }
58
60
66 inline const Aws::String& GetCustomerProfileAttributes() const { return m_customerProfileAttributes; }
67 inline bool CustomerProfileAttributesHasBeenSet() const { return m_customerProfileAttributesHasBeenSet; }
68 template<typename CustomerProfileAttributesT = Aws::String>
69 void SetCustomerProfileAttributes(CustomerProfileAttributesT&& value) { m_customerProfileAttributesHasBeenSet = true; m_customerProfileAttributes = std::forward<CustomerProfileAttributesT>(value); }
70 template<typename CustomerProfileAttributesT = Aws::String>
71 TemplateAttributes& WithCustomerProfileAttributes(CustomerProfileAttributesT&& value) { SetCustomerProfileAttributes(std::forward<CustomerProfileAttributesT>(value)); return *this;}
73 private:
74
75 Aws::Map<Aws::String, Aws::String> m_customAttributes;
76 bool m_customAttributesHasBeenSet = false;
77
78 Aws::String m_customerProfileAttributes;
79 bool m_customerProfileAttributesHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace Connect
84} // 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