AWS SDK for C++  1.9.131
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 
45  inline const Aws::Vector<MaintenanceWindowFilter>& GetFilters() const{ return m_filters; }
46 
53  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
54 
61  inline void SetFilters(const Aws::Vector<MaintenanceWindowFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
62 
69  inline void SetFilters(Aws::Vector<MaintenanceWindowFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
70 
77  inline DescribeMaintenanceWindowsRequest& WithFilters(const Aws::Vector<MaintenanceWindowFilter>& value) { SetFilters(value); return *this;}
78 
85  inline DescribeMaintenanceWindowsRequest& WithFilters(Aws::Vector<MaintenanceWindowFilter>&& value) { SetFilters(std::move(value)); return *this;}
86 
93  inline DescribeMaintenanceWindowsRequest& AddFilters(const MaintenanceWindowFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
94 
101  inline DescribeMaintenanceWindowsRequest& AddFilters(MaintenanceWindowFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
102 
103 
109  inline int GetMaxResults() const{ return m_maxResults; }
110 
116  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
117 
123  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
124 
130  inline DescribeMaintenanceWindowsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
131 
132 
137  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
138 
143  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
144 
149  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
150 
155  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
156 
161  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
162 
167  inline DescribeMaintenanceWindowsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
168 
173  inline DescribeMaintenanceWindowsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
174 
179  inline DescribeMaintenanceWindowsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
180 
181  private:
182 
184  bool m_filtersHasBeenSet;
185 
186  int m_maxResults;
187  bool m_maxResultsHasBeenSet;
188 
189  Aws::String m_nextToken;
190  bool m_nextTokenHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace SSM
195 } // namespace Aws
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::WithNextToken
DescribeMaintenanceWindowsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeMaintenanceWindowsRequest.h:167
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeMaintenanceWindowsRequest.h:53
Aws::SSM::Model::MaintenanceWindowFilter
Definition: MaintenanceWindowFilter.h:41
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:130
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::WithFilters
DescribeMaintenanceWindowsRequest & WithFilters(Aws::Vector< MaintenanceWindowFilter > &&value)
Definition: DescribeMaintenanceWindowsRequest.h:85
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:161
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::WithFilters
DescribeMaintenanceWindowsRequest & WithFilters(const Aws::Vector< MaintenanceWindowFilter > &value)
Definition: DescribeMaintenanceWindowsRequest.h:77
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::AddFilters
DescribeMaintenanceWindowsRequest & AddFilters(const MaintenanceWindowFilter &value)
Definition: DescribeMaintenanceWindowsRequest.h:93
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:143
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeMaintenanceWindowsRequest.h:149
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::DescribeMaintenanceWindowsRequest
DescribeMaintenanceWindowsRequest()
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::GetFilters
const Aws::Vector< MaintenanceWindowFilter > & GetFilters() const
Definition: DescribeMaintenanceWindowsRequest.h:45
Aws
Definition: AccessManagementClient.h:15
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::SetFilters
void SetFilters(Aws::Vector< MaintenanceWindowFilter > &&value)
Definition: DescribeMaintenanceWindowsRequest.h:69
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::AddFilters
DescribeMaintenanceWindowsRequest & AddFilters(MaintenanceWindowFilter &&value)
Definition: DescribeMaintenanceWindowsRequest.h:101
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:123
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::SetFilters
void SetFilters(const Aws::Vector< MaintenanceWindowFilter > &value)
Definition: DescribeMaintenanceWindowsRequest.h:61
Aws::SSM::SSMRequest
Definition: SSMRequest.h:17
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::WithNextToken
DescribeMaintenanceWindowsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeMaintenanceWindowsRequest.h:173
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeMaintenanceWindowsRequest.h:155
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeMaintenanceWindowsRequest.h:109
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeMaintenanceWindowsRequest.h:137
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::WithNextToken
DescribeMaintenanceWindowsRequest & WithNextToken(const char *value)
Definition: DescribeMaintenanceWindowsRequest.h:179
Aws::SSM::Model::DescribeMaintenanceWindowsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeMaintenanceWindowsRequest.h:116
SSMRequest.h