AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ServiceDependent.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
35 public:
36 AWS_APPLICATIONSIGNALS_API ServiceDependent() = default;
37 AWS_APPLICATIONSIGNALS_API ServiceDependent(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPLICATIONSIGNALS_API ServiceDependent& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const Aws::String& GetOperationName() const { return m_operationName; }
47 inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; }
48 template <typename OperationNameT = Aws::String>
49 void SetOperationName(OperationNameT&& value) {
50 m_operationNameHasBeenSet = true;
51 m_operationName = std::forward<OperationNameT>(value);
52 }
53 template <typename OperationNameT = Aws::String>
54 ServiceDependent& WithOperationName(OperationNameT&& value) {
55 SetOperationName(std::forward<OperationNameT>(value));
56 return *this;
57 }
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) {
80 m_dependentKeyAttributesHasBeenSet = true;
81 m_dependentKeyAttributes = std::forward<DependentKeyAttributesT>(value);
82 }
83 template <typename DependentKeyAttributesT = Aws::Map<Aws::String, Aws::String>>
84 ServiceDependent& WithDependentKeyAttributes(DependentKeyAttributesT&& value) {
85 SetDependentKeyAttributes(std::forward<DependentKeyAttributesT>(value));
86 return *this;
87 }
88 template <typename DependentKeyAttributesKeyT = Aws::String, typename DependentKeyAttributesValueT = Aws::String>
89 ServiceDependent& AddDependentKeyAttributes(DependentKeyAttributesKeyT&& key, DependentKeyAttributesValueT&& value) {
90 m_dependentKeyAttributesHasBeenSet = true;
91 m_dependentKeyAttributes.emplace(std::forward<DependentKeyAttributesKeyT>(key), std::forward<DependentKeyAttributesValueT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetDependentOperationName() const { return m_dependentOperationName; }
102 inline bool DependentOperationNameHasBeenSet() const { return m_dependentOperationNameHasBeenSet; }
103 template <typename DependentOperationNameT = Aws::String>
104 void SetDependentOperationName(DependentOperationNameT&& value) {
105 m_dependentOperationNameHasBeenSet = true;
106 m_dependentOperationName = std::forward<DependentOperationNameT>(value);
107 }
108 template <typename DependentOperationNameT = Aws::String>
109 ServiceDependent& WithDependentOperationName(DependentOperationNameT&& value) {
110 SetDependentOperationName(std::forward<DependentOperationNameT>(value));
111 return *this;
112 }
114
116
121 inline const Aws::Vector<MetricReference>& GetMetricReferences() const { return m_metricReferences; }
122 inline bool MetricReferencesHasBeenSet() const { return m_metricReferencesHasBeenSet; }
123 template <typename MetricReferencesT = Aws::Vector<MetricReference>>
124 void SetMetricReferences(MetricReferencesT&& value) {
125 m_metricReferencesHasBeenSet = true;
126 m_metricReferences = std::forward<MetricReferencesT>(value);
127 }
128 template <typename MetricReferencesT = Aws::Vector<MetricReference>>
129 ServiceDependent& WithMetricReferences(MetricReferencesT&& value) {
130 SetMetricReferences(std::forward<MetricReferencesT>(value));
131 return *this;
132 }
133 template <typename MetricReferencesT = MetricReference>
134 ServiceDependent& AddMetricReferences(MetricReferencesT&& value) {
135 m_metricReferencesHasBeenSet = true;
136 m_metricReferences.emplace_back(std::forward<MetricReferencesT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_operationName;
142
143 Aws::Map<Aws::String, Aws::String> m_dependentKeyAttributes;
144
145 Aws::String m_dependentOperationName;
146
147 Aws::Vector<MetricReference> m_metricReferences;
148 bool m_operationNameHasBeenSet = false;
149 bool m_dependentKeyAttributesHasBeenSet = false;
150 bool m_dependentOperationNameHasBeenSet = false;
151 bool m_metricReferencesHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace ApplicationSignals
156} // namespace Aws
ServiceDependent & AddDependentKeyAttributes(DependentKeyAttributesKeyT &&key, DependentKeyAttributesValueT &&value)
const Aws::Vector< MetricReference > & GetMetricReferences() const
ServiceDependent & WithOperationName(OperationNameT &&value)
ServiceDependent & WithDependentKeyAttributes(DependentKeyAttributesT &&value)
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