AWS SDK for C++  1.9.131
AWS SDK for C++
DescribeSharedDirectoriesResult.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 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<SharedDirectory>& GetSharedDirectories() const{ return m_sharedDirectories; }
41 
45  inline void SetSharedDirectories(const Aws::Vector<SharedDirectory>& value) { m_sharedDirectories = value; }
46 
50  inline void SetSharedDirectories(Aws::Vector<SharedDirectory>&& value) { m_sharedDirectories = std::move(value); }
51 
55  inline DescribeSharedDirectoriesResult& WithSharedDirectories(const Aws::Vector<SharedDirectory>& value) { SetSharedDirectories(value); return *this;}
56 
60  inline DescribeSharedDirectoriesResult& WithSharedDirectories(Aws::Vector<SharedDirectory>&& value) { SetSharedDirectories(std::move(value)); return *this;}
61 
65  inline DescribeSharedDirectoriesResult& AddSharedDirectories(const SharedDirectory& value) { m_sharedDirectories.push_back(value); return *this; }
66 
70  inline DescribeSharedDirectoriesResult& AddSharedDirectories(SharedDirectory&& value) { m_sharedDirectories.push_back(std::move(value)); return *this; }
71 
72 
78  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
79 
85  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
86 
92  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
93 
99  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
100 
106  inline DescribeSharedDirectoriesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
107 
113  inline DescribeSharedDirectoriesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
114 
120  inline DescribeSharedDirectoriesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122  private:
123 
124  Aws::Vector<SharedDirectory> m_sharedDirectories;
125 
126  Aws::String m_nextToken;
127  };
128 
129 } // namespace Model
130 } // namespace DirectoryService
131 } // namespace Aws
Aws::DirectoryService::Model::DescribeSharedDirectoriesResult::WithSharedDirectories
DescribeSharedDirectoriesResult & WithSharedDirectories(Aws::Vector< SharedDirectory > &&value)
Definition: DescribeSharedDirectoriesResult.h:60
Aws::DirectoryService::Model::DescribeSharedDirectoriesResult::WithNextToken
DescribeSharedDirectoriesResult & WithNextToken(const Aws::String &value)
Definition: DescribeSharedDirectoriesResult.h:106
Aws::DirectoryService::Model::DescribeSharedDirectoriesResult::GetSharedDirectories
const Aws::Vector< SharedDirectory > & GetSharedDirectories() const
Definition: DescribeSharedDirectoriesResult.h:40
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::DirectoryService::Model::DescribeSharedDirectoriesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeSharedDirectoriesResult.h:85
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::DescribeSharedDirectoriesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeSharedDirectoriesResult.h:78
Aws::DirectoryService::Model::DescribeSharedDirectoriesResult::SetSharedDirectories
void SetSharedDirectories(Aws::Vector< SharedDirectory > &&value)
Definition: DescribeSharedDirectoriesResult.h:50
Aws::DirectoryService::Model::DescribeSharedDirectoriesResult::operator=
DescribeSharedDirectoriesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DirectoryService::Model::DescribeSharedDirectoriesResult::SetSharedDirectories
void SetSharedDirectories(const Aws::Vector< SharedDirectory > &value)
Definition: DescribeSharedDirectoriesResult.h:45
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::DescribeSharedDirectoriesResult::DescribeSharedDirectoriesResult
DescribeSharedDirectoriesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::DirectoryService::Model::DescribeSharedDirectoriesResult::WithNextToken
DescribeSharedDirectoriesResult & WithNextToken(const char *value)
Definition: DescribeSharedDirectoriesResult.h:120
Aws::DirectoryService::Model::DescribeSharedDirectoriesResult::WithNextToken
DescribeSharedDirectoriesResult & WithNextToken(Aws::String &&value)
Definition: DescribeSharedDirectoriesResult.h:113
Aws::DirectoryService::Model::DescribeSharedDirectoriesResult::WithSharedDirectories
DescribeSharedDirectoriesResult & WithSharedDirectories(const Aws::Vector< SharedDirectory > &value)
Definition: DescribeSharedDirectoriesResult.h:55
Aws::DirectoryService::Model::DescribeSharedDirectoriesResult
Definition: DescribeSharedDirectoriesResult.h:30
AWSString.h
Aws::DirectoryService::Model::DescribeSharedDirectoriesResult::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeSharedDirectoriesResult.h:99
Aws::DirectoryService::Model::DescribeSharedDirectoriesResult::DescribeSharedDirectoriesResult
DescribeSharedDirectoriesResult()
Aws::DirectoryService::Model::DescribeSharedDirectoriesResult::AddSharedDirectories
DescribeSharedDirectoriesResult & AddSharedDirectories(SharedDirectory &&value)
Definition: DescribeSharedDirectoriesResult.h:70
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::DescribeSharedDirectoriesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeSharedDirectoriesResult.h:92
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::DescribeSharedDirectoriesResult::AddSharedDirectories
DescribeSharedDirectoriesResult & AddSharedDirectories(const SharedDirectory &value)
Definition: DescribeSharedDirectoriesResult.h:65
SharedDirectory.h
Aws::DirectoryService::Model::SharedDirectory
Definition: SharedDirectory.h:37