AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribeMaintenanceWindowsRequest.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/MaintenanceWindowFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SSM {
17namespace Model {
18
22 public:
23 AWS_SSM_API DescribeMaintenanceWindowsRequest() = 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 "DescribeMaintenanceWindows"; }
30
31 AWS_SSM_API Aws::String SerializePayload() const override;
32
34
36
42 inline const Aws::Vector<MaintenanceWindowFilter>& GetFilters() const { return m_filters; }
43 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
44 template <typename FiltersT = Aws::Vector<MaintenanceWindowFilter>>
45 void SetFilters(FiltersT&& value) {
46 m_filtersHasBeenSet = true;
47 m_filters = std::forward<FiltersT>(value);
48 }
49 template <typename FiltersT = Aws::Vector<MaintenanceWindowFilter>>
51 SetFilters(std::forward<FiltersT>(value));
52 return *this;
53 }
54 template <typename FiltersT = MaintenanceWindowFilter>
56 m_filtersHasBeenSet = true;
57 m_filters.emplace_back(std::forward<FiltersT>(value));
58 return *this;
59 }
61
63
68 inline int GetMaxResults() const { return m_maxResults; }
69 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
70 inline void SetMaxResults(int value) {
71 m_maxResultsHasBeenSet = true;
72 m_maxResults = value;
73 }
75 SetMaxResults(value);
76 return *this;
77 }
79
81
85 inline const Aws::String& GetNextToken() const { return m_nextToken; }
86 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
87 template <typename NextTokenT = Aws::String>
88 void SetNextToken(NextTokenT&& value) {
89 m_nextTokenHasBeenSet = true;
90 m_nextToken = std::forward<NextTokenT>(value);
91 }
92 template <typename NextTokenT = Aws::String>
94 SetNextToken(std::forward<NextTokenT>(value));
95 return *this;
96 }
98 private:
100
101 int m_maxResults{0};
102
103 Aws::String m_nextToken;
104 bool m_filtersHasBeenSet = false;
105 bool m_maxResultsHasBeenSet = false;
106 bool m_nextTokenHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace SSM
111} // namespace Aws
DescribeMaintenanceWindowsRequest & WithFilters(FiltersT &&value)
DescribeMaintenanceWindowsRequest & WithMaxResults(int value)
DescribeMaintenanceWindowsRequest & AddFilters(FiltersT &&value)
const Aws::Vector< MaintenanceWindowFilter > & GetFilters() const
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SSM_API Aws::String SerializePayload() const override
DescribeMaintenanceWindowsRequest & WithNextToken(NextTokenT &&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