AWS SDK for C++  1.9.156
AWS SDK for C++
DescribeTrustsResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/ds/model/Trust.h>
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 {
35  {
36  public:
40 
41 
49  inline const Aws::Vector<Trust>& GetTrusts() const{ return m_trusts; }
50 
58  inline void SetTrusts(const Aws::Vector<Trust>& value) { m_trusts = value; }
59 
67  inline void SetTrusts(Aws::Vector<Trust>&& value) { m_trusts = std::move(value); }
68 
76  inline DescribeTrustsResult& WithTrusts(const Aws::Vector<Trust>& value) { SetTrusts(value); return *this;}
77 
85  inline DescribeTrustsResult& WithTrusts(Aws::Vector<Trust>&& value) { SetTrusts(std::move(value)); return *this;}
86 
94  inline DescribeTrustsResult& AddTrusts(const Trust& value) { m_trusts.push_back(value); return *this; }
95 
103  inline DescribeTrustsResult& AddTrusts(Trust&& value) { m_trusts.push_back(std::move(value)); return *this; }
104 
105 
111  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
112 
118  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
119 
125  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
126 
132  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
133 
139  inline DescribeTrustsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
140 
146  inline DescribeTrustsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
147 
153  inline DescribeTrustsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
154 
155  private:
156 
157  Aws::Vector<Trust> m_trusts;
158 
159  Aws::String m_nextToken;
160  };
161 
162 } // namespace Model
163 } // namespace DirectoryService
164 } // namespace Aws
Aws::DirectoryService::Model::Trust
Definition: Trust.h:38
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::DescribeTrustsResult::WithNextToken
DescribeTrustsResult & WithNextToken(const Aws::String &value)
Definition: DescribeTrustsResult.h:139
Aws::DirectoryService::Model::DescribeTrustsResult::DescribeTrustsResult
DescribeTrustsResult()
Aws::DirectoryService::Model::DescribeTrustsResult::GetTrusts
const Aws::Vector< Trust > & GetTrusts() const
Definition: DescribeTrustsResult.h:49
Aws::DirectoryService::Model::DescribeTrustsResult::WithTrusts
DescribeTrustsResult & WithTrusts(const Aws::Vector< Trust > &value)
Definition: DescribeTrustsResult.h:76
Aws::DirectoryService::Model::DescribeTrustsResult::WithNextToken
DescribeTrustsResult & WithNextToken(Aws::String &&value)
Definition: DescribeTrustsResult.h:146
DirectoryService_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DirectoryService::Model::DescribeTrustsResult::SetTrusts
void SetTrusts(const Aws::Vector< Trust > &value)
Definition: DescribeTrustsResult.h:58
Aws::DirectoryService::Model::DescribeTrustsResult::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeTrustsResult.h:132
AWSVector.h
Aws::DirectoryService::Model::DescribeTrustsResult::WithNextToken
DescribeTrustsResult & WithNextToken(const char *value)
Definition: DescribeTrustsResult.h:153
Aws::DirectoryService::Model::DescribeTrustsResult
Definition: DescribeTrustsResult.h:35
AWSString.h
Aws::DirectoryService::Model::DescribeTrustsResult::SetTrusts
void SetTrusts(Aws::Vector< Trust > &&value)
Definition: DescribeTrustsResult.h:67
Aws::DirectoryService::Model::DescribeTrustsResult::operator=
DescribeTrustsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DirectoryService::Model::DescribeTrustsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeTrustsResult.h:118
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::DirectoryService::Model::DescribeTrustsResult::AddTrusts
DescribeTrustsResult & AddTrusts(const Trust &value)
Definition: DescribeTrustsResult.h:94
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::DescribeTrustsResult::AddTrusts
DescribeTrustsResult & AddTrusts(Trust &&value)
Definition: DescribeTrustsResult.h:103
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::DescribeTrustsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeTrustsResult.h:111
Aws::DirectoryService::Model::DescribeTrustsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeTrustsResult.h:125
Aws::DirectoryService::Model::DescribeTrustsResult::DescribeTrustsResult
DescribeTrustsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DirectoryService::Model::DescribeTrustsResult::WithTrusts
DescribeTrustsResult & WithTrusts(Aws::Vector< Trust > &&value)
Definition: DescribeTrustsResult.h:85
Trust.h