AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ServiceOperation.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/application-signals/model/MetricReference.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ApplicationSignals
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_APPLICATIONSIGNALS_API ServiceOperation() = default;
40 AWS_APPLICATIONSIGNALS_API ServiceOperation(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPLICATIONSIGNALS_API ServiceOperation& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 ServiceOperation& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_metricReferencesHasBeenSet = true; m_metricReferences = std::forward<MetricReferencesT>(value); }
67 template<typename MetricReferencesT = Aws::Vector<MetricReference>>
68 ServiceOperation& WithMetricReferences(MetricReferencesT&& value) { SetMetricReferences(std::forward<MetricReferencesT>(value)); return *this;}
69 template<typename MetricReferencesT = MetricReference>
70 ServiceOperation& AddMetricReferences(MetricReferencesT&& value) { m_metricReferencesHasBeenSet = true; m_metricReferences.emplace_back(std::forward<MetricReferencesT>(value)); return *this; }
72 private:
73
74 Aws::String m_name;
75 bool m_nameHasBeenSet = false;
76
77 Aws::Vector<MetricReference> m_metricReferences;
78 bool m_metricReferencesHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace ApplicationSignals
83} // 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