AWS SDK for C++  1.9.66
AWS SDK for C++
ListAssessmentRunsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Inspector
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "ListAssessmentRuns"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::Vector<Aws::String>& GetAssessmentTemplateArns() const{ return m_assessmentTemplateArns; }
44 
49  inline bool AssessmentTemplateArnsHasBeenSet() const { return m_assessmentTemplateArnsHasBeenSet; }
50 
55  inline void SetAssessmentTemplateArns(const Aws::Vector<Aws::String>& value) { m_assessmentTemplateArnsHasBeenSet = true; m_assessmentTemplateArns = value; }
56 
61  inline void SetAssessmentTemplateArns(Aws::Vector<Aws::String>&& value) { m_assessmentTemplateArnsHasBeenSet = true; m_assessmentTemplateArns = std::move(value); }
62 
67  inline ListAssessmentRunsRequest& WithAssessmentTemplateArns(const Aws::Vector<Aws::String>& value) { SetAssessmentTemplateArns(value); return *this;}
68 
73  inline ListAssessmentRunsRequest& WithAssessmentTemplateArns(Aws::Vector<Aws::String>&& value) { SetAssessmentTemplateArns(std::move(value)); return *this;}
74 
79  inline ListAssessmentRunsRequest& AddAssessmentTemplateArns(const Aws::String& value) { m_assessmentTemplateArnsHasBeenSet = true; m_assessmentTemplateArns.push_back(value); return *this; }
80 
85  inline ListAssessmentRunsRequest& AddAssessmentTemplateArns(Aws::String&& value) { m_assessmentTemplateArnsHasBeenSet = true; m_assessmentTemplateArns.push_back(std::move(value)); return *this; }
86 
91  inline ListAssessmentRunsRequest& AddAssessmentTemplateArns(const char* value) { m_assessmentTemplateArnsHasBeenSet = true; m_assessmentTemplateArns.push_back(value); return *this; }
92 
93 
100  inline const AssessmentRunFilter& GetFilter() const{ return m_filter; }
101 
108  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
109 
116  inline void SetFilter(const AssessmentRunFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
117 
124  inline void SetFilter(AssessmentRunFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
125 
132  inline ListAssessmentRunsRequest& WithFilter(const AssessmentRunFilter& value) { SetFilter(value); return *this;}
133 
140  inline ListAssessmentRunsRequest& WithFilter(AssessmentRunFilter&& value) { SetFilter(std::move(value)); return *this;}
141 
142 
150  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
151 
159  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
160 
168  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
169 
177  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
178 
186  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
187 
195  inline ListAssessmentRunsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
196 
204  inline ListAssessmentRunsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
205 
213  inline ListAssessmentRunsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
214 
215 
220  inline int GetMaxResults() const{ return m_maxResults; }
221 
226  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
227 
232  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
233 
238  inline ListAssessmentRunsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
239 
240  private:
241 
242  Aws::Vector<Aws::String> m_assessmentTemplateArns;
243  bool m_assessmentTemplateArnsHasBeenSet;
244 
245  AssessmentRunFilter m_filter;
246  bool m_filterHasBeenSet;
247 
248  Aws::String m_nextToken;
249  bool m_nextTokenHasBeenSet;
250 
251  int m_maxResults;
252  bool m_maxResultsHasBeenSet;
253  };
254 
255 } // namespace Model
256 } // namespace Inspector
257 } // namespace Aws
Aws::Inspector::Model::ListAssessmentRunsRequest::WithNextToken
ListAssessmentRunsRequest & WithNextToken(const char *value)
Definition: ListAssessmentRunsRequest.h:213
Aws::Inspector::Model::ListAssessmentRunsRequest::WithFilter
ListAssessmentRunsRequest & WithFilter(const AssessmentRunFilter &value)
Definition: ListAssessmentRunsRequest.h:132
InspectorRequest.h
Inspector_EXPORTS.h
Aws::Inspector::Model::ListAssessmentRunsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListAssessmentRunsRequest.h:32
Aws::Inspector::Model::ListAssessmentRunsRequest::AddAssessmentTemplateArns
ListAssessmentRunsRequest & AddAssessmentTemplateArns(const char *value)
Definition: ListAssessmentRunsRequest.h:91
Aws::Inspector::Model::ListAssessmentRunsRequest::WithNextToken
ListAssessmentRunsRequest & WithNextToken(const Aws::String &value)
Definition: ListAssessmentRunsRequest.h:195
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Inspector::Model::ListAssessmentRunsRequest::WithNextToken
ListAssessmentRunsRequest & WithNextToken(Aws::String &&value)
Definition: ListAssessmentRunsRequest.h:204
Aws::Inspector::Model::ListAssessmentRunsRequest::SetFilter
void SetFilter(AssessmentRunFilter &&value)
Definition: ListAssessmentRunsRequest.h:124
Aws::Inspector::Model::ListAssessmentRunsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListAssessmentRunsRequest.h:159
Aws::Inspector::Model::ListAssessmentRunsRequest::SetAssessmentTemplateArns
void SetAssessmentTemplateArns(const Aws::Vector< Aws::String > &value)
Definition: ListAssessmentRunsRequest.h:55
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_INSPECTOR_API
#define AWS_INSPECTOR_API
Definition: Inspector_EXPORTS.h:28
AWSVector.h
Aws::Inspector::Model::ListAssessmentRunsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAssessmentRunsRequest.h:177
Aws::Inspector::Model::ListAssessmentRunsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListAssessmentRunsRequest.h:186
Aws::Inspector::Model::ListAssessmentRunsRequest::AssessmentTemplateArnsHasBeenSet
bool AssessmentTemplateArnsHasBeenSet() const
Definition: ListAssessmentRunsRequest.h:49
Aws::Inspector::InspectorRequest
Definition: InspectorRequest.h:17
Aws::Inspector::Model::ListAssessmentRunsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListAssessmentRunsRequest.h:220
Aws::Inspector::Model::ListAssessmentRunsRequest::ListAssessmentRunsRequest
ListAssessmentRunsRequest()
Aws::Inspector::Model::ListAssessmentRunsRequest::WithAssessmentTemplateArns
ListAssessmentRunsRequest & WithAssessmentTemplateArns(const Aws::Vector< Aws::String > &value)
Definition: ListAssessmentRunsRequest.h:67
Aws::Inspector::Model::ListAssessmentRunsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAssessmentRunsRequest.h:168
Aws::Inspector::Model::ListAssessmentRunsRequest::WithFilter
ListAssessmentRunsRequest & WithFilter(AssessmentRunFilter &&value)
Definition: ListAssessmentRunsRequest.h:140
AWSString.h
Aws::Inspector::Model::ListAssessmentRunsRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: ListAssessmentRunsRequest.h:108
Aws::Inspector::Model::ListAssessmentRunsRequest::GetAssessmentTemplateArns
const Aws::Vector< Aws::String > & GetAssessmentTemplateArns() const
Definition: ListAssessmentRunsRequest.h:43
Aws::Inspector::Model::ListAssessmentRunsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Inspector::Model::ListAssessmentRunsRequest::WithMaxResults
ListAssessmentRunsRequest & WithMaxResults(int value)
Definition: ListAssessmentRunsRequest.h:238
Aws::Inspector::Model::ListAssessmentRunsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListAssessmentRunsRequest.h:232
Aws::Inspector::Model::ListAssessmentRunsRequest::AddAssessmentTemplateArns
ListAssessmentRunsRequest & AddAssessmentTemplateArns(Aws::String &&value)
Definition: ListAssessmentRunsRequest.h:85
Aws
Definition: AccessManagementClient.h:15
Aws::Inspector::Model::ListAssessmentRunsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Inspector::Model::ListAssessmentRunsRequest::SetFilter
void SetFilter(const AssessmentRunFilter &value)
Definition: ListAssessmentRunsRequest.h:116
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Inspector::Model::ListAssessmentRunsRequest::SetAssessmentTemplateArns
void SetAssessmentTemplateArns(Aws::Vector< Aws::String > &&value)
Definition: ListAssessmentRunsRequest.h:61
Aws::Inspector::Model::ListAssessmentRunsRequest
Definition: ListAssessmentRunsRequest.h:24
Aws::Inspector::Model::ListAssessmentRunsRequest::WithAssessmentTemplateArns
ListAssessmentRunsRequest & WithAssessmentTemplateArns(Aws::Vector< Aws::String > &&value)
Definition: ListAssessmentRunsRequest.h:73
Aws::Inspector::Model::ListAssessmentRunsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAssessmentRunsRequest.h:150
Aws::Inspector::Model::ListAssessmentRunsRequest::GetFilter
const AssessmentRunFilter & GetFilter() const
Definition: ListAssessmentRunsRequest.h:100
AssessmentRunFilter.h
Aws::Inspector::Model::ListAssessmentRunsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListAssessmentRunsRequest.h:226
Aws::Inspector::Model::AssessmentRunFilter
Definition: AssessmentRunFilter.h:37
Aws::Inspector::Model::ListAssessmentRunsRequest::AddAssessmentTemplateArns
ListAssessmentRunsRequest & AddAssessmentTemplateArns(const Aws::String &value)
Definition: ListAssessmentRunsRequest.h:79