AWS SDK for C++  1.8.129
AWS SDK for C++
DescribeOpsItemsRequest.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 "DescribeOpsItems"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
56  inline const Aws::Vector<OpsItemFilter>& GetOpsItemFilters() const{ return m_opsItemFilters; }
57 
75  inline bool OpsItemFiltersHasBeenSet() const { return m_opsItemFiltersHasBeenSet; }
76 
94  inline void SetOpsItemFilters(const Aws::Vector<OpsItemFilter>& value) { m_opsItemFiltersHasBeenSet = true; m_opsItemFilters = value; }
95 
113  inline void SetOpsItemFilters(Aws::Vector<OpsItemFilter>&& value) { m_opsItemFiltersHasBeenSet = true; m_opsItemFilters = std::move(value); }
114 
132  inline DescribeOpsItemsRequest& WithOpsItemFilters(const Aws::Vector<OpsItemFilter>& value) { SetOpsItemFilters(value); return *this;}
133 
151  inline DescribeOpsItemsRequest& WithOpsItemFilters(Aws::Vector<OpsItemFilter>&& value) { SetOpsItemFilters(std::move(value)); return *this;}
152 
170  inline DescribeOpsItemsRequest& AddOpsItemFilters(const OpsItemFilter& value) { m_opsItemFiltersHasBeenSet = true; m_opsItemFilters.push_back(value); return *this; }
171 
189  inline DescribeOpsItemsRequest& AddOpsItemFilters(OpsItemFilter&& value) { m_opsItemFiltersHasBeenSet = true; m_opsItemFilters.push_back(std::move(value)); return *this; }
190 
191 
197  inline int GetMaxResults() const{ return m_maxResults; }
198 
204  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
205 
211  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
212 
218  inline DescribeOpsItemsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
219 
220 
224  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
225 
229  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
230 
234  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
235 
239  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
240 
244  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
245 
249  inline DescribeOpsItemsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
250 
254  inline DescribeOpsItemsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
255 
259  inline DescribeOpsItemsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
260 
261  private:
262 
263  Aws::Vector<OpsItemFilter> m_opsItemFilters;
264  bool m_opsItemFiltersHasBeenSet;
265 
266  int m_maxResults;
267  bool m_maxResultsHasBeenSet;
268 
269  Aws::String m_nextToken;
270  bool m_nextTokenHasBeenSet;
271  };
272 
273 } // namespace Model
274 } // namespace SSM
275 } // namespace Aws
Aws::SSM::Model::DescribeOpsItemsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SSM::Model::DescribeOpsItemsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeOpsItemsRequest.h:244
AWS_SSM_API
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
Aws::SSM::Model::DescribeOpsItemsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeOpsItemsRequest.h:197
Aws::SSM::Model::DescribeOpsItemsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeOpsItemsRequest.h:32
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
SSM_EXPORTS.h
AWSVector.h
Aws::SSM::Model::DescribeOpsItemsRequest::WithOpsItemFilters
DescribeOpsItemsRequest & WithOpsItemFilters(const Aws::Vector< OpsItemFilter > &value)
Definition: DescribeOpsItemsRequest.h:132
Aws::SSM::Model::DescribeOpsItemsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSM::Model::DescribeOpsItemsRequest::WithOpsItemFilters
DescribeOpsItemsRequest & WithOpsItemFilters(Aws::Vector< OpsItemFilter > &&value)
Definition: DescribeOpsItemsRequest.h:151
Aws::SSM::Model::DescribeOpsItemsRequest
Definition: DescribeOpsItemsRequest.h:24
Aws::SSM::Model::DescribeOpsItemsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeOpsItemsRequest.h:204
Aws::SSM::Model::DescribeOpsItemsRequest::AddOpsItemFilters
DescribeOpsItemsRequest & AddOpsItemFilters(const OpsItemFilter &value)
Definition: DescribeOpsItemsRequest.h:170
Aws::SSM::Model::DescribeOpsItemsRequest::OpsItemFiltersHasBeenSet
bool OpsItemFiltersHasBeenSet() const
Definition: DescribeOpsItemsRequest.h:75
Aws::SSM::Model::DescribeOpsItemsRequest::WithNextToken
DescribeOpsItemsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeOpsItemsRequest.h:249
Aws::SSM::Model::DescribeOpsItemsRequest::AddOpsItemFilters
DescribeOpsItemsRequest & AddOpsItemFilters(OpsItemFilter &&value)
Definition: DescribeOpsItemsRequest.h:189
Aws::SSM::Model::DescribeOpsItemsRequest::GetOpsItemFilters
const Aws::Vector< OpsItemFilter > & GetOpsItemFilters() const
Definition: DescribeOpsItemsRequest.h:56
Aws::SSM::Model::DescribeOpsItemsRequest::SetOpsItemFilters
void SetOpsItemFilters(Aws::Vector< OpsItemFilter > &&value)
Definition: DescribeOpsItemsRequest.h:113
AWSString.h
Aws::SMS::Model::AppValidationStrategy::NOT_SET
@ NOT_SET
Aws::SSM::Model::DescribeOpsItemsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeOpsItemsRequest.h:229
Aws::SSM::Model::DescribeOpsItemsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeOpsItemsRequest.h:234
Aws::SSM::Model::OpsItemFilter
Definition: OpsItemFilter.h:35
Aws
Definition: AccessManagementClient.h:15
Aws::SSM::Model::DescribeOpsItemsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeOpsItemsRequest.h:224
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSM::Model::DescribeOpsItemsRequest::WithNextToken
DescribeOpsItemsRequest & WithNextToken(const char *value)
Definition: DescribeOpsItemsRequest.h:259
Aws::SSM::Model::DescribeOpsItemsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeOpsItemsRequest.h:239
Aws::SSM::Model::DescribeOpsItemsRequest::DescribeOpsItemsRequest
DescribeOpsItemsRequest()
Aws::SSM::Model::DescribeOpsItemsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeOpsItemsRequest.h:211
Aws::SSM::SSMRequest
Definition: SSMRequest.h:17
Aws::SSM::Model::DescribeOpsItemsRequest::WithMaxResults
DescribeOpsItemsRequest & WithMaxResults(int value)
Definition: DescribeOpsItemsRequest.h:218
SSMRequest.h
OpsItemFilter.h
Aws::SSM::Model::DescribeOpsItemsRequest::SetOpsItemFilters
void SetOpsItemFilters(const Aws::Vector< OpsItemFilter > &value)
Definition: DescribeOpsItemsRequest.h:94
Aws::SSM::Model::DescribeOpsItemsRequest::WithNextToken
DescribeOpsItemsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeOpsItemsRequest.h:254