AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ServiceDependency.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ApplicationSignals {
23namespace Model {
24
32 public:
33 AWS_APPLICATIONSIGNALS_API ServiceDependency() = default;
34 AWS_APPLICATIONSIGNALS_API ServiceDependency(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPLICATIONSIGNALS_API ServiceDependency& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetOperationName() const { return m_operationName; }
43 inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; }
44 template <typename OperationNameT = Aws::String>
45 void SetOperationName(OperationNameT&& value) {
46 m_operationNameHasBeenSet = true;
47 m_operationName = std::forward<OperationNameT>(value);
48 }
49 template <typename OperationNameT = Aws::String>
50 ServiceDependency& WithOperationName(OperationNameT&& value) {
51 SetOperationName(std::forward<OperationNameT>(value));
52 return *this;
53 }
55
57
72 inline const Aws::Map<Aws::String, Aws::String>& GetDependencyKeyAttributes() const { return m_dependencyKeyAttributes; }
73 inline bool DependencyKeyAttributesHasBeenSet() const { return m_dependencyKeyAttributesHasBeenSet; }
74 template <typename DependencyKeyAttributesT = Aws::Map<Aws::String, Aws::String>>
75 void SetDependencyKeyAttributes(DependencyKeyAttributesT&& value) {
76 m_dependencyKeyAttributesHasBeenSet = true;
77 m_dependencyKeyAttributes = std::forward<DependencyKeyAttributesT>(value);
78 }
79 template <typename DependencyKeyAttributesT = Aws::Map<Aws::String, Aws::String>>
80 ServiceDependency& WithDependencyKeyAttributes(DependencyKeyAttributesT&& value) {
81 SetDependencyKeyAttributes(std::forward<DependencyKeyAttributesT>(value));
82 return *this;
83 }
84 template <typename DependencyKeyAttributesKeyT = Aws::String, typename DependencyKeyAttributesValueT = Aws::String>
85 ServiceDependency& AddDependencyKeyAttributes(DependencyKeyAttributesKeyT&& key, DependencyKeyAttributesValueT&& value) {
86 m_dependencyKeyAttributesHasBeenSet = true;
87 m_dependencyKeyAttributes.emplace(std::forward<DependencyKeyAttributesKeyT>(key), std::forward<DependencyKeyAttributesValueT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDependencyOperationName() const { return m_dependencyOperationName; }
97 inline bool DependencyOperationNameHasBeenSet() const { return m_dependencyOperationNameHasBeenSet; }
98 template <typename DependencyOperationNameT = Aws::String>
99 void SetDependencyOperationName(DependencyOperationNameT&& value) {
100 m_dependencyOperationNameHasBeenSet = true;
101 m_dependencyOperationName = std::forward<DependencyOperationNameT>(value);
102 }
103 template <typename DependencyOperationNameT = Aws::String>
104 ServiceDependency& WithDependencyOperationName(DependencyOperationNameT&& value) {
105 SetDependencyOperationName(std::forward<DependencyOperationNameT>(value));
106 return *this;
107 }
109
111
116 inline const Aws::Vector<MetricReference>& GetMetricReferences() const { return m_metricReferences; }
117 inline bool MetricReferencesHasBeenSet() const { return m_metricReferencesHasBeenSet; }
118 template <typename MetricReferencesT = Aws::Vector<MetricReference>>
119 void SetMetricReferences(MetricReferencesT&& value) {
120 m_metricReferencesHasBeenSet = true;
121 m_metricReferences = std::forward<MetricReferencesT>(value);
122 }
123 template <typename MetricReferencesT = Aws::Vector<MetricReference>>
124 ServiceDependency& WithMetricReferences(MetricReferencesT&& value) {
125 SetMetricReferences(std::forward<MetricReferencesT>(value));
126 return *this;
127 }
128 template <typename MetricReferencesT = MetricReference>
129 ServiceDependency& AddMetricReferences(MetricReferencesT&& value) {
130 m_metricReferencesHasBeenSet = true;
131 m_metricReferences.emplace_back(std::forward<MetricReferencesT>(value));
132 return *this;
133 }
135 private:
136 Aws::String m_operationName;
137
138 Aws::Map<Aws::String, Aws::String> m_dependencyKeyAttributes;
139
140 Aws::String m_dependencyOperationName;
141
142 Aws::Vector<MetricReference> m_metricReferences;
143 bool m_operationNameHasBeenSet = false;
144 bool m_dependencyKeyAttributesHasBeenSet = false;
145 bool m_dependencyOperationNameHasBeenSet = false;
146 bool m_metricReferencesHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace ApplicationSignals
151} // namespace Aws
AWS_APPLICATIONSIGNALS_API ServiceDependency & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceDependency & WithDependencyOperationName(DependencyOperationNameT &&value)
void SetDependencyKeyAttributes(DependencyKeyAttributesT &&value)
ServiceDependency & AddMetricReferences(MetricReferencesT &&value)
const Aws::Vector< MetricReference > & GetMetricReferences() const
ServiceDependency & WithMetricReferences(MetricReferencesT &&value)
void SetDependencyOperationName(DependencyOperationNameT &&value)
AWS_APPLICATIONSIGNALS_API ServiceDependency(Aws::Utils::Json::JsonView jsonValue)
ServiceDependency & WithOperationName(OperationNameT &&value)
ServiceDependency & WithDependencyKeyAttributes(DependencyKeyAttributesT &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONSIGNALS_API ServiceDependency()=default
ServiceDependency & AddDependencyKeyAttributes(DependencyKeyAttributesKeyT &&key, DependencyKeyAttributesValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetDependencyKeyAttributes() const
void SetMetricReferences(MetricReferencesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue