AWS SDK for C++  1.8.71
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 
41  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
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
DescribeTrustsRequest & WithNextToken(const Aws::String &value)
#define AWS_DIRECTORYSERVICE_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
void SetTrustIds(const Aws::Vector< Aws::String > &value)
DescribeTrustsRequest & WithDirectoryId(const char *value)
DescribeTrustsRequest & WithNextToken(Aws::String &&value)
DescribeTrustsRequest & AddTrustIds(const char *value)
DescribeTrustsRequest & WithDirectoryId(Aws::String &&value)
void SetTrustIds(Aws::Vector< Aws::String > &&value)
DescribeTrustsRequest & WithDirectoryId(const Aws::String &value)
DescribeTrustsRequest & WithNextToken(const char *value)
DescribeTrustsRequest & AddTrustIds(const Aws::String &value)
DescribeTrustsRequest & AddTrustIds(Aws::String &&value)
DescribeTrustsRequest & WithTrustIds(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeTrustsRequest & WithTrustIds(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetTrustIds() const