AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateContactListRequest.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/sesv2/SESV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sesv2/model/Topic.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SESV2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SESV2_API UpdateContactListRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateContactList"; }
33
34 AWS_SESV2_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetContactListName() const{ return m_contactListName; }
42 inline bool ContactListNameHasBeenSet() const { return m_contactListNameHasBeenSet; }
43 inline void SetContactListName(const Aws::String& value) { m_contactListNameHasBeenSet = true; m_contactListName = value; }
44 inline void SetContactListName(Aws::String&& value) { m_contactListNameHasBeenSet = true; m_contactListName = std::move(value); }
45 inline void SetContactListName(const char* value) { m_contactListNameHasBeenSet = true; m_contactListName.assign(value); }
46 inline UpdateContactListRequest& WithContactListName(const Aws::String& value) { SetContactListName(value); return *this;}
47 inline UpdateContactListRequest& WithContactListName(Aws::String&& value) { SetContactListName(std::move(value)); return *this;}
48 inline UpdateContactListRequest& WithContactListName(const char* value) { SetContactListName(value); return *this;}
50
52
56 inline const Aws::Vector<Topic>& GetTopics() const{ return m_topics; }
57 inline bool TopicsHasBeenSet() const { return m_topicsHasBeenSet; }
58 inline void SetTopics(const Aws::Vector<Topic>& value) { m_topicsHasBeenSet = true; m_topics = value; }
59 inline void SetTopics(Aws::Vector<Topic>&& value) { m_topicsHasBeenSet = true; m_topics = std::move(value); }
60 inline UpdateContactListRequest& WithTopics(const Aws::Vector<Topic>& value) { SetTopics(value); return *this;}
61 inline UpdateContactListRequest& WithTopics(Aws::Vector<Topic>&& value) { SetTopics(std::move(value)); return *this;}
62 inline UpdateContactListRequest& AddTopics(const Topic& value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; }
63 inline UpdateContactListRequest& AddTopics(Topic&& value) { m_topicsHasBeenSet = true; m_topics.push_back(std::move(value)); return *this; }
65
67
70 inline const Aws::String& GetDescription() const{ return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
73 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
74 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
75 inline UpdateContactListRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
76 inline UpdateContactListRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
77 inline UpdateContactListRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
79 private:
80
81 Aws::String m_contactListName;
82 bool m_contactListNameHasBeenSet = false;
83
84 Aws::Vector<Topic> m_topics;
85 bool m_topicsHasBeenSet = false;
86
87 Aws::String m_description;
88 bool m_descriptionHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace SESV2
93} // namespace Aws
UpdateContactListRequest & WithContactListName(Aws::String &&value)
UpdateContactListRequest & WithDescription(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateContactListRequest & AddTopics(Topic &&value)
UpdateContactListRequest & WithTopics(const Aws::Vector< Topic > &value)
UpdateContactListRequest & WithContactListName(const char *value)
UpdateContactListRequest & WithContactListName(const Aws::String &value)
AWS_SESV2_API Aws::String SerializePayload() const override
UpdateContactListRequest & AddTopics(const Topic &value)
UpdateContactListRequest & WithTopics(Aws::Vector< Topic > &&value)
void SetTopics(const Aws::Vector< Topic > &value)
const Aws::Vector< Topic > & GetTopics() const
UpdateContactListRequest & WithDescription(const Aws::String &value)
UpdateContactListRequest & WithDescription(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector