AWS SDK for C++

AWS SDK for C++ Version 1.11.551

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
GetOpsSummaryRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ssm/model/OpsFilter.h>
12#include <aws/ssm/model/OpsAggregator.h>
13#include <aws/ssm/model/OpsResultAttribute.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SSM
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SSM_API GetOpsSummaryRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "GetOpsSummary"; }
35
36 AWS_SSM_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetSyncName() const { return m_syncName; }
46 inline bool SyncNameHasBeenSet() const { return m_syncNameHasBeenSet; }
47 template<typename SyncNameT = Aws::String>
48 void SetSyncName(SyncNameT&& value) { m_syncNameHasBeenSet = true; m_syncName = std::forward<SyncNameT>(value); }
49 template<typename SyncNameT = Aws::String>
50 GetOpsSummaryRequest& WithSyncName(SyncNameT&& value) { SetSyncName(std::forward<SyncNameT>(value)); return *this;}
52
54
57 inline const Aws::Vector<OpsFilter>& GetFilters() const { return m_filters; }
58 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
59 template<typename FiltersT = Aws::Vector<OpsFilter>>
60 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
61 template<typename FiltersT = Aws::Vector<OpsFilter>>
62 GetOpsSummaryRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
63 template<typename FiltersT = OpsFilter>
64 GetOpsSummaryRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
66
68
72 inline const Aws::Vector<OpsAggregator>& GetAggregators() const { return m_aggregators; }
73 inline bool AggregatorsHasBeenSet() const { return m_aggregatorsHasBeenSet; }
74 template<typename AggregatorsT = Aws::Vector<OpsAggregator>>
75 void SetAggregators(AggregatorsT&& value) { m_aggregatorsHasBeenSet = true; m_aggregators = std::forward<AggregatorsT>(value); }
76 template<typename AggregatorsT = Aws::Vector<OpsAggregator>>
77 GetOpsSummaryRequest& WithAggregators(AggregatorsT&& value) { SetAggregators(std::forward<AggregatorsT>(value)); return *this;}
78 template<typename AggregatorsT = OpsAggregator>
79 GetOpsSummaryRequest& AddAggregators(AggregatorsT&& value) { m_aggregatorsHasBeenSet = true; m_aggregators.emplace_back(std::forward<AggregatorsT>(value)); return *this; }
81
83
86 inline const Aws::Vector<OpsResultAttribute>& GetResultAttributes() const { return m_resultAttributes; }
87 inline bool ResultAttributesHasBeenSet() const { return m_resultAttributesHasBeenSet; }
88 template<typename ResultAttributesT = Aws::Vector<OpsResultAttribute>>
89 void SetResultAttributes(ResultAttributesT&& value) { m_resultAttributesHasBeenSet = true; m_resultAttributes = std::forward<ResultAttributesT>(value); }
90 template<typename ResultAttributesT = Aws::Vector<OpsResultAttribute>>
91 GetOpsSummaryRequest& WithResultAttributes(ResultAttributesT&& value) { SetResultAttributes(std::forward<ResultAttributesT>(value)); return *this;}
92 template<typename ResultAttributesT = OpsResultAttribute>
93 GetOpsSummaryRequest& AddResultAttributes(ResultAttributesT&& value) { m_resultAttributesHasBeenSet = true; m_resultAttributes.emplace_back(std::forward<ResultAttributesT>(value)); return *this; }
95
97
101 inline const Aws::String& GetNextToken() const { return m_nextToken; }
102 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
103 template<typename NextTokenT = Aws::String>
104 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
105 template<typename NextTokenT = Aws::String>
106 GetOpsSummaryRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
108
110
115 inline int GetMaxResults() const { return m_maxResults; }
116 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
117 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
118 inline GetOpsSummaryRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
120 private:
121
122 Aws::String m_syncName;
123 bool m_syncNameHasBeenSet = false;
124
125 Aws::Vector<OpsFilter> m_filters;
126 bool m_filtersHasBeenSet = false;
127
128 Aws::Vector<OpsAggregator> m_aggregators;
129 bool m_aggregatorsHasBeenSet = false;
130
131 Aws::Vector<OpsResultAttribute> m_resultAttributes;
132 bool m_resultAttributesHasBeenSet = false;
133
134 Aws::String m_nextToken;
135 bool m_nextTokenHasBeenSet = false;
136
137 int m_maxResults{0};
138 bool m_maxResultsHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace SSM
143} // 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