AWS SDK for C++

AWS SDK for C++ Version 1.11.554

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
DescribeAvailablePatchesRequest.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/PatchOrchestratorFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SSM
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SSM_API DescribeAvailablePatchesRequest() = 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 "DescribeAvailablePatches"; }
33
34 AWS_SSM_API Aws::String SerializePayload() const override;
35
37
38
40
83 inline const Aws::Vector<PatchOrchestratorFilter>& GetFilters() const { return m_filters; }
84 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
85 template<typename FiltersT = Aws::Vector<PatchOrchestratorFilter>>
86 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
87 template<typename FiltersT = Aws::Vector<PatchOrchestratorFilter>>
88 DescribeAvailablePatchesRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
89 template<typename FiltersT = PatchOrchestratorFilter>
90 DescribeAvailablePatchesRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
92
94
97 inline int GetMaxResults() const { return m_maxResults; }
98 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
99 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
100 inline DescribeAvailablePatchesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
102
104
108 inline const Aws::String& GetNextToken() const { return m_nextToken; }
109 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
110 template<typename NextTokenT = Aws::String>
111 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
112 template<typename NextTokenT = Aws::String>
113 DescribeAvailablePatchesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
115 private:
116
118 bool m_filtersHasBeenSet = false;
119
120 int m_maxResults{0};
121 bool m_maxResultsHasBeenSet = false;
122
123 Aws::String m_nextToken;
124 bool m_nextTokenHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace SSM
129} // 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