AWS SDK for C++  1.9.1
AWS SDK for C++
DescribeDirectoriesResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace DirectoryService
26 {
27 namespace Model
28 {
36  {
37  public:
41 
42 
50  inline const Aws::Vector<DirectoryDescription>& GetDirectoryDescriptions() const{ return m_directoryDescriptions; }
51 
59  inline void SetDirectoryDescriptions(const Aws::Vector<DirectoryDescription>& value) { m_directoryDescriptions = value; }
60 
68  inline void SetDirectoryDescriptions(Aws::Vector<DirectoryDescription>&& value) { m_directoryDescriptions = std::move(value); }
69 
77  inline DescribeDirectoriesResult& WithDirectoryDescriptions(const Aws::Vector<DirectoryDescription>& value) { SetDirectoryDescriptions(value); return *this;}
78 
86  inline DescribeDirectoriesResult& WithDirectoryDescriptions(Aws::Vector<DirectoryDescription>&& value) { SetDirectoryDescriptions(std::move(value)); return *this;}
87 
95  inline DescribeDirectoriesResult& AddDirectoryDescriptions(const DirectoryDescription& value) { m_directoryDescriptions.push_back(value); return *this; }
96 
104  inline DescribeDirectoriesResult& AddDirectoryDescriptions(DirectoryDescription&& value) { m_directoryDescriptions.push_back(std::move(value)); return *this; }
105 
106 
112  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
113 
119  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
120 
126  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
127 
133  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
134 
140  inline DescribeDirectoriesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
141 
147  inline DescribeDirectoriesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
148 
154  inline DescribeDirectoriesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
155 
156  private:
157 
158  Aws::Vector<DirectoryDescription> m_directoryDescriptions;
159 
160  Aws::String m_nextToken;
161  };
162 
163 } // namespace Model
164 } // namespace DirectoryService
165 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::DirectoryService::Model::DescribeDirectoriesResult::WithNextToken
DescribeDirectoriesResult & WithNextToken(const char *value)
Definition: DescribeDirectoriesResult.h:154
Aws::DirectoryService::Model::DescribeDirectoriesResult::operator=
DescribeDirectoriesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::DirectoryDescription
Definition: DirectoryDescription.h:47
Aws::DirectoryService::Model::DescribeDirectoriesResult::WithNextToken
DescribeDirectoriesResult & WithNextToken(Aws::String &&value)
Definition: DescribeDirectoriesResult.h:147
DirectoryDescription.h
Aws::DirectoryService::Model::DescribeDirectoriesResult::SetDirectoryDescriptions
void SetDirectoryDescriptions(Aws::Vector< DirectoryDescription > &&value)
Definition: DescribeDirectoriesResult.h:68
Aws::DirectoryService::Model::DescribeDirectoriesResult::GetDirectoryDescriptions
const Aws::Vector< DirectoryDescription > & GetDirectoryDescriptions() const
Definition: DescribeDirectoriesResult.h:50
Aws::DirectoryService::Model::DescribeDirectoriesResult::SetDirectoryDescriptions
void SetDirectoryDescriptions(const Aws::Vector< DirectoryDescription > &value)
Definition: DescribeDirectoriesResult.h:59
DirectoryService_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::DirectoryService::Model::DescribeDirectoriesResult
Definition: DescribeDirectoriesResult.h:36
Aws::DirectoryService::Model::DescribeDirectoriesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeDirectoriesResult.h:119
Aws::DirectoryService::Model::DescribeDirectoriesResult::DescribeDirectoriesResult
DescribeDirectoriesResult()
Aws::DirectoryService::Model::DescribeDirectoriesResult::WithDirectoryDescriptions
DescribeDirectoriesResult & WithDirectoryDescriptions(const Aws::Vector< DirectoryDescription > &value)
Definition: DescribeDirectoriesResult.h:77
Aws::DirectoryService::Model::DescribeDirectoriesResult::AddDirectoryDescriptions
DescribeDirectoriesResult & AddDirectoryDescriptions(const DirectoryDescription &value)
Definition: DescribeDirectoriesResult.h:95
Aws::DirectoryService::Model::DescribeDirectoriesResult::WithNextToken
DescribeDirectoriesResult & WithNextToken(const Aws::String &value)
Definition: DescribeDirectoriesResult.h:140
Aws::DirectoryService::Model::DescribeDirectoriesResult::AddDirectoryDescriptions
DescribeDirectoriesResult & AddDirectoryDescriptions(DirectoryDescription &&value)
Definition: DescribeDirectoriesResult.h:104
Aws::DirectoryService::Model::DescribeDirectoriesResult::WithDirectoryDescriptions
DescribeDirectoriesResult & WithDirectoryDescriptions(Aws::Vector< DirectoryDescription > &&value)
Definition: DescribeDirectoriesResult.h:86
AWSString.h
Aws::DirectoryService::Model::DescribeDirectoriesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeDirectoriesResult.h:126
Aws::DirectoryService::Model::DescribeDirectoriesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeDirectoriesResult.h:112
Aws::DirectoryService::Model::DescribeDirectoriesResult::DescribeDirectoriesResult
DescribeDirectoriesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::DescribeDirectoriesResult::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeDirectoriesResult.h:133
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97