AWS SDK for C++  0.14.3
AWS SDK for C++
ListDocumentsRequest.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
16 #include <aws/ssm/SSM_EXPORTS.h>
17 #include <aws/ssm/SSMRequest.h>
21 
22 namespace Aws
23 {
24 namespace SSM
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
43  inline const Aws::Vector<DocumentFilter>& GetDocumentFilterList() const{ return m_documentFilterList; }
44 
49  inline void SetDocumentFilterList(const Aws::Vector<DocumentFilter>& value) { m_documentFilterListHasBeenSet = true; m_documentFilterList = value; }
50 
55  inline void SetDocumentFilterList(Aws::Vector<DocumentFilter>&& value) { m_documentFilterListHasBeenSet = true; m_documentFilterList = value; }
56 
61  inline ListDocumentsRequest& WithDocumentFilterList(const Aws::Vector<DocumentFilter>& value) { SetDocumentFilterList(value); return *this;}
62 
67  inline ListDocumentsRequest& WithDocumentFilterList(Aws::Vector<DocumentFilter>&& value) { SetDocumentFilterList(value); return *this;}
68 
73  inline ListDocumentsRequest& AddDocumentFilterList(const DocumentFilter& value) { m_documentFilterListHasBeenSet = true; m_documentFilterList.push_back(value); return *this; }
74 
79  inline ListDocumentsRequest& AddDocumentFilterList(DocumentFilter&& value) { m_documentFilterListHasBeenSet = true; m_documentFilterList.push_back(value); return *this; }
80 
86  inline int GetMaxResults() const{ return m_maxResults; }
87 
93  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
94 
100  inline ListDocumentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
101 
106  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
107 
112  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
113 
118  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
119 
124  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
125 
130  inline ListDocumentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
131 
136  inline ListDocumentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
137 
142  inline ListDocumentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
143 
144  private:
145  Aws::Vector<DocumentFilter> m_documentFilterList;
146  bool m_documentFilterListHasBeenSet;
147  int m_maxResults;
148  bool m_maxResultsHasBeenSet;
149  Aws::String m_nextToken;
150  bool m_nextTokenHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace SSM
155 } // namespace Aws
void SetDocumentFilterList(Aws::Vector< DocumentFilter > &&value)
ListDocumentsRequest & WithDocumentFilterList(Aws::Vector< DocumentFilter > &&value)
ListDocumentsRequest & WithNextToken(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
ListDocumentsRequest & AddDocumentFilterList(DocumentFilter &&value)
void SetNextToken(const Aws::String &value)
void SetDocumentFilterList(const Aws::Vector< DocumentFilter > &value)
ListDocumentsRequest & WithDocumentFilterList(const Aws::Vector< DocumentFilter > &value)
const Aws::String & GetNextToken() const
ListDocumentsRequest & AddDocumentFilterList(const DocumentFilter &value)
ListDocumentsRequest & WithNextToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< DocumentFilter > & GetDocumentFilterList() const
ListDocumentsRequest & WithNextToken(const Aws::String &value)
ListDocumentsRequest & WithMaxResults(int value)
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:37
JSON (JavaScript Object Notation).