AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateEmailContactRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/notificationscontacts/NotificationsContactsRequest.h>
10#include <aws/notificationscontacts/NotificationsContacts_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace NotificationsContacts {
16namespace Model {
17
21 public:
22 AWS_NOTIFICATIONSCONTACTS_API CreateEmailContactRequest() = 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 "CreateEmailContact"; }
29
30 AWS_NOTIFICATIONSCONTACTS_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetName() const { return m_name; }
37 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
38 template <typename NameT = Aws::String>
39 void SetName(NameT&& value) {
40 m_nameHasBeenSet = true;
41 m_name = std::forward<NameT>(value);
42 }
43 template <typename NameT = Aws::String>
45 SetName(std::forward<NameT>(value));
46 return *this;
47 }
49
51
56 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
57 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
58 template <typename EmailAddressT = Aws::String>
59 void SetEmailAddress(EmailAddressT&& value) {
60 m_emailAddressHasBeenSet = true;
61 m_emailAddress = std::forward<EmailAddressT>(value);
62 }
63 template <typename EmailAddressT = Aws::String>
65 SetEmailAddress(std::forward<EmailAddressT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
76 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
77 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
78 void SetTags(TagsT&& value) {
79 m_tagsHasBeenSet = true;
80 m_tags = std::forward<TagsT>(value);
81 }
82 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
84 SetTags(std::forward<TagsT>(value));
85 return *this;
86 }
87 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
88 CreateEmailContactRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
89 m_tagsHasBeenSet = true;
90 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_name;
96
97 Aws::String m_emailAddress;
98
100 bool m_nameHasBeenSet = false;
101 bool m_emailAddressHasBeenSet = false;
102 bool m_tagsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace NotificationsContacts
107} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_NOTIFICATIONSCONTACTS_API Aws::String SerializePayload() const override
CreateEmailContactRequest & WithEmailAddress(EmailAddressT &&value)
CreateEmailContactRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_NOTIFICATIONSCONTACTS_API CreateEmailContactRequest()=default
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