AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
DescribeEventTopicsRequest.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/ds/DirectoryServiceRequest.h>
10#include <aws/ds/DirectoryService_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace DirectoryService {
16namespace Model {
17
24 public:
25 AWS_DIRECTORYSERVICE_API DescribeEventTopicsRequest() = 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 "DescribeEventTopics"; }
32
33 AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
34
35 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
42 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
43 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
44 template <typename DirectoryIdT = Aws::String>
45 void SetDirectoryId(DirectoryIdT&& value) {
46 m_directoryIdHasBeenSet = true;
47 m_directoryId = std::forward<DirectoryIdT>(value);
48 }
49 template <typename DirectoryIdT = Aws::String>
51 SetDirectoryId(std::forward<DirectoryIdT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::Vector<Aws::String>& GetTopicNames() const { return m_topicNames; }
64 inline bool TopicNamesHasBeenSet() const { return m_topicNamesHasBeenSet; }
65 template <typename TopicNamesT = Aws::Vector<Aws::String>>
66 void SetTopicNames(TopicNamesT&& value) {
67 m_topicNamesHasBeenSet = true;
68 m_topicNames = std::forward<TopicNamesT>(value);
69 }
70 template <typename TopicNamesT = Aws::Vector<Aws::String>>
72 SetTopicNames(std::forward<TopicNamesT>(value));
73 return *this;
74 }
75 template <typename TopicNamesT = Aws::String>
77 m_topicNamesHasBeenSet = true;
78 m_topicNames.emplace_back(std::forward<TopicNamesT>(value));
79 return *this;
80 }
82 private:
83 Aws::String m_directoryId;
84
85 Aws::Vector<Aws::String> m_topicNames;
86 bool m_directoryIdHasBeenSet = false;
87 bool m_topicNamesHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace DirectoryService
92} // namespace Aws
DescribeEventTopicsRequest & WithTopicNames(TopicNamesT &&value)
DescribeEventTopicsRequest & AddTopicNames(TopicNamesT &&value)
AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override
AWS_DIRECTORYSERVICE_API DescribeEventTopicsRequest()=default
DescribeEventTopicsRequest & WithDirectoryId(DirectoryIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector