AWS SDK for C++  1.9.15
AWS SDK for C++
DescribeEventTopicsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace DirectoryService
16 {
17 namespace Model
18 {
19 
26  {
27  public:
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 "DescribeEventTopics"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
45  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
46 
51  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
52 
57  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
58 
63  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
64 
69  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
70 
75  inline DescribeEventTopicsRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
76 
81  inline DescribeEventTopicsRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
82 
87  inline DescribeEventTopicsRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
88 
89 
96  inline const Aws::Vector<Aws::String>& GetTopicNames() const{ return m_topicNames; }
97 
104  inline bool TopicNamesHasBeenSet() const { return m_topicNamesHasBeenSet; }
105 
112  inline void SetTopicNames(const Aws::Vector<Aws::String>& value) { m_topicNamesHasBeenSet = true; m_topicNames = value; }
113 
120  inline void SetTopicNames(Aws::Vector<Aws::String>&& value) { m_topicNamesHasBeenSet = true; m_topicNames = std::move(value); }
121 
128  inline DescribeEventTopicsRequest& WithTopicNames(const Aws::Vector<Aws::String>& value) { SetTopicNames(value); return *this;}
129 
136  inline DescribeEventTopicsRequest& WithTopicNames(Aws::Vector<Aws::String>&& value) { SetTopicNames(std::move(value)); return *this;}
137 
144  inline DescribeEventTopicsRequest& AddTopicNames(const Aws::String& value) { m_topicNamesHasBeenSet = true; m_topicNames.push_back(value); return *this; }
145 
152  inline DescribeEventTopicsRequest& AddTopicNames(Aws::String&& value) { m_topicNamesHasBeenSet = true; m_topicNames.push_back(std::move(value)); return *this; }
153 
160  inline DescribeEventTopicsRequest& AddTopicNames(const char* value) { m_topicNamesHasBeenSet = true; m_topicNames.push_back(value); return *this; }
161 
162  private:
163 
164  Aws::String m_directoryId;
165  bool m_directoryIdHasBeenSet;
166 
167  Aws::Vector<Aws::String> m_topicNames;
168  bool m_topicNamesHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace DirectoryService
173 } // namespace Aws
Aws::DirectoryService::Model::DescribeEventTopicsRequest::WithDirectoryId
DescribeEventTopicsRequest & WithDirectoryId(const char *value)
Definition: DescribeEventTopicsRequest.h:87
Aws::DirectoryService::Model::DescribeEventTopicsRequest::WithTopicNames
DescribeEventTopicsRequest & WithTopicNames(const Aws::Vector< Aws::String > &value)
Definition: DescribeEventTopicsRequest.h:128
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::DescribeEventTopicsRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: DescribeEventTopicsRequest.h:63
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DirectoryService::Model::DescribeEventTopicsRequest::WithDirectoryId
DescribeEventTopicsRequest & WithDirectoryId(Aws::String &&value)
Definition: DescribeEventTopicsRequest.h:81
Aws::DirectoryService::Model::DescribeEventTopicsRequest::GetTopicNames
const Aws::Vector< Aws::String > & GetTopicNames() const
Definition: DescribeEventTopicsRequest.h:96
Aws::DirectoryService::Model::DescribeEventTopicsRequest::WithDirectoryId
DescribeEventTopicsRequest & WithDirectoryId(const Aws::String &value)
Definition: DescribeEventTopicsRequest.h:75
DirectoryService_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DirectoryService::Model::DescribeEventTopicsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::DescribeEventTopicsRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: DescribeEventTopicsRequest.h:57
AWSVector.h
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::DescribeEventTopicsRequest::TopicNamesHasBeenSet
bool TopicNamesHasBeenSet() const
Definition: DescribeEventTopicsRequest.h:104
Aws::DirectoryService::Model::DescribeEventTopicsRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: DescribeEventTopicsRequest.h:51
Aws::DirectoryService::Model::DescribeEventTopicsRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: DescribeEventTopicsRequest.h:45
Aws::DirectoryService::Model::DescribeEventTopicsRequest
Definition: DescribeEventTopicsRequest.h:26
AWSString.h
Aws::DirectoryService::Model::DescribeEventTopicsRequest::DescribeEventTopicsRequest
DescribeEventTopicsRequest()
Aws::DirectoryService::Model::DescribeEventTopicsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeEventTopicsRequest.h:34
Aws::DirectoryService::Model::DescribeEventTopicsRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: DescribeEventTopicsRequest.h:69
Aws::DirectoryService::Model::DescribeEventTopicsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::Model::DescribeEventTopicsRequest::AddTopicNames
DescribeEventTopicsRequest & AddTopicNames(Aws::String &&value)
Definition: DescribeEventTopicsRequest.h:152
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::DescribeEventTopicsRequest::WithTopicNames
DescribeEventTopicsRequest & WithTopicNames(Aws::Vector< Aws::String > &&value)
Definition: DescribeEventTopicsRequest.h:136
Aws::DirectoryService::Model::DescribeEventTopicsRequest::AddTopicNames
DescribeEventTopicsRequest & AddTopicNames(const Aws::String &value)
Definition: DescribeEventTopicsRequest.h:144
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::DescribeEventTopicsRequest::AddTopicNames
DescribeEventTopicsRequest & AddTopicNames(const char *value)
Definition: DescribeEventTopicsRequest.h:160
Aws::DirectoryService::Model::DescribeEventTopicsRequest::SetTopicNames
void SetTopicNames(Aws::Vector< Aws::String > &&value)
Definition: DescribeEventTopicsRequest.h:120
DirectoryServiceRequest.h
Aws::DirectoryService::Model::DescribeEventTopicsRequest::SetTopicNames
void SetTopicNames(const Aws::Vector< Aws::String > &value)
Definition: DescribeEventTopicsRequest.h:112