AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribeAvailablePatchesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm/SSMRequest.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/PatchOrchestratorFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SSM {
17namespace Model {
18
22 public:
23 AWS_SSM_API DescribeAvailablePatchesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeAvailablePatches"; }
30
31 AWS_SSM_API Aws::String SerializePayload() const override;
32
34
36
79 inline const Aws::Vector<PatchOrchestratorFilter>& GetFilters() const { return m_filters; }
80 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
81 template <typename FiltersT = Aws::Vector<PatchOrchestratorFilter>>
82 void SetFilters(FiltersT&& value) {
83 m_filtersHasBeenSet = true;
84 m_filters = std::forward<FiltersT>(value);
85 }
86 template <typename FiltersT = Aws::Vector<PatchOrchestratorFilter>>
88 SetFilters(std::forward<FiltersT>(value));
89 return *this;
90 }
91 template <typename FiltersT = PatchOrchestratorFilter>
93 m_filtersHasBeenSet = true;
94 m_filters.emplace_back(std::forward<FiltersT>(value));
95 return *this;
96 }
98
100
103 inline int GetMaxResults() const { return m_maxResults; }
104 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
105 inline void SetMaxResults(int value) {
106 m_maxResultsHasBeenSet = true;
107 m_maxResults = value;
108 }
110 SetMaxResults(value);
111 return *this;
112 }
114
116
120 inline const Aws::String& GetNextToken() const { return m_nextToken; }
121 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
122 template <typename NextTokenT = Aws::String>
123 void SetNextToken(NextTokenT&& value) {
124 m_nextTokenHasBeenSet = true;
125 m_nextToken = std::forward<NextTokenT>(value);
126 }
127 template <typename NextTokenT = Aws::String>
129 SetNextToken(std::forward<NextTokenT>(value));
130 return *this;
131 }
133 private:
135
136 int m_maxResults{0};
137
138 Aws::String m_nextToken;
139 bool m_filtersHasBeenSet = false;
140 bool m_maxResultsHasBeenSet = false;
141 bool m_nextTokenHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace SSM
146} // namespace Aws
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeAvailablePatchesRequest & WithMaxResults(int value)
DescribeAvailablePatchesRequest & WithNextToken(NextTokenT &&value)
DescribeAvailablePatchesRequest & WithFilters(FiltersT &&value)
DescribeAvailablePatchesRequest & AddFilters(FiltersT &&value)
const Aws::Vector< PatchOrchestratorFilter > & GetFilters() const
AWS_SSM_API Aws::String SerializePayload() const override
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