AWS SDK for C++  0.12.9
AWS SDK for C++
DescribeTrustsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace DirectoryService
24 {
25 namespace Model
26 {
27 
34  {
35  public:
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
45  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
46 
51  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
52 
57  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
58 
63  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
64 
69  inline DescribeTrustsRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
70 
75  inline DescribeTrustsRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(value); return *this;}
76 
81  inline DescribeTrustsRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
82 
89  inline const Aws::Vector<Aws::String>& GetTrustIds() const{ return m_trustIds; }
90 
97  inline void SetTrustIds(const Aws::Vector<Aws::String>& value) { m_trustIdsHasBeenSet = true; m_trustIds = value; }
98 
105  inline void SetTrustIds(Aws::Vector<Aws::String>&& value) { m_trustIdsHasBeenSet = true; m_trustIds = value; }
106 
113  inline DescribeTrustsRequest& WithTrustIds(const Aws::Vector<Aws::String>& value) { SetTrustIds(value); return *this;}
114 
121  inline DescribeTrustsRequest& WithTrustIds(Aws::Vector<Aws::String>&& value) { SetTrustIds(value); return *this;}
122 
129  inline DescribeTrustsRequest& AddTrustIds(const Aws::String& value) { m_trustIdsHasBeenSet = true; m_trustIds.push_back(value); return *this; }
130 
137  inline DescribeTrustsRequest& AddTrustIds(Aws::String&& value) { m_trustIdsHasBeenSet = true; m_trustIds.push_back(value); return *this; }
138 
145  inline DescribeTrustsRequest& AddTrustIds(const char* value) { m_trustIdsHasBeenSet = true; m_trustIds.push_back(value); return *this; }
146 
151  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
152 
157  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
158 
163  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
164 
169  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
170 
175  inline DescribeTrustsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
176 
181  inline DescribeTrustsRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
182 
187  inline DescribeTrustsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
188 
192  inline long GetLimit() const{ return m_limit; }
193 
197  inline void SetLimit(long value) { m_limitHasBeenSet = true; m_limit = value; }
198 
202  inline DescribeTrustsRequest& WithLimit(long value) { SetLimit(value); return *this;}
203 
204  private:
205  Aws::String m_directoryId;
206  bool m_directoryIdHasBeenSet;
207  Aws::Vector<Aws::String> m_trustIds;
208  bool m_trustIdsHasBeenSet;
209  Aws::String m_nextToken;
210  bool m_nextTokenHasBeenSet;
211  long m_limit;
212  bool m_limitHasBeenSet;
213  };
214 
215 } // namespace Model
216 } // namespace DirectoryService
217 } // namespace Aws
DescribeTrustsRequest & WithNextToken(const Aws::String &value)
#define AWS_DIRECTORYSERVICE_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
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)
const Aws::Vector< Aws::String > & GetTrustIds() const
JSON (JavaScript Object Notation).