AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateTopicRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSightRequest.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/CustomInstructions.h>
12#include <aws/quicksight/model/Tag.h>
13#include <aws/quicksight/model/TopicDetails.h>
14
15#include <utility>
16
17namespace Aws {
18namespace QuickSight {
19namespace Model {
20
24 public:
25 AWS_QUICKSIGHT_API CreateTopicRequest() = 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 "CreateTopic"; }
32
33 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
41 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
42 template <typename AwsAccountIdT = Aws::String>
43 void SetAwsAccountId(AwsAccountIdT&& value) {
44 m_awsAccountIdHasBeenSet = true;
45 m_awsAccountId = std::forward<AwsAccountIdT>(value);
46 }
47 template <typename AwsAccountIdT = Aws::String>
48 CreateTopicRequest& WithAwsAccountId(AwsAccountIdT&& value) {
49 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetTopicId() const { return m_topicId; }
60 inline bool TopicIdHasBeenSet() const { return m_topicIdHasBeenSet; }
61 template <typename TopicIdT = Aws::String>
62 void SetTopicId(TopicIdT&& value) {
63 m_topicIdHasBeenSet = true;
64 m_topicId = std::forward<TopicIdT>(value);
65 }
66 template <typename TopicIdT = Aws::String>
67 CreateTopicRequest& WithTopicId(TopicIdT&& value) {
68 SetTopicId(std::forward<TopicIdT>(value));
69 return *this;
70 }
72
74
77 inline const TopicDetails& GetTopic() const { return m_topic; }
78 inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
79 template <typename TopicT = TopicDetails>
80 void SetTopic(TopicT&& value) {
81 m_topicHasBeenSet = true;
82 m_topic = std::forward<TopicT>(value);
83 }
84 template <typename TopicT = TopicDetails>
85 CreateTopicRequest& WithTopic(TopicT&& value) {
86 SetTopic(std::forward<TopicT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
97 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
98 template <typename TagsT = Aws::Vector<Tag>>
99 void SetTags(TagsT&& value) {
100 m_tagsHasBeenSet = true;
101 m_tags = std::forward<TagsT>(value);
102 }
103 template <typename TagsT = Aws::Vector<Tag>>
104 CreateTopicRequest& WithTags(TagsT&& value) {
105 SetTags(std::forward<TagsT>(value));
106 return *this;
107 }
108 template <typename TagsT = Tag>
109 CreateTopicRequest& AddTags(TagsT&& value) {
110 m_tagsHasBeenSet = true;
111 m_tags.emplace_back(std::forward<TagsT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Vector<Aws::String>& GetFolderArns() const { return m_folderArns; }
121 inline bool FolderArnsHasBeenSet() const { return m_folderArnsHasBeenSet; }
122 template <typename FolderArnsT = Aws::Vector<Aws::String>>
123 void SetFolderArns(FolderArnsT&& value) {
124 m_folderArnsHasBeenSet = true;
125 m_folderArns = std::forward<FolderArnsT>(value);
126 }
127 template <typename FolderArnsT = Aws::Vector<Aws::String>>
128 CreateTopicRequest& WithFolderArns(FolderArnsT&& value) {
129 SetFolderArns(std::forward<FolderArnsT>(value));
130 return *this;
131 }
132 template <typename FolderArnsT = Aws::String>
133 CreateTopicRequest& AddFolderArns(FolderArnsT&& value) {
134 m_folderArnsHasBeenSet = true;
135 m_folderArns.emplace_back(std::forward<FolderArnsT>(value));
136 return *this;
137 }
139
141
144 inline const CustomInstructions& GetCustomInstructions() const { return m_customInstructions; }
145 inline bool CustomInstructionsHasBeenSet() const { return m_customInstructionsHasBeenSet; }
146 template <typename CustomInstructionsT = CustomInstructions>
147 void SetCustomInstructions(CustomInstructionsT&& value) {
148 m_customInstructionsHasBeenSet = true;
149 m_customInstructions = std::forward<CustomInstructionsT>(value);
150 }
151 template <typename CustomInstructionsT = CustomInstructions>
152 CreateTopicRequest& WithCustomInstructions(CustomInstructionsT&& value) {
153 SetCustomInstructions(std::forward<CustomInstructionsT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_awsAccountId;
159
160 Aws::String m_topicId;
161
162 TopicDetails m_topic;
163
164 Aws::Vector<Tag> m_tags;
165
166 Aws::Vector<Aws::String> m_folderArns;
167
168 CustomInstructions m_customInstructions;
169 bool m_awsAccountIdHasBeenSet = false;
170 bool m_topicIdHasBeenSet = false;
171 bool m_topicHasBeenSet = false;
172 bool m_tagsHasBeenSet = false;
173 bool m_folderArnsHasBeenSet = false;
174 bool m_customInstructionsHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace QuickSight
179} // namespace Aws
const Aws::Vector< Aws::String > & GetFolderArns() const
virtual const char * GetServiceRequestName() const override
CreateTopicRequest & AddFolderArns(FolderArnsT &&value)
CreateTopicRequest & AddTags(TagsT &&value)
AWS_QUICKSIGHT_API CreateTopicRequest()=default
void SetCustomInstructions(CustomInstructionsT &&value)
const CustomInstructions & GetCustomInstructions() const
const Aws::Vector< Tag > & GetTags() const
CreateTopicRequest & WithFolderArns(FolderArnsT &&value)
CreateTopicRequest & WithTopic(TopicT &&value)
CreateTopicRequest & WithTopicId(TopicIdT &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
CreateTopicRequest & WithTags(TagsT &&value)
CreateTopicRequest & WithAwsAccountId(AwsAccountIdT &&value)
CreateTopicRequest & WithCustomInstructions(CustomInstructionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector