AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace QuickSight
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_QUICKSIGHT_API CreateTopicRequest();
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 "CreateTopic"; }
34
35 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
44 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
45 inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
46 inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
47 inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
48 inline CreateTopicRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
49 inline CreateTopicRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
50 inline CreateTopicRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
52
54
58 inline const Aws::String& GetTopicId() const{ return m_topicId; }
59 inline bool TopicIdHasBeenSet() const { return m_topicIdHasBeenSet; }
60 inline void SetTopicId(const Aws::String& value) { m_topicIdHasBeenSet = true; m_topicId = value; }
61 inline void SetTopicId(Aws::String&& value) { m_topicIdHasBeenSet = true; m_topicId = std::move(value); }
62 inline void SetTopicId(const char* value) { m_topicIdHasBeenSet = true; m_topicId.assign(value); }
63 inline CreateTopicRequest& WithTopicId(const Aws::String& value) { SetTopicId(value); return *this;}
64 inline CreateTopicRequest& WithTopicId(Aws::String&& value) { SetTopicId(std::move(value)); return *this;}
65 inline CreateTopicRequest& WithTopicId(const char* value) { SetTopicId(value); return *this;}
67
69
72 inline const TopicDetails& GetTopic() const{ return m_topic; }
73 inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
74 inline void SetTopic(const TopicDetails& value) { m_topicHasBeenSet = true; m_topic = value; }
75 inline void SetTopic(TopicDetails&& value) { m_topicHasBeenSet = true; m_topic = std::move(value); }
76 inline CreateTopicRequest& WithTopic(const TopicDetails& value) { SetTopic(value); return *this;}
77 inline CreateTopicRequest& WithTopic(TopicDetails&& value) { SetTopic(std::move(value)); return *this;}
79
81
85 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
86 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
87 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
88 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
89 inline CreateTopicRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
90 inline CreateTopicRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
91 inline CreateTopicRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
92 inline CreateTopicRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
94 private:
95
96 Aws::String m_awsAccountId;
97 bool m_awsAccountIdHasBeenSet = false;
98
99 Aws::String m_topicId;
100 bool m_topicIdHasBeenSet = false;
101
102 TopicDetails m_topic;
103 bool m_topicHasBeenSet = false;
104
105 Aws::Vector<Tag> m_tags;
106 bool m_tagsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace QuickSight
111} // namespace Aws
void SetAwsAccountId(const Aws::String &value)
CreateTopicRequest & WithTopicId(const Aws::String &value)
CreateTopicRequest & WithTopicId(const char *value)
CreateTopicRequest & AddTags(const Tag &value)
virtual const char * GetServiceRequestName() const override
void SetTags(const Aws::Vector< Tag > &value)
CreateTopicRequest & WithTopic(const TopicDetails &value)
CreateTopicRequest & WithAwsAccountId(Aws::String &&value)
CreateTopicRequest & WithAwsAccountId(const char *value)
void SetTopicId(const Aws::String &value)
void SetTopic(const TopicDetails &value)
CreateTopicRequest & WithTopicId(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
void SetTags(Aws::Vector< Tag > &&value)
CreateTopicRequest & AddTags(Tag &&value)
CreateTopicRequest & WithTags(const Aws::Vector< Tag > &value)
CreateTopicRequest & WithTopic(TopicDetails &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
CreateTopicRequest & WithTags(Aws::Vector< Tag > &&value)
CreateTopicRequest & WithAwsAccountId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector