AWS SDK for C++  1.8.129
AWS SDK for C++
DescribeMaintenanceWindowsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ssm/SSM_EXPORTS.h>
8 #include <aws/ssm/SSMRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SSM
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "DescribeMaintenanceWindows"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::Vector<MaintenanceWindowFilter>& GetFilters() const{ return m_filters; }
44 
49  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
50 
55  inline void SetFilters(const Aws::Vector<MaintenanceWindowFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
56 
61  inline void SetFilters(Aws::Vector<MaintenanceWindowFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
62 
67  inline DescribeMaintenanceWindowsRequest& WithFilters(const Aws::Vector<MaintenanceWindowFilter>& value) { SetFilters(value); return *this;}
68 
73  inline DescribeMaintenanceWindowsRequest& WithFilters(Aws::Vector<MaintenanceWindowFilter>&& value) { SetFilters(std::move(value)); return *this;}
74 
79  inline DescribeMaintenanceWindowsRequest& AddFilters(const MaintenanceWindowFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
80 
85  inline DescribeMaintenanceWindowsRequest& AddFilters(MaintenanceWindowFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
86 
87 
93  inline int GetMaxResults() const{ return m_maxResults; }
94 
100  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
101 
107  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
108 
114  inline DescribeMaintenanceWindowsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
115 
116 
121  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
122 
127  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
128 
133  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
134 
139  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
140 
145  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
146 
151  inline DescribeMaintenanceWindowsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
152 
157  inline DescribeMaintenanceWindowsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
158 
163  inline DescribeMaintenanceWindowsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
164 
165  private:
166 
168  bool m_filtersHasBeenSet;
169 
170  int m_maxResults;
171  bool m_maxResultsHasBeenSet;
172 
173  Aws::String m_nextToken;
174  bool m_nextTokenHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace SSM
179 } // namespace Aws
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::WithNextToken
DescribeMaintenanceWindowsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeMaintenanceWindowsRequest.h:151
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeMaintenanceWindowsRequest.h:49
Aws::SSM::Model::MaintenanceWindowFilter
Definition: MaintenanceWindowFilter.h:34
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AWS_SSM_API
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::WithMaxResults
DescribeMaintenanceWindowsRequest & WithMaxResults(int value)
Definition: DescribeMaintenanceWindowsRequest.h:114
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::WithFilters
DescribeMaintenanceWindowsRequest & WithFilters(Aws::Vector< MaintenanceWindowFilter > &&value)
Definition: DescribeMaintenanceWindowsRequest.h:73
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
SSM_EXPORTS.h
Aws::SSM::Model::DescribeMaintenanceWindowsRequest
Definition: DescribeMaintenanceWindowsRequest.h:24
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSVector.h
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeMaintenanceWindowsRequest.h:145
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::WithFilters
DescribeMaintenanceWindowsRequest & WithFilters(const Aws::Vector< MaintenanceWindowFilter > &value)
Definition: DescribeMaintenanceWindowsRequest.h:67
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::AddFilters
DescribeMaintenanceWindowsRequest & AddFilters(const MaintenanceWindowFilter &value)
Definition: DescribeMaintenanceWindowsRequest.h:79
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeMaintenanceWindowsRequest.h:32
AWSString.h
Aws::SMS::Model::AppValidationStrategy::NOT_SET
@ NOT_SET
MaintenanceWindowFilter.h
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeMaintenanceWindowsRequest.h:127
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeMaintenanceWindowsRequest.h:133
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::DescribeMaintenanceWindowsRequest
DescribeMaintenanceWindowsRequest()
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::GetFilters
const Aws::Vector< MaintenanceWindowFilter > & GetFilters() const
Definition: DescribeMaintenanceWindowsRequest.h:43
Aws
Definition: AccessManagementClient.h:15
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::SetFilters
void SetFilters(Aws::Vector< MaintenanceWindowFilter > &&value)
Definition: DescribeMaintenanceWindowsRequest.h:61
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::AddFilters
DescribeMaintenanceWindowsRequest & AddFilters(MaintenanceWindowFilter &&value)
Definition: DescribeMaintenanceWindowsRequest.h:85
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeMaintenanceWindowsRequest.h:107
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::SetFilters
void SetFilters(const Aws::Vector< MaintenanceWindowFilter > &value)
Definition: DescribeMaintenanceWindowsRequest.h:55
Aws::SSM::SSMRequest
Definition: SSMRequest.h:17
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::WithNextToken
DescribeMaintenanceWindowsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeMaintenanceWindowsRequest.h:157
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeMaintenanceWindowsRequest.h:139
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeMaintenanceWindowsRequest.h:93
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeMaintenanceWindowsRequest.h:121
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::WithNextToken
DescribeMaintenanceWindowsRequest & WithNextToken(const char *value)
Definition: DescribeMaintenanceWindowsRequest.h:163
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeMaintenanceWindowsRequest.h:100
SSMRequest.h