AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ListOperationsRequest.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-sap/SsmSapRequest.h>
10#include <aws/ssm-sap/SsmSap_EXPORTS.h>
11#include <aws/ssm-sap/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SsmSap {
17namespace Model {
18
22 public:
23 AWS_SSMSAP_API ListOperationsRequest() = 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 "ListOperations"; }
30
31 AWS_SSMSAP_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
38 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
39 template <typename ApplicationIdT = Aws::String>
40 void SetApplicationId(ApplicationIdT&& value) {
41 m_applicationIdHasBeenSet = true;
42 m_applicationId = std::forward<ApplicationIdT>(value);
43 }
44 template <typename ApplicationIdT = Aws::String>
45 ListOperationsRequest& WithApplicationId(ApplicationIdT&& value) {
46 SetApplicationId(std::forward<ApplicationIdT>(value));
47 return *this;
48 }
50
52
58 inline int GetMaxResults() const { return m_maxResults; }
59 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
60 inline void SetMaxResults(int value) {
61 m_maxResultsHasBeenSet = true;
62 m_maxResults = value;
63 }
65 SetMaxResults(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetNextToken() const { return m_nextToken; }
75 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
76 template <typename NextTokenT = Aws::String>
77 void SetNextToken(NextTokenT&& value) {
78 m_nextTokenHasBeenSet = true;
79 m_nextToken = std::forward<NextTokenT>(value);
80 }
81 template <typename NextTokenT = Aws::String>
82 ListOperationsRequest& WithNextToken(NextTokenT&& value) {
83 SetNextToken(std::forward<NextTokenT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
93 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
94 template <typename FiltersT = Aws::Vector<Filter>>
95 void SetFilters(FiltersT&& value) {
96 m_filtersHasBeenSet = true;
97 m_filters = std::forward<FiltersT>(value);
98 }
99 template <typename FiltersT = Aws::Vector<Filter>>
101 SetFilters(std::forward<FiltersT>(value));
102 return *this;
103 }
104 template <typename FiltersT = Filter>
106 m_filtersHasBeenSet = true;
107 m_filters.emplace_back(std::forward<FiltersT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_applicationId;
113
114 int m_maxResults{0};
115
116 Aws::String m_nextToken;
117
118 Aws::Vector<Filter> m_filters;
119 bool m_applicationIdHasBeenSet = false;
120 bool m_maxResultsHasBeenSet = false;
121 bool m_nextTokenHasBeenSet = false;
122 bool m_filtersHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace SsmSap
127} // namespace Aws
AWS_SSMSAP_API Aws::String SerializePayload() const override
const Aws::Vector< Filter > & GetFilters() const
AWS_SSMSAP_API ListOperationsRequest()=default
ListOperationsRequest & WithMaxResults(int value)
ListOperationsRequest & AddFilters(FiltersT &&value)
ListOperationsRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
ListOperationsRequest & WithApplicationId(ApplicationIdT &&value)
ListOperationsRequest & WithFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector