AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAddressListRequest.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/MailManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mailmanager/model/Tag.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace MailManager
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_MAILMANAGER_API CreateAddressListRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateAddressList"; }
34
35 AWS_MAILMANAGER_API Aws::String SerializePayload() const override;
36
37 AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const Aws::String& GetClientToken() const { return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 template<typename ClientTokenT = Aws::String>
48 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
49 template<typename ClientTokenT = Aws::String>
50 CreateAddressListRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
52
54
57 inline const Aws::String& GetAddressListName() const { return m_addressListName; }
58 inline bool AddressListNameHasBeenSet() const { return m_addressListNameHasBeenSet; }
59 template<typename AddressListNameT = Aws::String>
60 void SetAddressListName(AddressListNameT&& value) { m_addressListNameHasBeenSet = true; m_addressListName = std::forward<AddressListNameT>(value); }
61 template<typename AddressListNameT = Aws::String>
62 CreateAddressListRequest& WithAddressListName(AddressListNameT&& value) { SetAddressListName(std::forward<AddressListNameT>(value)); return *this;}
64
66
70 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
71 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
72 template<typename TagsT = Aws::Vector<Tag>>
73 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
74 template<typename TagsT = Aws::Vector<Tag>>
75 CreateAddressListRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
76 template<typename TagsT = Tag>
77 CreateAddressListRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
79 private:
80
82 bool m_clientTokenHasBeenSet = true;
83
84 Aws::String m_addressListName;
85 bool m_addressListNameHasBeenSet = false;
86
87 Aws::Vector<Tag> m_tags;
88 bool m_tagsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace MailManager
93} // namespace Aws
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
CreateAddressListRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_MAILMANAGER_API CreateAddressListRequest()=default
CreateAddressListRequest & WithAddressListName(AddressListNameT &&value)
CreateAddressListRequest & WithClientToken(ClientTokenT &&value)
CreateAddressListRequest & WithTags(TagsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector