AWS SDK for C++

AWS SDK for C++ Version 1.11.552

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
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:
26 AWS_SSM_API ListComplianceItemsRequest() = default;
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 template<typename FiltersT = Aws::Vector<ComplianceStringFilter>>
47 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
48 template<typename FiltersT = Aws::Vector<ComplianceStringFilter>>
49 ListComplianceItemsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
50 template<typename FiltersT = ComplianceStringFilter>
51 ListComplianceItemsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(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 template<typename ResourceIdsT = Aws::Vector<Aws::String>>
62 void SetResourceIds(ResourceIdsT&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = std::forward<ResourceIdsT>(value); }
63 template<typename ResourceIdsT = Aws::Vector<Aws::String>>
64 ListComplianceItemsRequest& WithResourceIds(ResourceIdsT&& value) { SetResourceIds(std::forward<ResourceIdsT>(value)); return *this;}
65 template<typename ResourceIdsT = Aws::String>
66 ListComplianceItemsRequest& AddResourceIds(ResourceIdsT&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.emplace_back(std::forward<ResourceIdsT>(value)); return *this; }
68
70
74 inline const Aws::Vector<Aws::String>& GetResourceTypes() const { return m_resourceTypes; }
75 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
76 template<typename ResourceTypesT = Aws::Vector<Aws::String>>
77 void SetResourceTypes(ResourceTypesT&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = std::forward<ResourceTypesT>(value); }
78 template<typename ResourceTypesT = Aws::Vector<Aws::String>>
79 ListComplianceItemsRequest& WithResourceTypes(ResourceTypesT&& value) { SetResourceTypes(std::forward<ResourceTypesT>(value)); return *this;}
80 template<typename ResourceTypesT = Aws::String>
81 ListComplianceItemsRequest& AddResourceTypes(ResourceTypesT&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.emplace_back(std::forward<ResourceTypesT>(value)); return *this; }
83
85
89 inline const Aws::String& GetNextToken() const { return m_nextToken; }
90 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
91 template<typename NextTokenT = Aws::String>
92 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
93 template<typename NextTokenT = Aws::String>
94 ListComplianceItemsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
96
98
103 inline int GetMaxResults() const { return m_maxResults; }
104 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
105 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
106 inline ListComplianceItemsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
108 private:
109
111 bool m_filtersHasBeenSet = false;
112
113 Aws::Vector<Aws::String> m_resourceIds;
114 bool m_resourceIdsHasBeenSet = false;
115
116 Aws::Vector<Aws::String> m_resourceTypes;
117 bool m_resourceTypesHasBeenSet = false;
118
119 Aws::String m_nextToken;
120 bool m_nextTokenHasBeenSet = false;
121
122 int m_maxResults{0};
123 bool m_maxResultsHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace SSM
128} // namespace Aws
virtual const char * GetServiceRequestName() const override
ListComplianceItemsRequest & AddResourceIds(ResourceIdsT &&value)
ListComplianceItemsRequest & WithNextToken(NextTokenT &&value)
ListComplianceItemsRequest & AddFilters(FiltersT &&value)
ListComplianceItemsRequest & WithResourceTypes(ResourceTypesT &&value)
ListComplianceItemsRequest & WithFilters(FiltersT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListComplianceItemsRequest & WithResourceIds(ResourceIdsT &&value)
const Aws::Vector< Aws::String > & GetResourceIds() const
ListComplianceItemsRequest & WithMaxResults(int value)
const Aws::Vector< Aws::String > & GetResourceTypes() const
AWS_SSM_API ListComplianceItemsRequest()=default
AWS_SSM_API Aws::String SerializePayload() const override
const Aws::Vector< ComplianceStringFilter > & GetFilters() const
ListComplianceItemsRequest & AddResourceTypes(ResourceTypesT &&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