AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribeOpsItemsRequest.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/OpsItemFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SSM {
17namespace Model {
18
22 public:
23 AWS_SSM_API DescribeOpsItemsRequest() = 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 "DescribeOpsItems"; }
30
31 AWS_SSM_API Aws::String SerializePayload() const override;
32
34
36
56 inline const Aws::Vector<OpsItemFilter>& GetOpsItemFilters() const { return m_opsItemFilters; }
57 inline bool OpsItemFiltersHasBeenSet() const { return m_opsItemFiltersHasBeenSet; }
58 template <typename OpsItemFiltersT = Aws::Vector<OpsItemFilter>>
59 void SetOpsItemFilters(OpsItemFiltersT&& value) {
60 m_opsItemFiltersHasBeenSet = true;
61 m_opsItemFilters = std::forward<OpsItemFiltersT>(value);
62 }
63 template <typename OpsItemFiltersT = Aws::Vector<OpsItemFilter>>
64 DescribeOpsItemsRequest& WithOpsItemFilters(OpsItemFiltersT&& value) {
65 SetOpsItemFilters(std::forward<OpsItemFiltersT>(value));
66 return *this;
67 }
68 template <typename OpsItemFiltersT = OpsItemFilter>
69 DescribeOpsItemsRequest& AddOpsItemFilters(OpsItemFiltersT&& value) {
70 m_opsItemFiltersHasBeenSet = true;
71 m_opsItemFilters.emplace_back(std::forward<OpsItemFiltersT>(value));
72 return *this;
73 }
75
77
82 inline int GetMaxResults() const { return m_maxResults; }
83 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
84 inline void SetMaxResults(int value) {
85 m_maxResultsHasBeenSet = true;
86 m_maxResults = value;
87 }
89 SetMaxResults(value);
90 return *this;
91 }
93
95
98 inline const Aws::String& GetNextToken() const { return m_nextToken; }
99 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
100 template <typename NextTokenT = Aws::String>
101 void SetNextToken(NextTokenT&& value) {
102 m_nextTokenHasBeenSet = true;
103 m_nextToken = std::forward<NextTokenT>(value);
104 }
105 template <typename NextTokenT = Aws::String>
107 SetNextToken(std::forward<NextTokenT>(value));
108 return *this;
109 }
111 private:
112 Aws::Vector<OpsItemFilter> m_opsItemFilters;
113
114 int m_maxResults{0};
115
116 Aws::String m_nextToken;
117 bool m_opsItemFiltersHasBeenSet = false;
118 bool m_maxResultsHasBeenSet = false;
119 bool m_nextTokenHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace SSM
124} // namespace Aws
AWS_SSM_API Aws::String SerializePayload() const override
DescribeOpsItemsRequest & WithNextToken(NextTokenT &&value)
AWS_SSM_API DescribeOpsItemsRequest()=default
DescribeOpsItemsRequest & AddOpsItemFilters(OpsItemFiltersT &&value)
DescribeOpsItemsRequest & WithOpsItemFilters(OpsItemFiltersT &&value)
const Aws::Vector< OpsItemFilter > & GetOpsItemFilters() const
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
void SetOpsItemFilters(OpsItemFiltersT &&value)
DescribeOpsItemsRequest & WithMaxResults(int 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