AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateTopicRequest.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/QuickSightRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/quicksight/model/TopicDetails.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/quicksight/model/CustomInstructions.h>
13#include <aws/quicksight/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace QuickSight
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_QUICKSIGHT_API CreateTopicRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateTopic"; }
35
36 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
37
38
40
44 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
45 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
46 template<typename AwsAccountIdT = Aws::String>
47 void SetAwsAccountId(AwsAccountIdT&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::forward<AwsAccountIdT>(value); }
48 template<typename AwsAccountIdT = Aws::String>
49 CreateTopicRequest& WithAwsAccountId(AwsAccountIdT&& value) { SetAwsAccountId(std::forward<AwsAccountIdT>(value)); return *this;}
51
53
57 inline const Aws::String& GetTopicId() const { return m_topicId; }
58 inline bool TopicIdHasBeenSet() const { return m_topicIdHasBeenSet; }
59 template<typename TopicIdT = Aws::String>
60 void SetTopicId(TopicIdT&& value) { m_topicIdHasBeenSet = true; m_topicId = std::forward<TopicIdT>(value); }
61 template<typename TopicIdT = Aws::String>
62 CreateTopicRequest& WithTopicId(TopicIdT&& value) { SetTopicId(std::forward<TopicIdT>(value)); return *this;}
64
66
69 inline const TopicDetails& GetTopic() const { return m_topic; }
70 inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
71 template<typename TopicT = TopicDetails>
72 void SetTopic(TopicT&& value) { m_topicHasBeenSet = true; m_topic = std::forward<TopicT>(value); }
73 template<typename TopicT = TopicDetails>
74 CreateTopicRequest& WithTopic(TopicT&& value) { SetTopic(std::forward<TopicT>(value)); return *this;}
76
78
82 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
83 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
84 template<typename TagsT = Aws::Vector<Tag>>
85 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
86 template<typename TagsT = Aws::Vector<Tag>>
87 CreateTopicRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
88 template<typename TagsT = Tag>
89 CreateTopicRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
91
93
96 inline const Aws::Vector<Aws::String>& GetFolderArns() const { return m_folderArns; }
97 inline bool FolderArnsHasBeenSet() const { return m_folderArnsHasBeenSet; }
98 template<typename FolderArnsT = Aws::Vector<Aws::String>>
99 void SetFolderArns(FolderArnsT&& value) { m_folderArnsHasBeenSet = true; m_folderArns = std::forward<FolderArnsT>(value); }
100 template<typename FolderArnsT = Aws::Vector<Aws::String>>
101 CreateTopicRequest& WithFolderArns(FolderArnsT&& value) { SetFolderArns(std::forward<FolderArnsT>(value)); return *this;}
102 template<typename FolderArnsT = Aws::String>
103 CreateTopicRequest& AddFolderArns(FolderArnsT&& value) { m_folderArnsHasBeenSet = true; m_folderArns.emplace_back(std::forward<FolderArnsT>(value)); return *this; }
105
107
110 inline const CustomInstructions& GetCustomInstructions() const { return m_customInstructions; }
111 inline bool CustomInstructionsHasBeenSet() const { return m_customInstructionsHasBeenSet; }
112 template<typename CustomInstructionsT = CustomInstructions>
113 void SetCustomInstructions(CustomInstructionsT&& value) { m_customInstructionsHasBeenSet = true; m_customInstructions = std::forward<CustomInstructionsT>(value); }
114 template<typename CustomInstructionsT = CustomInstructions>
115 CreateTopicRequest& WithCustomInstructions(CustomInstructionsT&& value) { SetCustomInstructions(std::forward<CustomInstructionsT>(value)); return *this;}
117 private:
118
119 Aws::String m_awsAccountId;
120 bool m_awsAccountIdHasBeenSet = false;
121
122 Aws::String m_topicId;
123 bool m_topicIdHasBeenSet = false;
124
125 TopicDetails m_topic;
126 bool m_topicHasBeenSet = false;
127
128 Aws::Vector<Tag> m_tags;
129 bool m_tagsHasBeenSet = false;
130
131 Aws::Vector<Aws::String> m_folderArns;
132 bool m_folderArnsHasBeenSet = false;
133
134 CustomInstructions m_customInstructions;
135 bool m_customInstructionsHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace QuickSight
140} // 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