AWS SDK for C++  1.9.131
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 
58  inline const Aws::Vector<OpsItemFilter>& GetOpsItemFilters() const{ return m_opsItemFilters; }
59 
79  inline bool OpsItemFiltersHasBeenSet() const { return m_opsItemFiltersHasBeenSet; }
80 
100  inline void SetOpsItemFilters(const Aws::Vector<OpsItemFilter>& value) { m_opsItemFiltersHasBeenSet = true; m_opsItemFilters = value; }
101 
121  inline void SetOpsItemFilters(Aws::Vector<OpsItemFilter>&& value) { m_opsItemFiltersHasBeenSet = true; m_opsItemFilters = std::move(value); }
122 
142  inline DescribeOpsItemsRequest& WithOpsItemFilters(const Aws::Vector<OpsItemFilter>& value) { SetOpsItemFilters(value); return *this;}
143 
163  inline DescribeOpsItemsRequest& WithOpsItemFilters(Aws::Vector<OpsItemFilter>&& value) { SetOpsItemFilters(std::move(value)); return *this;}
164 
184  inline DescribeOpsItemsRequest& AddOpsItemFilters(const OpsItemFilter& value) { m_opsItemFiltersHasBeenSet = true; m_opsItemFilters.push_back(value); return *this; }
185 
205  inline DescribeOpsItemsRequest& AddOpsItemFilters(OpsItemFilter&& value) { m_opsItemFiltersHasBeenSet = true; m_opsItemFilters.push_back(std::move(value)); return *this; }
206 
207 
213  inline int GetMaxResults() const{ return m_maxResults; }
214 
220  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
221 
227  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
228 
234  inline DescribeOpsItemsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
235 
236 
240  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
241 
245  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
246 
250  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
251 
255  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
256 
260  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
261 
265  inline DescribeOpsItemsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
266 
270  inline DescribeOpsItemsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
271 
275  inline DescribeOpsItemsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
276 
277  private:
278 
279  Aws::Vector<OpsItemFilter> m_opsItemFilters;
280  bool m_opsItemFiltersHasBeenSet;
281 
282  int m_maxResults;
283  bool m_maxResultsHasBeenSet;
284 
285  Aws::String m_nextToken;
286  bool m_nextTokenHasBeenSet;
287  };
288 
289 } // namespace Model
290 } // namespace SSM
291 } // 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:260
AWS_SSM_API
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
Aws::SSM::Model::DescribeOpsItemsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeOpsItemsRequest.h:213
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:142
Aws::SSM::Model::DescribeOpsItemsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSM::Model::DescribeOpsItemsRequest::WithOpsItemFilters
DescribeOpsItemsRequest & WithOpsItemFilters(Aws::Vector< OpsItemFilter > &&value)
Definition: DescribeOpsItemsRequest.h:163
Aws::SSM::Model::DescribeOpsItemsRequest
Definition: DescribeOpsItemsRequest.h:24
Aws::SSM::Model::DescribeOpsItemsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeOpsItemsRequest.h:220
Aws::SSM::Model::DescribeOpsItemsRequest::AddOpsItemFilters
DescribeOpsItemsRequest & AddOpsItemFilters(const OpsItemFilter &value)
Definition: DescribeOpsItemsRequest.h:184
Aws::SSM::Model::DescribeOpsItemsRequest::OpsItemFiltersHasBeenSet
bool OpsItemFiltersHasBeenSet() const
Definition: DescribeOpsItemsRequest.h:79
Aws::SSM::Model::DescribeOpsItemsRequest::WithNextToken
DescribeOpsItemsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeOpsItemsRequest.h:265
Aws::SSM::Model::DescribeOpsItemsRequest::AddOpsItemFilters
DescribeOpsItemsRequest & AddOpsItemFilters(OpsItemFilter &&value)
Definition: DescribeOpsItemsRequest.h:205
Aws::SSM::Model::DescribeOpsItemsRequest::GetOpsItemFilters
const Aws::Vector< OpsItemFilter > & GetOpsItemFilters() const
Definition: DescribeOpsItemsRequest.h:58
Aws::SSM::Model::DescribeOpsItemsRequest::SetOpsItemFilters
void SetOpsItemFilters(Aws::Vector< OpsItemFilter > &&value)
Definition: DescribeOpsItemsRequest.h:121
AWSString.h
Aws::SMS::Model::AppValidationStrategy::NOT_SET
@ NOT_SET
Aws::SSM::Model::DescribeOpsItemsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeOpsItemsRequest.h:245
Aws::SSM::Model::DescribeOpsItemsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeOpsItemsRequest.h:250
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:240
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:275
Aws::SSM::Model::DescribeOpsItemsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeOpsItemsRequest.h:255
Aws::SSM::Model::DescribeOpsItemsRequest::DescribeOpsItemsRequest
DescribeOpsItemsRequest()
Aws::SSM::Model::DescribeOpsItemsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeOpsItemsRequest.h:227
Aws::SSM::SSMRequest
Definition: SSMRequest.h:17
Aws::SSM::Model::DescribeOpsItemsRequest::WithMaxResults
DescribeOpsItemsRequest & WithMaxResults(int value)
Definition: DescribeOpsItemsRequest.h:234
SSMRequest.h
OpsItemFilter.h
Aws::SSM::Model::DescribeOpsItemsRequest::SetOpsItemFilters
void SetOpsItemFilters(const Aws::Vector< OpsItemFilter > &value)
Definition: DescribeOpsItemsRequest.h:100
Aws::SSM::Model::DescribeOpsItemsRequest::WithNextToken
DescribeOpsItemsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeOpsItemsRequest.h:270