AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ServiceOperation.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/MetricReference.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ApplicationSignals {
22namespace Model {
23
33 public:
34 AWS_APPLICATIONSIGNALS_API ServiceOperation() = default;
35 AWS_APPLICATIONSIGNALS_API ServiceOperation(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPLICATIONSIGNALS_API ServiceOperation& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 ServiceOperation& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::Vector<MetricReference>& GetMetricReferences() const { return m_metricReferences; }
64 inline bool MetricReferencesHasBeenSet() const { return m_metricReferencesHasBeenSet; }
65 template <typename MetricReferencesT = Aws::Vector<MetricReference>>
66 void SetMetricReferences(MetricReferencesT&& value) {
67 m_metricReferencesHasBeenSet = true;
68 m_metricReferences = std::forward<MetricReferencesT>(value);
69 }
70 template <typename MetricReferencesT = Aws::Vector<MetricReference>>
71 ServiceOperation& WithMetricReferences(MetricReferencesT&& value) {
72 SetMetricReferences(std::forward<MetricReferencesT>(value));
73 return *this;
74 }
75 template <typename MetricReferencesT = MetricReference>
76 ServiceOperation& AddMetricReferences(MetricReferencesT&& value) {
77 m_metricReferencesHasBeenSet = true;
78 m_metricReferences.emplace_back(std::forward<MetricReferencesT>(value));
79 return *this;
80 }
82 private:
83 Aws::String m_name;
84
85 Aws::Vector<MetricReference> m_metricReferences;
86 bool m_nameHasBeenSet = false;
87 bool m_metricReferencesHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace ApplicationSignals
92} // namespace Aws
ServiceOperation & WithName(NameT &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONSIGNALS_API ServiceOperation()=default
ServiceOperation & WithMetricReferences(MetricReferencesT &&value)
AWS_APPLICATIONSIGNALS_API ServiceOperation & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< MetricReference > & GetMetricReferences() const
ServiceOperation & AddMetricReferences(MetricReferencesT &&value)
AWS_APPLICATIONSIGNALS_API ServiceOperation(Aws::Utils::Json::JsonView jsonValue)
void SetMetricReferences(MetricReferencesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue