AWS SDK for C++  1.8.126
AWS SDK for C++
ListComplianceItemsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ssm/SSM_EXPORTS.h>
8 #include <aws/ssm/SSMRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SSM
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 "ListComplianceItems"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::Vector<ComplianceStringFilter>& GetFilters() const{ return m_filters; }
44 
49  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
50 
55  inline void SetFilters(const Aws::Vector<ComplianceStringFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
56 
61  inline void SetFilters(Aws::Vector<ComplianceStringFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
62 
67  inline ListComplianceItemsRequest& WithFilters(const Aws::Vector<ComplianceStringFilter>& value) { SetFilters(value); return *this;}
68 
73  inline ListComplianceItemsRequest& WithFilters(Aws::Vector<ComplianceStringFilter>&& value) { SetFilters(std::move(value)); return *this;}
74 
79  inline ListComplianceItemsRequest& AddFilters(const ComplianceStringFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
80 
85  inline ListComplianceItemsRequest& AddFilters(ComplianceStringFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
86 
87 
92  inline const Aws::Vector<Aws::String>& GetResourceIds() const{ return m_resourceIds; }
93 
98  inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
99 
104  inline void SetResourceIds(const Aws::Vector<Aws::String>& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = value; }
105 
110  inline void SetResourceIds(Aws::Vector<Aws::String>&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = std::move(value); }
111 
116  inline ListComplianceItemsRequest& WithResourceIds(const Aws::Vector<Aws::String>& value) { SetResourceIds(value); return *this;}
117 
122  inline ListComplianceItemsRequest& WithResourceIds(Aws::Vector<Aws::String>&& value) { SetResourceIds(std::move(value)); return *this;}
123 
128  inline ListComplianceItemsRequest& AddResourceIds(const Aws::String& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; }
129 
134  inline ListComplianceItemsRequest& AddResourceIds(Aws::String&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(std::move(value)); return *this; }
135 
140  inline ListComplianceItemsRequest& AddResourceIds(const char* value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; }
141 
142 
147  inline const Aws::Vector<Aws::String>& GetResourceTypes() const{ return m_resourceTypes; }
148 
153  inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
154 
159  inline void SetResourceTypes(const Aws::Vector<Aws::String>& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = value; }
160 
165  inline void SetResourceTypes(Aws::Vector<Aws::String>&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = std::move(value); }
166 
171  inline ListComplianceItemsRequest& WithResourceTypes(const Aws::Vector<Aws::String>& value) { SetResourceTypes(value); return *this;}
172 
177  inline ListComplianceItemsRequest& WithResourceTypes(Aws::Vector<Aws::String>&& value) { SetResourceTypes(std::move(value)); return *this;}
178 
183  inline ListComplianceItemsRequest& AddResourceTypes(const Aws::String& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; }
184 
189  inline ListComplianceItemsRequest& AddResourceTypes(Aws::String&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(std::move(value)); return *this; }
190 
195  inline ListComplianceItemsRequest& AddResourceTypes(const char* value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; }
196 
197 
202  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
203 
208  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
209 
214  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
215 
220  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
221 
226  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
227 
232  inline ListComplianceItemsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
233 
238  inline ListComplianceItemsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
239 
244  inline ListComplianceItemsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
245 
246 
252  inline int GetMaxResults() const{ return m_maxResults; }
253 
259  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
260 
266  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
267 
273  inline ListComplianceItemsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
274 
275  private:
276 
278  bool m_filtersHasBeenSet;
279 
280  Aws::Vector<Aws::String> m_resourceIds;
281  bool m_resourceIdsHasBeenSet;
282 
283  Aws::Vector<Aws::String> m_resourceTypes;
284  bool m_resourceTypesHasBeenSet;
285 
286  Aws::String m_nextToken;
287  bool m_nextTokenHasBeenSet;
288 
289  int m_maxResults;
290  bool m_maxResultsHasBeenSet;
291  };
292 
293 } // namespace Model
294 } // namespace SSM
295 } // namespace Aws
Aws::SSM::Model::ListComplianceItemsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListComplianceItemsRequest.h:252
Aws::SSM::Model::ListComplianceItemsRequest::AddResourceTypes
ListComplianceItemsRequest & AddResourceTypes(const Aws::String &value)
Definition: ListComplianceItemsRequest.h:183
Aws::SSM::Model::ListComplianceItemsRequest::WithResourceIds
ListComplianceItemsRequest & WithResourceIds(Aws::Vector< Aws::String > &&value)
Definition: ListComplianceItemsRequest.h:122
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AWS_SSM_API
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
ComplianceStringFilter.h
Aws::SSM::Model::ListComplianceItemsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListComplianceItemsRequest.h:259
Aws::SSM::Model::ListComplianceItemsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListComplianceItemsRequest.h:202
Aws::SSM::Model::ListComplianceItemsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListComplianceItemsRequest.h:226
Aws::SSM::Model::ListComplianceItemsRequest::WithFilters
ListComplianceItemsRequest & WithFilters(Aws::Vector< ComplianceStringFilter > &&value)
Definition: ListComplianceItemsRequest.h:73
Aws::SSM::Model::ListComplianceItemsRequest::GetFilters
const Aws::Vector< ComplianceStringFilter > & GetFilters() const
Definition: ListComplianceItemsRequest.h:43
Aws::SSM::Model::ListComplianceItemsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: ListComplianceItemsRequest.h:49
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
SSM_EXPORTS.h
Aws::SSM::Model::ListComplianceItemsRequest::ResourceIdsHasBeenSet
bool ResourceIdsHasBeenSet() const
Definition: ListComplianceItemsRequest.h:98
Aws::SSM::Model::ListComplianceItemsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListComplianceItemsRequest.h:214
AWSVector.h
Aws::SSM::Model::ListComplianceItemsRequest::WithNextToken
ListComplianceItemsRequest & WithNextToken(const char *value)
Definition: ListComplianceItemsRequest.h:244
Aws::SSM::Model::ListComplianceItemsRequest::SetResourceTypes
void SetResourceTypes(Aws::Vector< Aws::String > &&value)
Definition: ListComplianceItemsRequest.h:165
Aws::SSM::Model::ListComplianceItemsRequest::AddFilters
ListComplianceItemsRequest & AddFilters(ComplianceStringFilter &&value)
Definition: ListComplianceItemsRequest.h:85
Aws::SSM::Model::ListComplianceItemsRequest::AddResourceTypes
ListComplianceItemsRequest & AddResourceTypes(const char *value)
Definition: ListComplianceItemsRequest.h:195
Aws::SSM::Model::ListComplianceItemsRequest::WithMaxResults
ListComplianceItemsRequest & WithMaxResults(int value)
Definition: ListComplianceItemsRequest.h:273
Aws::SSM::Model::ListComplianceItemsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListComplianceItemsRequest.h:220
Aws::SSM::Model::ListComplianceItemsRequest::SetResourceIds
void SetResourceIds(const Aws::Vector< Aws::String > &value)
Definition: ListComplianceItemsRequest.h:104
Aws::SSM::Model::ListComplianceItemsRequest::AddResourceTypes
ListComplianceItemsRequest & AddResourceTypes(Aws::String &&value)
Definition: ListComplianceItemsRequest.h:189
Aws::SSM::Model::ListComplianceItemsRequest::GetResourceIds
const Aws::Vector< Aws::String > & GetResourceIds() const
Definition: ListComplianceItemsRequest.h:92
Aws::SSM::Model::ListComplianceItemsRequest::WithResourceIds
ListComplianceItemsRequest & WithResourceIds(const Aws::Vector< Aws::String > &value)
Definition: ListComplianceItemsRequest.h:116
Aws::SSM::Model::ListComplianceItemsRequest::AddFilters
ListComplianceItemsRequest & AddFilters(const ComplianceStringFilter &value)
Definition: ListComplianceItemsRequest.h:79
Aws::SSM::Model::ListComplianceItemsRequest::GetResourceTypes
const Aws::Vector< Aws::String > & GetResourceTypes() const
Definition: ListComplianceItemsRequest.h:147
Aws::SSM::Model::ListComplianceItemsRequest::WithFilters
ListComplianceItemsRequest & WithFilters(const Aws::Vector< ComplianceStringFilter > &value)
Definition: ListComplianceItemsRequest.h:67
AWSString.h
Aws::SMS::Model::AppValidationStrategy::NOT_SET
@ NOT_SET
Aws::SSM::Model::ListComplianceItemsRequest::AddResourceIds
ListComplianceItemsRequest & AddResourceIds(Aws::String &&value)
Definition: ListComplianceItemsRequest.h:134
Aws::SSM::Model::ListComplianceItemsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListComplianceItemsRequest.h:266
Aws::SSM::Model::ComplianceStringFilter
Definition: ComplianceStringFilter.h:35
Aws::SSM::Model::ListComplianceItemsRequest
Definition: ListComplianceItemsRequest.h:24
Aws::SSM::Model::ListComplianceItemsRequest::SetFilters
void SetFilters(Aws::Vector< ComplianceStringFilter > &&value)
Definition: ListComplianceItemsRequest.h:61
Aws::SSM::Model::ListComplianceItemsRequest::AddResourceIds
ListComplianceItemsRequest & AddResourceIds(const char *value)
Definition: ListComplianceItemsRequest.h:140
Aws::SSM::Model::ListComplianceItemsRequest::AddResourceIds
ListComplianceItemsRequest & AddResourceIds(const Aws::String &value)
Definition: ListComplianceItemsRequest.h:128
Aws::SSM::Model::ListComplianceItemsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SSM::Model::ListComplianceItemsRequest::WithResourceTypes
ListComplianceItemsRequest & WithResourceTypes(Aws::Vector< Aws::String > &&value)
Definition: ListComplianceItemsRequest.h:177
Aws
Definition: AccessManagementClient.h:15
Aws::SSM::Model::ListComplianceItemsRequest::ResourceTypesHasBeenSet
bool ResourceTypesHasBeenSet() const
Definition: ListComplianceItemsRequest.h:153
Aws::SSM::Model::ListComplianceItemsRequest::WithNextToken
ListComplianceItemsRequest & WithNextToken(const Aws::String &value)
Definition: ListComplianceItemsRequest.h:232
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSM::Model::ListComplianceItemsRequest::SetResourceIds
void SetResourceIds(Aws::Vector< Aws::String > &&value)
Definition: ListComplianceItemsRequest.h:110
Aws::SSM::Model::ListComplianceItemsRequest::SetFilters
void SetFilters(const Aws::Vector< ComplianceStringFilter > &value)
Definition: ListComplianceItemsRequest.h:55
Aws::SSM::Model::ListComplianceItemsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListComplianceItemsRequest.h:32
Aws::SSM::Model::ListComplianceItemsRequest::ListComplianceItemsRequest
ListComplianceItemsRequest()
Aws::SSM::Model::ListComplianceItemsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListComplianceItemsRequest.h:208
Aws::SSM::Model::ListComplianceItemsRequest::WithNextToken
ListComplianceItemsRequest & WithNextToken(Aws::String &&value)
Definition: ListComplianceItemsRequest.h:238
Aws::SSM::SSMRequest
Definition: SSMRequest.h:17
Aws::SSM::Model::ListComplianceItemsRequest::SetResourceTypes
void SetResourceTypes(const Aws::Vector< Aws::String > &value)
Definition: ListComplianceItemsRequest.h:159
Aws::SSM::Model::ListComplianceItemsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSM::Model::ListComplianceItemsRequest::WithResourceTypes
ListComplianceItemsRequest & WithResourceTypes(const Aws::Vector< Aws::String > &value)
Definition: ListComplianceItemsRequest.h:171
SSMRequest.h