AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetOperationName(const Aws::String& value) { m_operationNameHasBeenSet = true; m_operationName = value; }
51 inline void SetOperationName(Aws::String&& value) { m_operationNameHasBeenSet = true; m_operationName = std::move(value); }
52 inline void SetOperationName(const char* value) { m_operationNameHasBeenSet = true; m_operationName.assign(value); }
53 inline ServiceDependency& WithOperationName(const Aws::String& value) { SetOperationName(value); return *this;}
54 inline ServiceDependency& WithOperationName(Aws::String&& value) { SetOperationName(std::move(value)); return *this;}
55 inline ServiceDependency& WithOperationName(const char* value) { SetOperationName(value); return *this;}
57
59
74 inline const Aws::Map<Aws::String, Aws::String>& GetDependencyKeyAttributes() const{ return m_dependencyKeyAttributes; }
75 inline bool DependencyKeyAttributesHasBeenSet() const { return m_dependencyKeyAttributesHasBeenSet; }
76 inline void SetDependencyKeyAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_dependencyKeyAttributesHasBeenSet = true; m_dependencyKeyAttributes = value; }
77 inline void SetDependencyKeyAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_dependencyKeyAttributesHasBeenSet = true; m_dependencyKeyAttributes = std::move(value); }
80 inline ServiceDependency& AddDependencyKeyAttributes(const Aws::String& key, const Aws::String& value) { m_dependencyKeyAttributesHasBeenSet = true; m_dependencyKeyAttributes.emplace(key, value); return *this; }
81 inline ServiceDependency& AddDependencyKeyAttributes(Aws::String&& key, const Aws::String& value) { m_dependencyKeyAttributesHasBeenSet = true; m_dependencyKeyAttributes.emplace(std::move(key), value); return *this; }
82 inline ServiceDependency& AddDependencyKeyAttributes(const Aws::String& key, Aws::String&& value) { m_dependencyKeyAttributesHasBeenSet = true; m_dependencyKeyAttributes.emplace(key, std::move(value)); return *this; }
83 inline ServiceDependency& AddDependencyKeyAttributes(Aws::String&& key, Aws::String&& value) { m_dependencyKeyAttributesHasBeenSet = true; m_dependencyKeyAttributes.emplace(std::move(key), std::move(value)); return *this; }
84 inline ServiceDependency& AddDependencyKeyAttributes(const char* key, Aws::String&& value) { m_dependencyKeyAttributesHasBeenSet = true; m_dependencyKeyAttributes.emplace(key, std::move(value)); return *this; }
85 inline ServiceDependency& AddDependencyKeyAttributes(Aws::String&& key, const char* value) { m_dependencyKeyAttributesHasBeenSet = true; m_dependencyKeyAttributes.emplace(std::move(key), value); return *this; }
86 inline ServiceDependency& AddDependencyKeyAttributes(const char* key, const char* value) { m_dependencyKeyAttributesHasBeenSet = true; m_dependencyKeyAttributes.emplace(key, value); return *this; }
88
90
93 inline const Aws::String& GetDependencyOperationName() const{ return m_dependencyOperationName; }
94 inline bool DependencyOperationNameHasBeenSet() const { return m_dependencyOperationNameHasBeenSet; }
95 inline void SetDependencyOperationName(const Aws::String& value) { m_dependencyOperationNameHasBeenSet = true; m_dependencyOperationName = value; }
96 inline void SetDependencyOperationName(Aws::String&& value) { m_dependencyOperationNameHasBeenSet = true; m_dependencyOperationName = std::move(value); }
97 inline void SetDependencyOperationName(const char* value) { m_dependencyOperationNameHasBeenSet = true; m_dependencyOperationName.assign(value); }
99 inline ServiceDependency& WithDependencyOperationName(Aws::String&& value) { SetDependencyOperationName(std::move(value)); return *this;}
100 inline ServiceDependency& WithDependencyOperationName(const char* value) { SetDependencyOperationName(value); return *this;}
102
104
109 inline const Aws::Vector<MetricReference>& GetMetricReferences() const{ return m_metricReferences; }
110 inline bool MetricReferencesHasBeenSet() const { return m_metricReferencesHasBeenSet; }
111 inline void SetMetricReferences(const Aws::Vector<MetricReference>& value) { m_metricReferencesHasBeenSet = true; m_metricReferences = value; }
112 inline void SetMetricReferences(Aws::Vector<MetricReference>&& value) { m_metricReferencesHasBeenSet = true; m_metricReferences = std::move(value); }
115 inline ServiceDependency& AddMetricReferences(const MetricReference& value) { m_metricReferencesHasBeenSet = true; m_metricReferences.push_back(value); return *this; }
116 inline ServiceDependency& AddMetricReferences(MetricReference&& value) { m_metricReferencesHasBeenSet = true; m_metricReferences.push_back(std::move(value)); return *this; }
118 private:
119
120 Aws::String m_operationName;
121 bool m_operationNameHasBeenSet = false;
122
123 Aws::Map<Aws::String, Aws::String> m_dependencyKeyAttributes;
124 bool m_dependencyKeyAttributesHasBeenSet = false;
125
126 Aws::String m_dependencyOperationName;
127 bool m_dependencyOperationNameHasBeenSet = false;
128
129 Aws::Vector<MetricReference> m_metricReferences;
130 bool m_metricReferencesHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace ApplicationSignals
135} // namespace Aws
AWS_APPLICATIONSIGNALS_API ServiceDependency & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceDependency & AddDependencyKeyAttributes(Aws::String &&key, const char *value)
ServiceDependency & WithMetricReferences(Aws::Vector< MetricReference > &&value)
void SetMetricReferences(Aws::Vector< MetricReference > &&value)
ServiceDependency & AddMetricReferences(const MetricReference &value)
const Aws::Vector< MetricReference > & GetMetricReferences() const
ServiceDependency & WithDependencyOperationName(const Aws::String &value)
ServiceDependency & WithOperationName(const Aws::String &value)
ServiceDependency & AddDependencyKeyAttributes(Aws::String &&key, Aws::String &&value)
ServiceDependency & WithOperationName(const char *value)
void SetDependencyKeyAttributes(const Aws::Map< Aws::String, Aws::String > &value)
AWS_APPLICATIONSIGNALS_API ServiceDependency()
ServiceDependency & AddDependencyKeyAttributes(const char *key, const char *value)
ServiceDependency & AddDependencyKeyAttributes(Aws::String &&key, const Aws::String &value)
AWS_APPLICATIONSIGNALS_API ServiceDependency(Aws::Utils::Json::JsonView jsonValue)
ServiceDependency & WithMetricReferences(const Aws::Vector< MetricReference > &value)
ServiceDependency & WithDependencyOperationName(Aws::String &&value)
void SetDependencyOperationName(const Aws::String &value)
ServiceDependency & AddDependencyKeyAttributes(const Aws::String &key, Aws::String &&value)
ServiceDependency & WithDependencyKeyAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ServiceDependency & WithOperationName(Aws::String &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceDependency & AddDependencyKeyAttributes(const char *key, Aws::String &&value)
void SetMetricReferences(const Aws::Vector< MetricReference > &value)
ServiceDependency & WithDependencyKeyAttributes(Aws::Map< Aws::String, Aws::String > &&value)
ServiceDependency & AddMetricReferences(MetricReference &&value)
void SetDependencyKeyAttributes(Aws::Map< Aws::String, Aws::String > &&value)
ServiceDependency & AddDependencyKeyAttributes(const Aws::String &key, const Aws::String &value)
ServiceDependency & WithDependencyOperationName(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetDependencyKeyAttributes() const
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