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
DescribePatchGroupsRequest.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 DescribePatchGroupsRequest() = 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 "DescribePatchGroups"; }
33
34 AWS_SSM_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline int GetMaxResults() const { return m_maxResults; }
44 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
45 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
46 inline DescribePatchGroupsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
48
50
59 inline const Aws::Vector<PatchOrchestratorFilter>& GetFilters() const { return m_filters; }
60 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
61 template<typename FiltersT = Aws::Vector<PatchOrchestratorFilter>>
62 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
63 template<typename FiltersT = Aws::Vector<PatchOrchestratorFilter>>
64 DescribePatchGroupsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
65 template<typename FiltersT = PatchOrchestratorFilter>
66 DescribePatchGroupsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
68
70
74 inline const Aws::String& GetNextToken() const { return m_nextToken; }
75 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
76 template<typename NextTokenT = Aws::String>
77 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
78 template<typename NextTokenT = Aws::String>
79 DescribePatchGroupsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
81 private:
82
83 int m_maxResults{0};
84 bool m_maxResultsHasBeenSet = false;
85
87 bool m_filtersHasBeenSet = false;
88
89 Aws::String m_nextToken;
90 bool m_nextTokenHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace SSM
95} // 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