AWS SDK for C++

AWS SDK for C++ Version 1.11.553

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
CreateEmailAddressRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Connect
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CONNECT_API CreateEmailAddressRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateEmailAddress"; }
32
33 AWS_CONNECT_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetDescription() const { return m_description; }
41 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
42 template<typename DescriptionT = Aws::String>
43 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
44 template<typename DescriptionT = Aws::String>
45 CreateEmailAddressRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
47
49
54 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
55 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
56 template<typename InstanceIdT = Aws::String>
57 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
58 template<typename InstanceIdT = Aws::String>
59 CreateEmailAddressRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
61
63
66 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
67 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
68 template<typename EmailAddressT = Aws::String>
69 void SetEmailAddress(EmailAddressT&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::forward<EmailAddressT>(value); }
70 template<typename EmailAddressT = Aws::String>
71 CreateEmailAddressRequest& WithEmailAddress(EmailAddressT&& value) { SetEmailAddress(std::forward<EmailAddressT>(value)); return *this;}
73
75
78 inline const Aws::String& GetDisplayName() const { return m_displayName; }
79 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
80 template<typename DisplayNameT = Aws::String>
81 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
82 template<typename DisplayNameT = Aws::String>
83 CreateEmailAddressRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
85
87
91 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
94 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
95 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 CreateEmailAddressRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
97 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
98 CreateEmailAddressRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
99 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
100 }
102
104
111 inline const Aws::String& GetClientToken() const { return m_clientToken; }
112 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
113 template<typename ClientTokenT = Aws::String>
114 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
115 template<typename ClientTokenT = Aws::String>
116 CreateEmailAddressRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
118 private:
119
120 Aws::String m_description;
121 bool m_descriptionHasBeenSet = false;
122
123 Aws::String m_instanceId;
124 bool m_instanceIdHasBeenSet = false;
125
126 Aws::String m_emailAddress;
127 bool m_emailAddressHasBeenSet = false;
128
129 Aws::String m_displayName;
130 bool m_displayNameHasBeenSet = false;
131
133 bool m_tagsHasBeenSet = false;
134
135 Aws::String m_clientToken;
136 bool m_clientTokenHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace Connect
141} // 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