AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListComplianceItemsRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ssm/model/ComplianceStringFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SSM
17{
18namespace 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_SSM_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::Vector<ComplianceStringFilter>& GetFilters() const{ return m_filters; }
45 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
46 inline void SetFilters(const Aws::Vector<ComplianceStringFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
47 inline void SetFilters(Aws::Vector<ComplianceStringFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
49 inline ListComplianceItemsRequest& WithFilters(Aws::Vector<ComplianceStringFilter>&& value) { SetFilters(std::move(value)); return *this;}
50 inline ListComplianceItemsRequest& AddFilters(const ComplianceStringFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
51 inline ListComplianceItemsRequest& AddFilters(ComplianceStringFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
53
55
59 inline const Aws::Vector<Aws::String>& GetResourceIds() const{ return m_resourceIds; }
60 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
61 inline void SetResourceIds(const Aws::Vector<Aws::String>& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = value; }
62 inline void SetResourceIds(Aws::Vector<Aws::String>&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = std::move(value); }
64 inline ListComplianceItemsRequest& WithResourceIds(Aws::Vector<Aws::String>&& value) { SetResourceIds(std::move(value)); return *this;}
65 inline ListComplianceItemsRequest& AddResourceIds(const Aws::String& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; }
66 inline ListComplianceItemsRequest& AddResourceIds(Aws::String&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(std::move(value)); return *this; }
67 inline ListComplianceItemsRequest& AddResourceIds(const char* value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; }
69
71
75 inline const Aws::Vector<Aws::String>& GetResourceTypes() const{ return m_resourceTypes; }
76 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
77 inline void SetResourceTypes(const Aws::Vector<Aws::String>& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = value; }
78 inline void SetResourceTypes(Aws::Vector<Aws::String>&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = std::move(value); }
81 inline ListComplianceItemsRequest& AddResourceTypes(const Aws::String& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; }
82 inline ListComplianceItemsRequest& AddResourceTypes(Aws::String&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(std::move(value)); return *this; }
83 inline ListComplianceItemsRequest& AddResourceTypes(const char* value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; }
85
87
91 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
92 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
93 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
94 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
95 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
96 inline ListComplianceItemsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
97 inline ListComplianceItemsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
98 inline ListComplianceItemsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
100
102
107 inline int GetMaxResults() const{ return m_maxResults; }
108 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
109 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
110 inline ListComplianceItemsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
112 private:
113
115 bool m_filtersHasBeenSet = false;
116
117 Aws::Vector<Aws::String> m_resourceIds;
118 bool m_resourceIdsHasBeenSet = false;
119
120 Aws::Vector<Aws::String> m_resourceTypes;
121 bool m_resourceTypesHasBeenSet = false;
122
123 Aws::String m_nextToken;
124 bool m_nextTokenHasBeenSet = false;
125
126 int m_maxResults;
127 bool m_maxResultsHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace SSM
132} // namespace Aws
ListComplianceItemsRequest & WithFilters(Aws::Vector< ComplianceStringFilter > &&value)
ListComplianceItemsRequest & AddResourceTypes(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetResourceIds(const Aws::Vector< Aws::String > &value)
ListComplianceItemsRequest & WithResourceTypes(Aws::Vector< Aws::String > &&value)
ListComplianceItemsRequest & AddResourceIds(const Aws::String &value)
ListComplianceItemsRequest & WithNextToken(Aws::String &&value)
void SetFilters(const Aws::Vector< ComplianceStringFilter > &value)
ListComplianceItemsRequest & WithFilters(const Aws::Vector< ComplianceStringFilter > &value)
ListComplianceItemsRequest & WithResourceIds(const Aws::Vector< Aws::String > &value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListComplianceItemsRequest & WithResourceIds(Aws::Vector< Aws::String > &&value)
void SetResourceTypes(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetResourceIds() const
ListComplianceItemsRequest & WithNextToken(const Aws::String &value)
ListComplianceItemsRequest & WithNextToken(const char *value)
ListComplianceItemsRequest & AddFilters(const ComplianceStringFilter &value)
ListComplianceItemsRequest & WithMaxResults(int value)
ListComplianceItemsRequest & AddFilters(ComplianceStringFilter &&value)
ListComplianceItemsRequest & AddResourceTypes(const char *value)
void SetResourceTypes(const Aws::Vector< Aws::String > &value)
ListComplianceItemsRequest & WithResourceTypes(const Aws::Vector< Aws::String > &value)
ListComplianceItemsRequest & AddResourceIds(Aws::String &&value)
const Aws::Vector< Aws::String > & GetResourceTypes() const
ListComplianceItemsRequest & AddResourceIds(const char *value)
AWS_SSM_API Aws::String SerializePayload() const override
ListComplianceItemsRequest & AddResourceTypes(Aws::String &&value)
const Aws::Vector< ComplianceStringFilter > & GetFilters() const
void SetResourceIds(Aws::Vector< Aws::String > &&value)
void SetFilters(Aws::Vector< ComplianceStringFilter > &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector