AWS SDK for C++  1.8.182
AWS SDK for C++
DescribeTrustsRequest.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 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "DescribeTrusts"; }
38 
39  Aws::String SerializePayload() const override;
40 
42 
43 
48  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
49 
54  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
55 
60  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
61 
66  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
67 
72  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
73 
78  inline DescribeTrustsRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
79 
84  inline DescribeTrustsRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
85 
90  inline DescribeTrustsRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
91 
92 
99  inline const Aws::Vector<Aws::String>& GetTrustIds() const{ return m_trustIds; }
100 
107  inline bool TrustIdsHasBeenSet() const { return m_trustIdsHasBeenSet; }
108 
115  inline void SetTrustIds(const Aws::Vector<Aws::String>& value) { m_trustIdsHasBeenSet = true; m_trustIds = value; }
116 
123  inline void SetTrustIds(Aws::Vector<Aws::String>&& value) { m_trustIdsHasBeenSet = true; m_trustIds = std::move(value); }
124 
131  inline DescribeTrustsRequest& WithTrustIds(const Aws::Vector<Aws::String>& value) { SetTrustIds(value); return *this;}
132 
139  inline DescribeTrustsRequest& WithTrustIds(Aws::Vector<Aws::String>&& value) { SetTrustIds(std::move(value)); return *this;}
140 
147  inline DescribeTrustsRequest& AddTrustIds(const Aws::String& value) { m_trustIdsHasBeenSet = true; m_trustIds.push_back(value); return *this; }
148 
155  inline DescribeTrustsRequest& AddTrustIds(Aws::String&& value) { m_trustIdsHasBeenSet = true; m_trustIds.push_back(std::move(value)); return *this; }
156 
163  inline DescribeTrustsRequest& AddTrustIds(const char* value) { m_trustIdsHasBeenSet = true; m_trustIds.push_back(value); return *this; }
164 
165 
170  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
171 
176  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
177 
182  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
183 
188  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
189 
194  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
195 
200  inline DescribeTrustsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
201 
206  inline DescribeTrustsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
207 
212  inline DescribeTrustsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
213 
214 
218  inline int GetLimit() const{ return m_limit; }
219 
223  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
224 
228  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
229 
233  inline DescribeTrustsRequest& WithLimit(int value) { SetLimit(value); return *this;}
234 
235  private:
236 
237  Aws::String m_directoryId;
238  bool m_directoryIdHasBeenSet;
239 
240  Aws::Vector<Aws::String> m_trustIds;
241  bool m_trustIdsHasBeenSet;
242 
243  Aws::String m_nextToken;
244  bool m_nextTokenHasBeenSet;
245 
246  int m_limit;
247  bool m_limitHasBeenSet;
248  };
249 
250 } // namespace Model
251 } // namespace DirectoryService
252 } // namespace Aws
Aws::DirectoryService::Model::DescribeTrustsRequest::SetTrustIds
void SetTrustIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeTrustsRequest.h:123
Aws::DirectoryService::Model::DescribeTrustsRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: DescribeTrustsRequest.h:54
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::DescribeTrustsRequest::WithDirectoryId
DescribeTrustsRequest & WithDirectoryId(const Aws::String &value)
Definition: DescribeTrustsRequest.h:78
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DirectoryService::Model::DescribeTrustsRequest::TrustIdsHasBeenSet
bool TrustIdsHasBeenSet() const
Definition: DescribeTrustsRequest.h:107
Aws::DirectoryService::Model::DescribeTrustsRequest::WithNextToken
DescribeTrustsRequest & WithNextToken(const char *value)
Definition: DescribeTrustsRequest.h:212
Aws::DirectoryService::Model::DescribeTrustsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeTrustsRequest.h:176
Aws::DirectoryService::Model::DescribeTrustsRequest::AddTrustIds
DescribeTrustsRequest & AddTrustIds(const Aws::String &value)
Definition: DescribeTrustsRequest.h:147
Aws::DirectoryService::Model::DescribeTrustsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeTrustsRequest.h:37
DirectoryService_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DirectoryService::Model::DescribeTrustsRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: DescribeTrustsRequest.h:66
Aws::DirectoryService::Model::DescribeTrustsRequest::AddTrustIds
DescribeTrustsRequest & AddTrustIds(Aws::String &&value)
Definition: DescribeTrustsRequest.h:155
AWSVector.h
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::DescribeTrustsRequest::WithLimit
DescribeTrustsRequest & WithLimit(int value)
Definition: DescribeTrustsRequest.h:233
Aws::DirectoryService::Model::DescribeTrustsRequest
Definition: DescribeTrustsRequest.h:29
Aws::DirectoryService::Model::DescribeTrustsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeTrustsRequest.h:188
Aws::DirectoryService::Model::DescribeTrustsRequest::GetLimit
int GetLimit() const
Definition: DescribeTrustsRequest.h:218
Aws::DirectoryService::Model::DescribeTrustsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeTrustsRequest.h:182
Aws::DirectoryService::Model::DescribeTrustsRequest::WithTrustIds
DescribeTrustsRequest & WithTrustIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeTrustsRequest.h:139
Aws::DirectoryService::Model::DescribeTrustsRequest::WithTrustIds
DescribeTrustsRequest & WithTrustIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeTrustsRequest.h:131
Aws::DirectoryService::Model::DescribeTrustsRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: DescribeTrustsRequest.h:72
Aws::DirectoryService::Model::DescribeTrustsRequest::GetTrustIds
const Aws::Vector< Aws::String > & GetTrustIds() const
Definition: DescribeTrustsRequest.h:99
AWSString.h
Aws::DirectoryService::Model::DescribeTrustsRequest::WithNextToken
DescribeTrustsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeTrustsRequest.h:206
Aws::DirectoryService::Model::DescribeTrustsRequest::WithNextToken
DescribeTrustsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeTrustsRequest.h:200
Aws::DirectoryService::Model::DescribeTrustsRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: DescribeTrustsRequest.h:60
Aws::DirectoryService::Model::DescribeTrustsRequest::SetTrustIds
void SetTrustIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeTrustsRequest.h:115
Aws::DirectoryService::Model::DescribeTrustsRequest::AddTrustIds
DescribeTrustsRequest & AddTrustIds(const char *value)
Definition: DescribeTrustsRequest.h:163
Aws::DirectoryService::Model::DescribeTrustsRequest::WithDirectoryId
DescribeTrustsRequest & WithDirectoryId(Aws::String &&value)
Definition: DescribeTrustsRequest.h:84
Aws::DirectoryService::Model::DescribeTrustsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeTrustsRequest.h:194
Aws::DirectoryService::Model::DescribeTrustsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::Model::DescribeTrustsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::DescribeTrustsRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: DescribeTrustsRequest.h:48
Aws::DirectoryService::Model::DescribeTrustsRequest::WithDirectoryId
DescribeTrustsRequest & WithDirectoryId(const char *value)
Definition: DescribeTrustsRequest.h:90
Aws::DirectoryService::Model::DescribeTrustsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeTrustsRequest.h:170
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::DescribeTrustsRequest::DescribeTrustsRequest
DescribeTrustsRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::DescribeTrustsRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: DescribeTrustsRequest.h:223
DirectoryServiceRequest.h
Aws::DirectoryService::Model::DescribeTrustsRequest::SetLimit
void SetLimit(int value)
Definition: DescribeTrustsRequest.h:228