AWS SDK for C++  1.9.16
AWS SDK for C++
DescribeDirectoriesRequest.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 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "DescribeDirectories"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
48  inline const Aws::Vector<Aws::String>& GetDirectoryIds() const{ return m_directoryIds; }
49 
56  inline bool DirectoryIdsHasBeenSet() const { return m_directoryIdsHasBeenSet; }
57 
64  inline void SetDirectoryIds(const Aws::Vector<Aws::String>& value) { m_directoryIdsHasBeenSet = true; m_directoryIds = value; }
65 
72  inline void SetDirectoryIds(Aws::Vector<Aws::String>&& value) { m_directoryIdsHasBeenSet = true; m_directoryIds = std::move(value); }
73 
80  inline DescribeDirectoriesRequest& WithDirectoryIds(const Aws::Vector<Aws::String>& value) { SetDirectoryIds(value); return *this;}
81 
88  inline DescribeDirectoriesRequest& WithDirectoryIds(Aws::Vector<Aws::String>&& value) { SetDirectoryIds(std::move(value)); return *this;}
89 
96  inline DescribeDirectoriesRequest& AddDirectoryIds(const Aws::String& value) { m_directoryIdsHasBeenSet = true; m_directoryIds.push_back(value); return *this; }
97 
104  inline DescribeDirectoriesRequest& AddDirectoryIds(Aws::String&& value) { m_directoryIdsHasBeenSet = true; m_directoryIds.push_back(std::move(value)); return *this; }
105 
112  inline DescribeDirectoriesRequest& AddDirectoryIds(const char* value) { m_directoryIdsHasBeenSet = true; m_directoryIds.push_back(value); return *this; }
113 
114 
119  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
120 
125  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
126 
131  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
132 
137  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
138 
143  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
144 
149  inline DescribeDirectoriesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
150 
155  inline DescribeDirectoriesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
156 
161  inline DescribeDirectoriesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
162 
163 
168  inline int GetLimit() const{ return m_limit; }
169 
174  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
175 
180  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
181 
186  inline DescribeDirectoriesRequest& WithLimit(int value) { SetLimit(value); return *this;}
187 
188  private:
189 
190  Aws::Vector<Aws::String> m_directoryIds;
191  bool m_directoryIdsHasBeenSet;
192 
193  Aws::String m_nextToken;
194  bool m_nextTokenHasBeenSet;
195 
196  int m_limit;
197  bool m_limitHasBeenSet;
198  };
199 
200 } // namespace Model
201 } // namespace DirectoryService
202 } // namespace Aws
Aws::DirectoryService::Model::DescribeDirectoriesRequest::DescribeDirectoriesRequest
DescribeDirectoriesRequest()
Aws::DirectoryService::Model::DescribeDirectoriesRequest::AddDirectoryIds
DescribeDirectoriesRequest & AddDirectoryIds(const char *value)
Definition: DescribeDirectoriesRequest.h:112
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DirectoryService::Model::DescribeDirectoriesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::DescribeDirectoriesRequest::WithNextToken
DescribeDirectoriesRequest & WithNextToken(Aws::String &&value)
Definition: DescribeDirectoriesRequest.h:155
Aws::DirectoryService::Model::DescribeDirectoriesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeDirectoriesRequest.h:137
DirectoryService_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DirectoryService::Model::DescribeDirectoriesRequest::AddDirectoryIds
DescribeDirectoriesRequest & AddDirectoryIds(Aws::String &&value)
Definition: DescribeDirectoriesRequest.h:104
AWSVector.h
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::DescribeDirectoriesRequest::SetDirectoryIds
void SetDirectoryIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeDirectoriesRequest.h:72
Aws::DirectoryService::Model::DescribeDirectoriesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeDirectoriesRequest.h:125
Aws::DirectoryService::Model::DescribeDirectoriesRequest::GetDirectoryIds
const Aws::Vector< Aws::String > & GetDirectoryIds() const
Definition: DescribeDirectoriesRequest.h:48
Aws::DirectoryService::Model::DescribeDirectoriesRequest::WithDirectoryIds
DescribeDirectoriesRequest & WithDirectoryIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeDirectoriesRequest.h:88
Aws::DirectoryService::Model::DescribeDirectoriesRequest::WithDirectoryIds
DescribeDirectoriesRequest & WithDirectoryIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeDirectoriesRequest.h:80
Aws::DirectoryService::Model::DescribeDirectoriesRequest::WithNextToken
DescribeDirectoriesRequest & WithNextToken(const char *value)
Definition: DescribeDirectoriesRequest.h:161
AWSString.h
Aws::DirectoryService::Model::DescribeDirectoriesRequest::AddDirectoryIds
DescribeDirectoriesRequest & AddDirectoryIds(const Aws::String &value)
Definition: DescribeDirectoriesRequest.h:96
Aws::DirectoryService::Model::DescribeDirectoriesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeDirectoriesRequest.h:143
Aws::DirectoryService::Model::DescribeDirectoriesRequest::SetLimit
void SetLimit(int value)
Definition: DescribeDirectoriesRequest.h:180
Aws::DirectoryService::Model::DescribeDirectoriesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::Model::DescribeDirectoriesRequest
Definition: DescribeDirectoriesRequest.h:27
Aws::DirectoryService::Model::DescribeDirectoriesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeDirectoriesRequest.h:35
Aws::DirectoryService::Model::DescribeDirectoriesRequest::DirectoryIdsHasBeenSet
bool DirectoryIdsHasBeenSet() const
Definition: DescribeDirectoriesRequest.h:56
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::DescribeDirectoriesRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: DescribeDirectoriesRequest.h:174
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::DescribeDirectoriesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeDirectoriesRequest.h:119
Aws::DirectoryService::Model::DescribeDirectoriesRequest::WithLimit
DescribeDirectoriesRequest & WithLimit(int value)
Definition: DescribeDirectoriesRequest.h:186
DirectoryServiceRequest.h
Aws::DirectoryService::Model::DescribeDirectoriesRequest::SetDirectoryIds
void SetDirectoryIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeDirectoriesRequest.h:64
Aws::DirectoryService::Model::DescribeDirectoriesRequest::GetLimit
int GetLimit() const
Definition: DescribeDirectoriesRequest.h:168
Aws::DirectoryService::Model::DescribeDirectoriesRequest::WithNextToken
DescribeDirectoriesRequest & WithNextToken(const Aws::String &value)
Definition: DescribeDirectoriesRequest.h:149
Aws::DirectoryService::Model::DescribeDirectoriesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeDirectoriesRequest.h:131