AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
CreateEmailAddressRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Connect {
16namespace Model {
17
21 public:
22 AWS_CONNECT_API CreateEmailAddressRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateEmailAddress"; }
29
30 AWS_CONNECT_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetDescription() const { return m_description; }
37 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
38 template <typename DescriptionT = Aws::String>
39 void SetDescription(DescriptionT&& value) {
40 m_descriptionHasBeenSet = true;
41 m_description = std::forward<DescriptionT>(value);
42 }
43 template <typename DescriptionT = Aws::String>
45 SetDescription(std::forward<DescriptionT>(value));
46 return *this;
47 }
49
51
56 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
57 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
58 template <typename InstanceIdT = Aws::String>
59 void SetInstanceId(InstanceIdT&& value) {
60 m_instanceIdHasBeenSet = true;
61 m_instanceId = std::forward<InstanceIdT>(value);
62 }
63 template <typename InstanceIdT = Aws::String>
65 SetInstanceId(std::forward<InstanceIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
75 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
76 template <typename EmailAddressT = Aws::String>
77 void SetEmailAddress(EmailAddressT&& value) {
78 m_emailAddressHasBeenSet = true;
79 m_emailAddress = std::forward<EmailAddressT>(value);
80 }
81 template <typename EmailAddressT = Aws::String>
83 SetEmailAddress(std::forward<EmailAddressT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDisplayName() const { return m_displayName; }
93 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
94 template <typename DisplayNameT = Aws::String>
95 void SetDisplayName(DisplayNameT&& value) {
96 m_displayNameHasBeenSet = true;
97 m_displayName = std::forward<DisplayNameT>(value);
98 }
99 template <typename DisplayNameT = Aws::String>
101 SetDisplayName(std::forward<DisplayNameT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
112 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
113 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
114 void SetTags(TagsT&& value) {
115 m_tagsHasBeenSet = true;
116 m_tags = std::forward<TagsT>(value);
117 }
118 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
120 SetTags(std::forward<TagsT>(value));
121 return *this;
122 }
123 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
124 CreateEmailAddressRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
125 m_tagsHasBeenSet = true;
126 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
127 return *this;
128 }
130
132
139 inline const Aws::String& GetClientToken() const { return m_clientToken; }
140 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
141 template <typename ClientTokenT = Aws::String>
142 void SetClientToken(ClientTokenT&& value) {
143 m_clientTokenHasBeenSet = true;
144 m_clientToken = std::forward<ClientTokenT>(value);
145 }
146 template <typename ClientTokenT = Aws::String>
148 SetClientToken(std::forward<ClientTokenT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_description;
154 bool m_descriptionHasBeenSet = false;
155
156 Aws::String m_instanceId;
157 bool m_instanceIdHasBeenSet = false;
158
159 Aws::String m_emailAddress;
160 bool m_emailAddressHasBeenSet = false;
161
162 Aws::String m_displayName;
163 bool m_displayNameHasBeenSet = false;
164
166 bool m_tagsHasBeenSet = false;
167
168 Aws::String m_clientToken;
169 bool m_clientTokenHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace Connect
174} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateEmailAddressRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateEmailAddressRequest & WithClientToken(ClientTokenT &&value)
CreateEmailAddressRequest & WithEmailAddress(EmailAddressT &&value)
CreateEmailAddressRequest & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CONNECT_API Aws::String SerializePayload() const override
CreateEmailAddressRequest & WithTags(TagsT &&value)
AWS_CONNECT_API CreateEmailAddressRequest()=default
CreateEmailAddressRequest & WithDisplayName(DisplayNameT &&value)
CreateEmailAddressRequest & WithInstanceId(InstanceIdT &&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