AWS SDK for C++  0.14.3
AWS SDK for C++
ListAssessmentsRequest.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
21 
22 namespace Aws
23 {
24 namespace Inspector
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<Aws::String>& GetApplicationArns() const{ return m_applicationArns; }
44 
49  inline void SetApplicationArns(const Aws::Vector<Aws::String>& value) { m_applicationArnsHasBeenSet = true; m_applicationArns = value; }
50 
55  inline void SetApplicationArns(Aws::Vector<Aws::String>&& value) { m_applicationArnsHasBeenSet = true; m_applicationArns = value; }
56 
61  inline ListAssessmentsRequest& WithApplicationArns(const Aws::Vector<Aws::String>& value) { SetApplicationArns(value); return *this;}
62 
67  inline ListAssessmentsRequest& WithApplicationArns(Aws::Vector<Aws::String>&& value) { SetApplicationArns(value); return *this;}
68 
73  inline ListAssessmentsRequest& AddApplicationArns(const Aws::String& value) { m_applicationArnsHasBeenSet = true; m_applicationArns.push_back(value); return *this; }
74 
79  inline ListAssessmentsRequest& AddApplicationArns(Aws::String&& value) { m_applicationArnsHasBeenSet = true; m_applicationArns.push_back(value); return *this; }
80 
85  inline ListAssessmentsRequest& AddApplicationArns(const char* value) { m_applicationArnsHasBeenSet = true; m_applicationArns.push_back(value); return *this; }
86 
93  inline const AssessmentsFilter& GetFilter() const{ return m_filter; }
94 
101  inline void SetFilter(const AssessmentsFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
102 
109  inline void SetFilter(AssessmentsFilter&& value) { m_filterHasBeenSet = true; m_filter = value; }
110 
117  inline ListAssessmentsRequest& WithFilter(const AssessmentsFilter& value) { SetFilter(value); return *this;}
118 
125  inline ListAssessmentsRequest& WithFilter(AssessmentsFilter&& value) { SetFilter(value); return *this;}
126 
133  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
134 
141  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
142 
149  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
150 
157  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
158 
165  inline ListAssessmentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
166 
173  inline ListAssessmentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
174 
181  inline ListAssessmentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
182 
187  inline int GetMaxResults() const{ return m_maxResults; }
188 
193  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
194 
199  inline ListAssessmentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
200 
201  private:
202  Aws::Vector<Aws::String> m_applicationArns;
203  bool m_applicationArnsHasBeenSet;
204  AssessmentsFilter m_filter;
205  bool m_filterHasBeenSet;
206  Aws::String m_nextToken;
207  bool m_nextTokenHasBeenSet;
208  int m_maxResults;
209  bool m_maxResultsHasBeenSet;
210  };
211 
212 } // namespace Model
213 } // namespace Inspector
214 } // namespace Aws
ListAssessmentsRequest & WithMaxResults(int value)
ListAssessmentsRequest & WithFilter(const AssessmentsFilter &value)
ListAssessmentsRequest & WithApplicationArns(const Aws::Vector< Aws::String > &value)
#define AWS_INSPECTOR_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetApplicationArns(const Aws::Vector< Aws::String > &value)
ListAssessmentsRequest & WithFilter(AssessmentsFilter &&value)
void SetFilter(const AssessmentsFilter &value)
ListAssessmentsRequest & WithNextToken(const char *value)
void SetApplicationArns(Aws::Vector< Aws::String > &&value)
ListAssessmentsRequest & WithApplicationArns(Aws::Vector< Aws::String > &&value)
ListAssessmentsRequest & AddApplicationArns(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< Aws::String > & GetApplicationArns() const
ListAssessmentsRequest & WithNextToken(const Aws::String &value)
ListAssessmentsRequest & AddApplicationArns(Aws::String &&value)
const AssessmentsFilter & GetFilter() const
ListAssessmentsRequest & WithNextToken(Aws::String &&value)
ListAssessmentsRequest & AddApplicationArns(const Aws::String &value)
JSON (JavaScript Object Notation).