AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ServiceDependent.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
39 {
40 public:
41 AWS_APPLICATIONSIGNALS_API ServiceDependent() = default;
42 AWS_APPLICATIONSIGNALS_API ServiceDependent(Aws::Utils::Json::JsonView jsonValue);
43 AWS_APPLICATIONSIGNALS_API ServiceDependent& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::String& GetOperationName() const { return m_operationName; }
53 inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; }
54 template<typename OperationNameT = Aws::String>
55 void SetOperationName(OperationNameT&& value) { m_operationNameHasBeenSet = true; m_operationName = std::forward<OperationNameT>(value); }
56 template<typename OperationNameT = Aws::String>
57 ServiceDependent& WithOperationName(OperationNameT&& value) { SetOperationName(std::forward<OperationNameT>(value)); return *this;}
59
61
76 inline const Aws::Map<Aws::String, Aws::String>& GetDependentKeyAttributes() const { return m_dependentKeyAttributes; }
77 inline bool DependentKeyAttributesHasBeenSet() const { return m_dependentKeyAttributesHasBeenSet; }
78 template<typename DependentKeyAttributesT = Aws::Map<Aws::String, Aws::String>>
79 void SetDependentKeyAttributes(DependentKeyAttributesT&& value) { m_dependentKeyAttributesHasBeenSet = true; m_dependentKeyAttributes = std::forward<DependentKeyAttributesT>(value); }
80 template<typename DependentKeyAttributesT = Aws::Map<Aws::String, Aws::String>>
81 ServiceDependent& WithDependentKeyAttributes(DependentKeyAttributesT&& value) { SetDependentKeyAttributes(std::forward<DependentKeyAttributesT>(value)); return *this;}
82 template<typename DependentKeyAttributesKeyT = Aws::String, typename DependentKeyAttributesValueT = Aws::String>
83 ServiceDependent& AddDependentKeyAttributes(DependentKeyAttributesKeyT&& key, DependentKeyAttributesValueT&& value) {
84 m_dependentKeyAttributesHasBeenSet = true; m_dependentKeyAttributes.emplace(std::forward<DependentKeyAttributesKeyT>(key), std::forward<DependentKeyAttributesValueT>(value)); return *this;
85 }
87
89
93 inline const Aws::String& GetDependentOperationName() const { return m_dependentOperationName; }
94 inline bool DependentOperationNameHasBeenSet() const { return m_dependentOperationNameHasBeenSet; }
95 template<typename DependentOperationNameT = Aws::String>
96 void SetDependentOperationName(DependentOperationNameT&& value) { m_dependentOperationNameHasBeenSet = true; m_dependentOperationName = std::forward<DependentOperationNameT>(value); }
97 template<typename DependentOperationNameT = Aws::String>
98 ServiceDependent& WithDependentOperationName(DependentOperationNameT&& value) { SetDependentOperationName(std::forward<DependentOperationNameT>(value)); return *this;}
100
102
107 inline const Aws::Vector<MetricReference>& GetMetricReferences() const { return m_metricReferences; }
108 inline bool MetricReferencesHasBeenSet() const { return m_metricReferencesHasBeenSet; }
109 template<typename MetricReferencesT = Aws::Vector<MetricReference>>
110 void SetMetricReferences(MetricReferencesT&& value) { m_metricReferencesHasBeenSet = true; m_metricReferences = std::forward<MetricReferencesT>(value); }
111 template<typename MetricReferencesT = Aws::Vector<MetricReference>>
112 ServiceDependent& WithMetricReferences(MetricReferencesT&& value) { SetMetricReferences(std::forward<MetricReferencesT>(value)); return *this;}
113 template<typename MetricReferencesT = MetricReference>
114 ServiceDependent& AddMetricReferences(MetricReferencesT&& value) { m_metricReferencesHasBeenSet = true; m_metricReferences.emplace_back(std::forward<MetricReferencesT>(value)); return *this; }
116 private:
117
118 Aws::String m_operationName;
119 bool m_operationNameHasBeenSet = false;
120
121 Aws::Map<Aws::String, Aws::String> m_dependentKeyAttributes;
122 bool m_dependentKeyAttributesHasBeenSet = false;
123
124 Aws::String m_dependentOperationName;
125 bool m_dependentOperationNameHasBeenSet = false;
126
127 Aws::Vector<MetricReference> m_metricReferences;
128 bool m_metricReferencesHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace ApplicationSignals
133} // namespace Aws
ServiceDependent & AddDependentKeyAttributes(DependentKeyAttributesKeyT &&key, DependentKeyAttributesValueT &&value)
const Aws::Vector< MetricReference > & GetMetricReferences() const
ServiceDependent & WithOperationName(OperationNameT &&value)
ServiceDependent & WithDependentKeyAttributes(DependentKeyAttributesT &&value)
const Aws::String & GetDependentOperationName() const
AWS_APPLICATIONSIGNALS_API ServiceDependent()=default
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetDependentKeyAttributes() const
void SetMetricReferences(MetricReferencesT &&value)
ServiceDependent & AddMetricReferences(MetricReferencesT &&value)
void SetDependentKeyAttributes(DependentKeyAttributesT &&value)
ServiceDependent & WithMetricReferences(MetricReferencesT &&value)
AWS_APPLICATIONSIGNALS_API ServiceDependent(Aws::Utils::Json::JsonView jsonValue)
ServiceDependent & WithDependentOperationName(DependentOperationNameT &&value)
AWS_APPLICATIONSIGNALS_API ServiceDependent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDependentOperationName(DependentOperationNameT &&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