AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
DescribeDirectoriesRequest.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
25 public:
26 AWS_DIRECTORYSERVICE_API DescribeDirectoriesRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeDirectories"; }
33
34 AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
45 inline const Aws::Vector<Aws::String>& GetDirectoryIds() const { return m_directoryIds; }
46 inline bool DirectoryIdsHasBeenSet() const { return m_directoryIdsHasBeenSet; }
47 template <typename DirectoryIdsT = Aws::Vector<Aws::String>>
48 void SetDirectoryIds(DirectoryIdsT&& value) {
49 m_directoryIdsHasBeenSet = true;
50 m_directoryIds = std::forward<DirectoryIdsT>(value);
51 }
52 template <typename DirectoryIdsT = Aws::Vector<Aws::String>>
54 SetDirectoryIds(std::forward<DirectoryIdsT>(value));
55 return *this;
56 }
57 template <typename DirectoryIdsT = Aws::String>
59 m_directoryIdsHasBeenSet = true;
60 m_directoryIds.emplace_back(std::forward<DirectoryIdsT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::String& GetNextToken() const { return m_nextToken; }
71 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
72 template <typename NextTokenT = Aws::String>
73 void SetNextToken(NextTokenT&& value) {
74 m_nextTokenHasBeenSet = true;
75 m_nextToken = std::forward<NextTokenT>(value);
76 }
77 template <typename NextTokenT = Aws::String>
79 SetNextToken(std::forward<NextTokenT>(value));
80 return *this;
81 }
83
85
89 inline int GetLimit() const { return m_limit; }
90 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
91 inline void SetLimit(int value) {
92 m_limitHasBeenSet = true;
93 m_limit = value;
94 }
96 SetLimit(value);
97 return *this;
98 }
100 private:
101 Aws::Vector<Aws::String> m_directoryIds;
102
103 Aws::String m_nextToken;
104
105 int m_limit{0};
106 bool m_directoryIdsHasBeenSet = false;
107 bool m_nextTokenHasBeenSet = false;
108 bool m_limitHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace DirectoryService
113} // namespace Aws
AWS_DIRECTORYSERVICE_API DescribeDirectoriesRequest()=default
DescribeDirectoriesRequest & AddDirectoryIds(DirectoryIdsT &&value)
AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override
AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeDirectoriesRequest & WithDirectoryIds(DirectoryIdsT &&value)
DescribeDirectoriesRequest & WithNextToken(NextTokenT &&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