AWS SDK for C++  0.12.9
AWS SDK for C++
DescribeDirectoriesRequest.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 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
45  inline const Aws::Vector<Aws::String>& GetDirectoryIds() const{ return m_directoryIds; }
46 
53  inline void SetDirectoryIds(const Aws::Vector<Aws::String>& value) { m_directoryIdsHasBeenSet = true; m_directoryIds = value; }
54 
61  inline void SetDirectoryIds(Aws::Vector<Aws::String>&& value) { m_directoryIdsHasBeenSet = true; m_directoryIds = value; }
62 
69  inline DescribeDirectoriesRequest& WithDirectoryIds(const Aws::Vector<Aws::String>& value) { SetDirectoryIds(value); return *this;}
70 
77  inline DescribeDirectoriesRequest& WithDirectoryIds(Aws::Vector<Aws::String>&& value) { SetDirectoryIds(value); return *this;}
78 
85  inline DescribeDirectoriesRequest& AddDirectoryIds(const Aws::String& value) { m_directoryIdsHasBeenSet = true; m_directoryIds.push_back(value); return *this; }
86 
93  inline DescribeDirectoriesRequest& AddDirectoryIds(Aws::String&& value) { m_directoryIdsHasBeenSet = true; m_directoryIds.push_back(value); return *this; }
94 
101  inline DescribeDirectoriesRequest& AddDirectoryIds(const char* value) { m_directoryIdsHasBeenSet = true; m_directoryIds.push_back(value); return *this; }
102 
107  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
108 
113  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
114 
119  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
120 
125  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
126 
131  inline DescribeDirectoriesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
132 
137  inline DescribeDirectoriesRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
138 
143  inline DescribeDirectoriesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
144 
149  inline long GetLimit() const{ return m_limit; }
150 
155  inline void SetLimit(long value) { m_limitHasBeenSet = true; m_limit = value; }
156 
161  inline DescribeDirectoriesRequest& WithLimit(long value) { SetLimit(value); return *this;}
162 
163  private:
164  Aws::Vector<Aws::String> m_directoryIds;
165  bool m_directoryIdsHasBeenSet;
166  Aws::String m_nextToken;
167  bool m_nextTokenHasBeenSet;
168  long m_limit;
169  bool m_limitHasBeenSet;
170  };
171 
172 } // namespace Model
173 } // namespace DirectoryService
174 } // namespace Aws
DescribeDirectoriesRequest & AddDirectoryIds(Aws::String &&value)
DescribeDirectoriesRequest & WithNextToken(const char *value)
const Aws::Vector< Aws::String > & GetDirectoryIds() const
DescribeDirectoriesRequest & WithNextToken(Aws::String &&value)
#define AWS_DIRECTORYSERVICE_API
DescribeDirectoriesRequest & AddDirectoryIds(const char *value)
DescribeDirectoriesRequest & WithDirectoryIds(Aws::Vector< Aws::String > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeDirectoriesRequest & WithDirectoryIds(const Aws::Vector< Aws::String > &value)
void SetDirectoryIds(const Aws::Vector< Aws::String > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
DescribeDirectoriesRequest & WithNextToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeDirectoriesRequest & AddDirectoryIds(const Aws::String &value)
JSON (JavaScript Object Notation).