AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeEventTopicsRequest.h
1
6#pragma once
7#include <aws/ds/DirectoryService_EXPORTS.h>
8#include <aws/ds/DirectoryServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace DirectoryService
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_DIRECTORYSERVICE_API DescribeEventTopicsRequest() = 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 "DescribeEventTopics"; }
35
36 AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
37
38 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
46 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
47 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
48 template<typename DirectoryIdT = Aws::String>
49 void SetDirectoryId(DirectoryIdT&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::forward<DirectoryIdT>(value); }
50 template<typename DirectoryIdT = Aws::String>
51 DescribeEventTopicsRequest& WithDirectoryId(DirectoryIdT&& value) { SetDirectoryId(std::forward<DirectoryIdT>(value)); return *this;}
53
55
61 inline const Aws::Vector<Aws::String>& GetTopicNames() const { return m_topicNames; }
62 inline bool TopicNamesHasBeenSet() const { return m_topicNamesHasBeenSet; }
63 template<typename TopicNamesT = Aws::Vector<Aws::String>>
64 void SetTopicNames(TopicNamesT&& value) { m_topicNamesHasBeenSet = true; m_topicNames = std::forward<TopicNamesT>(value); }
65 template<typename TopicNamesT = Aws::Vector<Aws::String>>
66 DescribeEventTopicsRequest& WithTopicNames(TopicNamesT&& value) { SetTopicNames(std::forward<TopicNamesT>(value)); return *this;}
67 template<typename TopicNamesT = Aws::String>
68 DescribeEventTopicsRequest& AddTopicNames(TopicNamesT&& value) { m_topicNamesHasBeenSet = true; m_topicNames.emplace_back(std::forward<TopicNamesT>(value)); return *this; }
70 private:
71
72 Aws::String m_directoryId;
73 bool m_directoryIdHasBeenSet = false;
74
75 Aws::Vector<Aws::String> m_topicNames;
76 bool m_topicNamesHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace DirectoryService
81} // 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