AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetOpsSummaryRequest.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/OpsAggregator.h>
12#include <aws/ssm/model/OpsFilter.h>
13#include <aws/ssm/model/OpsResultAttribute.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SSM {
19namespace Model {
20
24 public:
25 AWS_SSM_API GetOpsSummaryRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetOpsSummary"; }
32
33 AWS_SSM_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetSyncName() const { return m_syncName; }
42 inline bool SyncNameHasBeenSet() const { return m_syncNameHasBeenSet; }
43 template <typename SyncNameT = Aws::String>
44 void SetSyncName(SyncNameT&& value) {
45 m_syncNameHasBeenSet = true;
46 m_syncName = std::forward<SyncNameT>(value);
47 }
48 template <typename SyncNameT = Aws::String>
49 GetOpsSummaryRequest& WithSyncName(SyncNameT&& value) {
50 SetSyncName(std::forward<SyncNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<OpsFilter>& GetFilters() const { return m_filters; }
60 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
61 template <typename FiltersT = Aws::Vector<OpsFilter>>
62 void SetFilters(FiltersT&& value) {
63 m_filtersHasBeenSet = true;
64 m_filters = std::forward<FiltersT>(value);
65 }
66 template <typename FiltersT = Aws::Vector<OpsFilter>>
67 GetOpsSummaryRequest& WithFilters(FiltersT&& value) {
68 SetFilters(std::forward<FiltersT>(value));
69 return *this;
70 }
71 template <typename FiltersT = OpsFilter>
72 GetOpsSummaryRequest& AddFilters(FiltersT&& value) {
73 m_filtersHasBeenSet = true;
74 m_filters.emplace_back(std::forward<FiltersT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::Vector<OpsAggregator>& GetAggregators() const { return m_aggregators; }
85 inline bool AggregatorsHasBeenSet() const { return m_aggregatorsHasBeenSet; }
86 template <typename AggregatorsT = Aws::Vector<OpsAggregator>>
87 void SetAggregators(AggregatorsT&& value) {
88 m_aggregatorsHasBeenSet = true;
89 m_aggregators = std::forward<AggregatorsT>(value);
90 }
91 template <typename AggregatorsT = Aws::Vector<OpsAggregator>>
92 GetOpsSummaryRequest& WithAggregators(AggregatorsT&& value) {
93 SetAggregators(std::forward<AggregatorsT>(value));
94 return *this;
95 }
96 template <typename AggregatorsT = OpsAggregator>
97 GetOpsSummaryRequest& AddAggregators(AggregatorsT&& value) {
98 m_aggregatorsHasBeenSet = true;
99 m_aggregators.emplace_back(std::forward<AggregatorsT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::Vector<OpsResultAttribute>& GetResultAttributes() const { return m_resultAttributes; }
109 inline bool ResultAttributesHasBeenSet() const { return m_resultAttributesHasBeenSet; }
110 template <typename ResultAttributesT = Aws::Vector<OpsResultAttribute>>
111 void SetResultAttributes(ResultAttributesT&& value) {
112 m_resultAttributesHasBeenSet = true;
113 m_resultAttributes = std::forward<ResultAttributesT>(value);
114 }
115 template <typename ResultAttributesT = Aws::Vector<OpsResultAttribute>>
116 GetOpsSummaryRequest& WithResultAttributes(ResultAttributesT&& value) {
117 SetResultAttributes(std::forward<ResultAttributesT>(value));
118 return *this;
119 }
120 template <typename ResultAttributesT = OpsResultAttribute>
121 GetOpsSummaryRequest& AddResultAttributes(ResultAttributesT&& value) {
122 m_resultAttributesHasBeenSet = true;
123 m_resultAttributes.emplace_back(std::forward<ResultAttributesT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::String& GetNextToken() const { return m_nextToken; }
134 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
135 template <typename NextTokenT = Aws::String>
136 void SetNextToken(NextTokenT&& value) {
137 m_nextTokenHasBeenSet = true;
138 m_nextToken = std::forward<NextTokenT>(value);
139 }
140 template <typename NextTokenT = Aws::String>
141 GetOpsSummaryRequest& WithNextToken(NextTokenT&& value) {
142 SetNextToken(std::forward<NextTokenT>(value));
143 return *this;
144 }
146
148
153 inline int GetMaxResults() const { return m_maxResults; }
154 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
155 inline void SetMaxResults(int value) {
156 m_maxResultsHasBeenSet = true;
157 m_maxResults = value;
158 }
160 SetMaxResults(value);
161 return *this;
162 }
164 private:
165 Aws::String m_syncName;
166
167 Aws::Vector<OpsFilter> m_filters;
168
169 Aws::Vector<OpsAggregator> m_aggregators;
170
171 Aws::Vector<OpsResultAttribute> m_resultAttributes;
172
173 Aws::String m_nextToken;
174
175 int m_maxResults{0};
176 bool m_syncNameHasBeenSet = false;
177 bool m_filtersHasBeenSet = false;
178 bool m_aggregatorsHasBeenSet = false;
179 bool m_resultAttributesHasBeenSet = false;
180 bool m_nextTokenHasBeenSet = false;
181 bool m_maxResultsHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace SSM
186} // namespace Aws
void SetResultAttributes(ResultAttributesT &&value)
GetOpsSummaryRequest & AddAggregators(AggregatorsT &&value)
GetOpsSummaryRequest & WithFilters(FiltersT &&value)
void SetAggregators(AggregatorsT &&value)
GetOpsSummaryRequest & WithSyncName(SyncNameT &&value)
virtual const char * GetServiceRequestName() const override
GetOpsSummaryRequest & WithResultAttributes(ResultAttributesT &&value)
GetOpsSummaryRequest & AddFilters(FiltersT &&value)
GetOpsSummaryRequest & WithAggregators(AggregatorsT &&value)
GetOpsSummaryRequest & WithMaxResults(int value)
const Aws::Vector< OpsAggregator > & GetAggregators() const
AWS_SSM_API Aws::String SerializePayload() const override
GetOpsSummaryRequest & WithNextToken(NextTokenT &&value)
AWS_SSM_API GetOpsSummaryRequest()=default
GetOpsSummaryRequest & AddResultAttributes(ResultAttributesT &&value)
const Aws::Vector< OpsResultAttribute > & GetResultAttributes() const
const Aws::String & GetSyncName() const
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< OpsFilter > & GetFilters() const
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