AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetOperationName(const Aws::String& value) { m_operationNameHasBeenSet = true; m_operationName = value; }
55 inline void SetOperationName(Aws::String&& value) { m_operationNameHasBeenSet = true; m_operationName = std::move(value); }
56 inline void SetOperationName(const char* value) { m_operationNameHasBeenSet = true; m_operationName.assign(value); }
57 inline ServiceDependent& WithOperationName(const Aws::String& value) { SetOperationName(value); return *this;}
58 inline ServiceDependent& WithOperationName(Aws::String&& value) { SetOperationName(std::move(value)); return *this;}
59 inline ServiceDependent& WithOperationName(const char* value) { SetOperationName(value); return *this;}
61
63
78 inline const Aws::Map<Aws::String, Aws::String>& GetDependentKeyAttributes() const{ return m_dependentKeyAttributes; }
79 inline bool DependentKeyAttributesHasBeenSet() const { return m_dependentKeyAttributesHasBeenSet; }
80 inline void SetDependentKeyAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_dependentKeyAttributesHasBeenSet = true; m_dependentKeyAttributes = value; }
81 inline void SetDependentKeyAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_dependentKeyAttributesHasBeenSet = true; m_dependentKeyAttributes = std::move(value); }
84 inline ServiceDependent& AddDependentKeyAttributes(const Aws::String& key, const Aws::String& value) { m_dependentKeyAttributesHasBeenSet = true; m_dependentKeyAttributes.emplace(key, value); return *this; }
85 inline ServiceDependent& AddDependentKeyAttributes(Aws::String&& key, const Aws::String& value) { m_dependentKeyAttributesHasBeenSet = true; m_dependentKeyAttributes.emplace(std::move(key), value); return *this; }
86 inline ServiceDependent& AddDependentKeyAttributes(const Aws::String& key, Aws::String&& value) { m_dependentKeyAttributesHasBeenSet = true; m_dependentKeyAttributes.emplace(key, std::move(value)); return *this; }
87 inline ServiceDependent& AddDependentKeyAttributes(Aws::String&& key, Aws::String&& value) { m_dependentKeyAttributesHasBeenSet = true; m_dependentKeyAttributes.emplace(std::move(key), std::move(value)); return *this; }
88 inline ServiceDependent& AddDependentKeyAttributes(const char* key, Aws::String&& value) { m_dependentKeyAttributesHasBeenSet = true; m_dependentKeyAttributes.emplace(key, std::move(value)); return *this; }
89 inline ServiceDependent& AddDependentKeyAttributes(Aws::String&& key, const char* value) { m_dependentKeyAttributesHasBeenSet = true; m_dependentKeyAttributes.emplace(std::move(key), value); return *this; }
90 inline ServiceDependent& AddDependentKeyAttributes(const char* key, const char* value) { m_dependentKeyAttributesHasBeenSet = true; m_dependentKeyAttributes.emplace(key, value); return *this; }
92
94
98 inline const Aws::String& GetDependentOperationName() const{ return m_dependentOperationName; }
99 inline bool DependentOperationNameHasBeenSet() const { return m_dependentOperationNameHasBeenSet; }
100 inline void SetDependentOperationName(const Aws::String& value) { m_dependentOperationNameHasBeenSet = true; m_dependentOperationName = value; }
101 inline void SetDependentOperationName(Aws::String&& value) { m_dependentOperationNameHasBeenSet = true; m_dependentOperationName = std::move(value); }
102 inline void SetDependentOperationName(const char* value) { m_dependentOperationNameHasBeenSet = true; m_dependentOperationName.assign(value); }
104 inline ServiceDependent& WithDependentOperationName(Aws::String&& value) { SetDependentOperationName(std::move(value)); return *this;}
105 inline ServiceDependent& WithDependentOperationName(const char* value) { SetDependentOperationName(value); return *this;}
107
109
114 inline const Aws::Vector<MetricReference>& GetMetricReferences() const{ return m_metricReferences; }
115 inline bool MetricReferencesHasBeenSet() const { return m_metricReferencesHasBeenSet; }
116 inline void SetMetricReferences(const Aws::Vector<MetricReference>& value) { m_metricReferencesHasBeenSet = true; m_metricReferences = value; }
117 inline void SetMetricReferences(Aws::Vector<MetricReference>&& value) { m_metricReferencesHasBeenSet = true; m_metricReferences = std::move(value); }
120 inline ServiceDependent& AddMetricReferences(const MetricReference& value) { m_metricReferencesHasBeenSet = true; m_metricReferences.push_back(value); return *this; }
121 inline ServiceDependent& AddMetricReferences(MetricReference&& value) { m_metricReferencesHasBeenSet = true; m_metricReferences.push_back(std::move(value)); return *this; }
123 private:
124
125 Aws::String m_operationName;
126 bool m_operationNameHasBeenSet = false;
127
128 Aws::Map<Aws::String, Aws::String> m_dependentKeyAttributes;
129 bool m_dependentKeyAttributesHasBeenSet = false;
130
131 Aws::String m_dependentOperationName;
132 bool m_dependentOperationNameHasBeenSet = false;
133
134 Aws::Vector<MetricReference> m_metricReferences;
135 bool m_metricReferencesHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace ApplicationSignals
140} // namespace Aws
void SetOperationName(const Aws::String &value)
const Aws::Vector< MetricReference > & GetMetricReferences() const
void SetMetricReferences(Aws::Vector< MetricReference > &&value)
ServiceDependent & WithDependentKeyAttributes(Aws::Map< Aws::String, Aws::String > &&value)
ServiceDependent & WithMetricReferences(const Aws::Vector< MetricReference > &value)
ServiceDependent & WithOperationName(const Aws::String &value)
const Aws::String & GetDependentOperationName() const
ServiceDependent & AddDependentKeyAttributes(const Aws::String &key, const Aws::String &value)
ServiceDependent & WithDependentKeyAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ServiceDependent & WithDependentOperationName(const Aws::String &value)
ServiceDependent & AddDependentKeyAttributes(Aws::String &&key, const char *value)
ServiceDependent & AddMetricReferences(MetricReference &&value)
ServiceDependent & AddDependentKeyAttributes(Aws::String &&key, const Aws::String &value)
ServiceDependent & AddDependentKeyAttributes(Aws::String &&key, Aws::String &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceDependent & WithDependentOperationName(Aws::String &&value)
ServiceDependent & WithOperationName(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetDependentKeyAttributes() const
ServiceDependent & WithDependentOperationName(const char *value)
ServiceDependent & AddDependentKeyAttributes(const Aws::String &key, Aws::String &&value)
void SetDependentOperationName(const Aws::String &value)
void SetDependentKeyAttributes(Aws::Map< Aws::String, Aws::String > &&value)
AWS_APPLICATIONSIGNALS_API ServiceDependent()
void SetMetricReferences(const Aws::Vector< MetricReference > &value)
ServiceDependent & WithOperationName(const char *value)
ServiceDependent & AddDependentKeyAttributes(const char *key, const char *value)
AWS_APPLICATIONSIGNALS_API ServiceDependent(Aws::Utils::Json::JsonView jsonValue)
ServiceDependent & AddDependentKeyAttributes(const char *key, Aws::String &&value)
ServiceDependent & WithMetricReferences(Aws::Vector< MetricReference > &&value)
AWS_APPLICATIONSIGNALS_API ServiceDependent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDependentKeyAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ServiceDependent & AddMetricReferences(const MetricReference &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