AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ServiceDependency.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/application-signals/model/MetricReference.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ApplicationSignals
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_APPLICATIONSIGNALS_API ServiceDependency() = default;
39 AWS_APPLICATIONSIGNALS_API ServiceDependency(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPLICATIONSIGNALS_API ServiceDependency& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetOperationName() const { return m_operationName; }
49 inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; }
50 template<typename OperationNameT = Aws::String>
51 void SetOperationName(OperationNameT&& value) { m_operationNameHasBeenSet = true; m_operationName = std::forward<OperationNameT>(value); }
52 template<typename OperationNameT = Aws::String>
53 ServiceDependency& WithOperationName(OperationNameT&& value) { SetOperationName(std::forward<OperationNameT>(value)); return *this;}
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) { m_dependencyKeyAttributesHasBeenSet = true; m_dependencyKeyAttributes = std::forward<DependencyKeyAttributesT>(value); }
76 template<typename DependencyKeyAttributesT = Aws::Map<Aws::String, Aws::String>>
77 ServiceDependency& WithDependencyKeyAttributes(DependencyKeyAttributesT&& value) { SetDependencyKeyAttributes(std::forward<DependencyKeyAttributesT>(value)); return *this;}
78 template<typename DependencyKeyAttributesKeyT = Aws::String, typename DependencyKeyAttributesValueT = Aws::String>
79 ServiceDependency& AddDependencyKeyAttributes(DependencyKeyAttributesKeyT&& key, DependencyKeyAttributesValueT&& value) {
80 m_dependencyKeyAttributesHasBeenSet = true; m_dependencyKeyAttributes.emplace(std::forward<DependencyKeyAttributesKeyT>(key), std::forward<DependencyKeyAttributesValueT>(value)); return *this;
81 }
83
85
88 inline const Aws::String& GetDependencyOperationName() const { return m_dependencyOperationName; }
89 inline bool DependencyOperationNameHasBeenSet() const { return m_dependencyOperationNameHasBeenSet; }
90 template<typename DependencyOperationNameT = Aws::String>
91 void SetDependencyOperationName(DependencyOperationNameT&& value) { m_dependencyOperationNameHasBeenSet = true; m_dependencyOperationName = std::forward<DependencyOperationNameT>(value); }
92 template<typename DependencyOperationNameT = Aws::String>
93 ServiceDependency& WithDependencyOperationName(DependencyOperationNameT&& value) { SetDependencyOperationName(std::forward<DependencyOperationNameT>(value)); return *this;}
95
97
102 inline const Aws::Vector<MetricReference>& GetMetricReferences() const { return m_metricReferences; }
103 inline bool MetricReferencesHasBeenSet() const { return m_metricReferencesHasBeenSet; }
104 template<typename MetricReferencesT = Aws::Vector<MetricReference>>
105 void SetMetricReferences(MetricReferencesT&& value) { m_metricReferencesHasBeenSet = true; m_metricReferences = std::forward<MetricReferencesT>(value); }
106 template<typename MetricReferencesT = Aws::Vector<MetricReference>>
107 ServiceDependency& WithMetricReferences(MetricReferencesT&& value) { SetMetricReferences(std::forward<MetricReferencesT>(value)); return *this;}
108 template<typename MetricReferencesT = MetricReference>
109 ServiceDependency& AddMetricReferences(MetricReferencesT&& value) { m_metricReferencesHasBeenSet = true; m_metricReferences.emplace_back(std::forward<MetricReferencesT>(value)); return *this; }
111 private:
112
113 Aws::String m_operationName;
114 bool m_operationNameHasBeenSet = false;
115
116 Aws::Map<Aws::String, Aws::String> m_dependencyKeyAttributes;
117 bool m_dependencyKeyAttributesHasBeenSet = false;
118
119 Aws::String m_dependencyOperationName;
120 bool m_dependencyOperationNameHasBeenSet = false;
121
122 Aws::Vector<MetricReference> m_metricReferences;
123 bool m_metricReferencesHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace ApplicationSignals
128} // 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