AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribePatchGroupsRequest.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 DescribePatchGroupsRequest() = 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 "DescribePatchGroups"; }
30
31 AWS_SSM_API Aws::String SerializePayload() const override;
32
34
36
39 inline int GetMaxResults() const { return m_maxResults; }
40 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
41 inline void SetMaxResults(int value) {
42 m_maxResultsHasBeenSet = true;
43 m_maxResults = value;
44 }
46 SetMaxResults(value);
47 return *this;
48 }
50
52
61 inline const Aws::Vector<PatchOrchestratorFilter>& GetFilters() const { return m_filters; }
62 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
63 template <typename FiltersT = Aws::Vector<PatchOrchestratorFilter>>
64 void SetFilters(FiltersT&& value) {
65 m_filtersHasBeenSet = true;
66 m_filters = std::forward<FiltersT>(value);
67 }
68 template <typename FiltersT = Aws::Vector<PatchOrchestratorFilter>>
70 SetFilters(std::forward<FiltersT>(value));
71 return *this;
72 }
73 template <typename FiltersT = PatchOrchestratorFilter>
75 m_filtersHasBeenSet = true;
76 m_filters.emplace_back(std::forward<FiltersT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::String& GetNextToken() const { return m_nextToken; }
87 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
88 template <typename NextTokenT = Aws::String>
89 void SetNextToken(NextTokenT&& value) {
90 m_nextTokenHasBeenSet = true;
91 m_nextToken = std::forward<NextTokenT>(value);
92 }
93 template <typename NextTokenT = Aws::String>
95 SetNextToken(std::forward<NextTokenT>(value));
96 return *this;
97 }
99 private:
100 int m_maxResults{0};
101
103
104 Aws::String m_nextToken;
105 bool m_maxResultsHasBeenSet = false;
106 bool m_filtersHasBeenSet = false;
107 bool m_nextTokenHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace SSM
112} // namespace Aws
const Aws::Vector< PatchOrchestratorFilter > & GetFilters() const
AWS_SSM_API Aws::String SerializePayload() const override
AWS_SSM_API DescribePatchGroupsRequest()=default
DescribePatchGroupsRequest & AddFilters(FiltersT &&value)
DescribePatchGroupsRequest & WithMaxResults(int value)
DescribePatchGroupsRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
DescribePatchGroupsRequest & WithFilters(FiltersT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() 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