AWS SDK for C++

AWS SDK for C++ Version 1.11.860

Loading...
Searching...
No Matches
CreateTopicV2Request.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/TopicV2Details.h>
14
15#include <utility>
16
17namespace Aws {
18namespace QuickSight {
19namespace Model {
20
24 public:
25 AWS_QUICKSIGHT_API CreateTopicV2Request() = 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 "CreateTopicV2"; }
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 CreateTopicV2Request& 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 CreateTopicV2Request& WithTopicId(TopicIdT&& value) {
68 SetTopicId(std::forward<TopicIdT>(value));
69 return *this;
70 }
72
74
77 inline const TopicV2Details& GetTopic() const { return m_topic; }
78 inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
79 template <typename TopicT = TopicV2Details>
80 void SetTopic(TopicT&& value) {
81 m_topicHasBeenSet = true;
82 m_topic = std::forward<TopicT>(value);
83 }
84 template <typename TopicT = TopicV2Details>
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>>
105 SetTags(std::forward<TagsT>(value));
106 return *this;
107 }
108 template <typename TagsT = Tag>
110 m_tagsHasBeenSet = true;
111 m_tags.emplace_back(std::forward<TagsT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::Vector<Aws::String>& GetFolderArns() const { return m_folderArns; }
122 inline bool FolderArnsHasBeenSet() const { return m_folderArnsHasBeenSet; }
123 template <typename FolderArnsT = Aws::Vector<Aws::String>>
124 void SetFolderArns(FolderArnsT&& value) {
125 m_folderArnsHasBeenSet = true;
126 m_folderArns = std::forward<FolderArnsT>(value);
127 }
128 template <typename FolderArnsT = Aws::Vector<Aws::String>>
129 CreateTopicV2Request& WithFolderArns(FolderArnsT&& value) {
130 SetFolderArns(std::forward<FolderArnsT>(value));
131 return *this;
132 }
133 template <typename FolderArnsT = Aws::String>
134 CreateTopicV2Request& AddFolderArns(FolderArnsT&& value) {
135 m_folderArnsHasBeenSet = true;
136 m_folderArns.emplace_back(std::forward<FolderArnsT>(value));
137 return *this;
138 }
140
142
143 inline const CustomInstructions& GetCustomInstructions() const { return m_customInstructions; }
144 inline bool CustomInstructionsHasBeenSet() const { return m_customInstructionsHasBeenSet; }
145 template <typename CustomInstructionsT = CustomInstructions>
146 void SetCustomInstructions(CustomInstructionsT&& value) {
147 m_customInstructionsHasBeenSet = true;
148 m_customInstructions = std::forward<CustomInstructionsT>(value);
149 }
150 template <typename CustomInstructionsT = CustomInstructions>
151 CreateTopicV2Request& WithCustomInstructions(CustomInstructionsT&& value) {
152 SetCustomInstructions(std::forward<CustomInstructionsT>(value));
153 return *this;
154 }
156 private:
157 Aws::String m_awsAccountId;
158
159 Aws::String m_topicId;
160
161 TopicV2Details m_topic;
162
163 Aws::Vector<Tag> m_tags;
164
165 Aws::Vector<Aws::String> m_folderArns;
166
167 CustomInstructions m_customInstructions;
168 bool m_awsAccountIdHasBeenSet = false;
169 bool m_topicIdHasBeenSet = false;
170 bool m_topicHasBeenSet = false;
171 bool m_tagsHasBeenSet = false;
172 bool m_folderArnsHasBeenSet = false;
173 bool m_customInstructionsHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace QuickSight
178} // namespace Aws
CreateTopicV2Request & WithTopic(TopicT &&value)
CreateTopicV2Request & WithTopicId(TopicIdT &&value)
CreateTopicV2Request & WithFolderArns(FolderArnsT &&value)
void SetCustomInstructions(CustomInstructionsT &&value)
const CustomInstructions & GetCustomInstructions() const
AWS_QUICKSIGHT_API CreateTopicV2Request()=default
CreateTopicV2Request & WithCustomInstructions(CustomInstructionsT &&value)
CreateTopicV2Request & AddTags(TagsT &&value)
CreateTopicV2Request & AddFolderArns(FolderArnsT &&value)
const Aws::Vector< Tag > & GetTags() const
const Aws::Vector< Aws::String > & GetFolderArns() const
virtual const char * GetServiceRequestName() const override
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
CreateTopicV2Request & WithTags(TagsT &&value)
CreateTopicV2Request & WithAwsAccountId(AwsAccountIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector