AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateEmailContactRequest.h
1
6#pragma once
7#include <aws/notificationscontacts/NotificationsContacts_EXPORTS.h>
8#include <aws/notificationscontacts/NotificationsContactsRequest.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 NotificationsContacts
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_NOTIFICATIONSCONTACTS_API CreateEmailContactRequest() = 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 "CreateEmailContact"; }
32
33 AWS_NOTIFICATIONSCONTACTS_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template<typename NameT = Aws::String>
43 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
44 template<typename NameT = Aws::String>
45 CreateEmailContactRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
47
49
54 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
55 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
56 template<typename EmailAddressT = Aws::String>
57 void SetEmailAddress(EmailAddressT&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::forward<EmailAddressT>(value); }
58 template<typename EmailAddressT = Aws::String>
59 CreateEmailContactRequest& WithEmailAddress(EmailAddressT&& value) { SetEmailAddress(std::forward<EmailAddressT>(value)); return *this;}
61
63
67 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
68 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
69 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
70 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
71 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
72 CreateEmailContactRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
73 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
74 CreateEmailContactRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
75 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
76 }
78 private:
79
80 Aws::String m_name;
81 bool m_nameHasBeenSet = false;
82
83 Aws::String m_emailAddress;
84 bool m_emailAddressHasBeenSet = false;
85
87 bool m_tagsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace NotificationsContacts
92} // 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