AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
TelemetryConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/observabilityadmin/ObservabilityAdmin_EXPORTS.h>
10#include <aws/observabilityadmin/model/ResourceType.h>
11#include <aws/observabilityadmin/model/TelemetrySourceType.h>
12#include <aws/observabilityadmin/model/TelemetryState.h>
13#include <aws/observabilityadmin/model/TelemetryType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ObservabilityAdmin {
25namespace Model {
26
34 public:
35 AWS_OBSERVABILITYADMIN_API TelemetryConfiguration() = default;
36 AWS_OBSERVABILITYADMIN_API TelemetryConfiguration(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OBSERVABILITYADMIN_API TelemetryConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const Aws::String& GetAccountIdentifier() const { return m_accountIdentifier; }
47 inline bool AccountIdentifierHasBeenSet() const { return m_accountIdentifierHasBeenSet; }
48 template <typename AccountIdentifierT = Aws::String>
49 void SetAccountIdentifier(AccountIdentifierT&& value) {
50 m_accountIdentifierHasBeenSet = true;
51 m_accountIdentifier = std::forward<AccountIdentifierT>(value);
52 }
53 template <typename AccountIdentifierT = Aws::String>
54 TelemetryConfiguration& WithAccountIdentifier(AccountIdentifierT&& value) {
55 SetAccountIdentifier(std::forward<AccountIdentifierT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::Map<TelemetryType, TelemetryState>& GetTelemetryConfigurationState() const { return m_telemetryConfigurationState; }
66 inline bool TelemetryConfigurationStateHasBeenSet() const { return m_telemetryConfigurationStateHasBeenSet; }
67 template <typename TelemetryConfigurationStateT = Aws::Map<TelemetryType, TelemetryState>>
68 void SetTelemetryConfigurationState(TelemetryConfigurationStateT&& value) {
69 m_telemetryConfigurationStateHasBeenSet = true;
70 m_telemetryConfigurationState = std::forward<TelemetryConfigurationStateT>(value);
71 }
72 template <typename TelemetryConfigurationStateT = Aws::Map<TelemetryType, TelemetryState>>
73 TelemetryConfiguration& WithTelemetryConfigurationState(TelemetryConfigurationStateT&& value) {
74 SetTelemetryConfigurationState(std::forward<TelemetryConfigurationStateT>(value));
75 return *this;
76 }
78 m_telemetryConfigurationStateHasBeenSet = true;
79 m_telemetryConfigurationState.emplace(key, value);
80 return *this;
81 }
83
85
90 inline ResourceType GetResourceType() const { return m_resourceType; }
91 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
92 inline void SetResourceType(ResourceType value) {
93 m_resourceTypeHasBeenSet = true;
94 m_resourceType = value;
95 }
97 SetResourceType(value);
98 return *this;
99 }
101
103
107 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
108 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
109 template <typename ResourceIdentifierT = Aws::String>
110 void SetResourceIdentifier(ResourceIdentifierT&& value) {
111 m_resourceIdentifierHasBeenSet = true;
112 m_resourceIdentifier = std::forward<ResourceIdentifierT>(value);
113 }
114 template <typename ResourceIdentifierT = Aws::String>
115 TelemetryConfiguration& WithResourceIdentifier(ResourceIdentifierT&& value) {
116 SetResourceIdentifier(std::forward<ResourceIdentifierT>(value));
117 return *this;
118 }
120
122
126 inline const Aws::Map<Aws::String, Aws::String>& GetResourceTags() const { return m_resourceTags; }
127 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
128 template <typename ResourceTagsT = Aws::Map<Aws::String, Aws::String>>
129 void SetResourceTags(ResourceTagsT&& value) {
130 m_resourceTagsHasBeenSet = true;
131 m_resourceTags = std::forward<ResourceTagsT>(value);
132 }
133 template <typename ResourceTagsT = Aws::Map<Aws::String, Aws::String>>
134 TelemetryConfiguration& WithResourceTags(ResourceTagsT&& value) {
135 SetResourceTags(std::forward<ResourceTagsT>(value));
136 return *this;
137 }
138 template <typename ResourceTagsKeyT = Aws::String, typename ResourceTagsValueT = Aws::String>
139 TelemetryConfiguration& AddResourceTags(ResourceTagsKeyT&& key, ResourceTagsValueT&& value) {
140 m_resourceTagsHasBeenSet = true;
141 m_resourceTags.emplace(std::forward<ResourceTagsKeyT>(key), std::forward<ResourceTagsValueT>(value));
142 return *this;
143 }
145
147
151 inline long long GetLastUpdateTimeStamp() const { return m_lastUpdateTimeStamp; }
152 inline bool LastUpdateTimeStampHasBeenSet() const { return m_lastUpdateTimeStampHasBeenSet; }
153 inline void SetLastUpdateTimeStamp(long long value) {
154 m_lastUpdateTimeStampHasBeenSet = true;
155 m_lastUpdateTimeStamp = value;
156 }
159 return *this;
160 }
162
164
165 inline TelemetrySourceType GetTelemetrySourceType() const { return m_telemetrySourceType; }
166 inline bool TelemetrySourceTypeHasBeenSet() const { return m_telemetrySourceTypeHasBeenSet; }
168 m_telemetrySourceTypeHasBeenSet = true;
169 m_telemetrySourceType = value;
170 }
173 return *this;
174 }
176 private:
177 Aws::String m_accountIdentifier;
178
179 Aws::Map<TelemetryType, TelemetryState> m_telemetryConfigurationState;
180
181 ResourceType m_resourceType{ResourceType::NOT_SET};
182
183 Aws::String m_resourceIdentifier;
184
186
187 long long m_lastUpdateTimeStamp{0};
188
190 bool m_accountIdentifierHasBeenSet = false;
191 bool m_telemetryConfigurationStateHasBeenSet = false;
192 bool m_resourceTypeHasBeenSet = false;
193 bool m_resourceIdentifierHasBeenSet = false;
194 bool m_resourceTagsHasBeenSet = false;
195 bool m_lastUpdateTimeStampHasBeenSet = false;
196 bool m_telemetrySourceTypeHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace ObservabilityAdmin
201} // namespace Aws
TelemetryConfiguration & AddTelemetryConfigurationState(TelemetryType key, TelemetryState value)
TelemetryConfiguration & WithTelemetrySourceType(TelemetrySourceType value)
TelemetryConfiguration & WithResourceIdentifier(ResourceIdentifierT &&value)
AWS_OBSERVABILITYADMIN_API TelemetryConfiguration()=default
TelemetryConfiguration & WithAccountIdentifier(AccountIdentifierT &&value)
const Aws::Map< TelemetryType, TelemetryState > & GetTelemetryConfigurationState() const
TelemetryConfiguration & WithResourceType(ResourceType value)
const Aws::Map< Aws::String, Aws::String > & GetResourceTags() const
AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTelemetryConfigurationState(TelemetryConfigurationStateT &&value)
TelemetryConfiguration & WithResourceTags(ResourceTagsT &&value)
AWS_OBSERVABILITYADMIN_API TelemetryConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
TelemetryConfiguration & AddResourceTags(ResourceTagsKeyT &&key, ResourceTagsValueT &&value)
TelemetryConfiguration & WithTelemetryConfigurationState(TelemetryConfigurationStateT &&value)
TelemetryConfiguration & WithLastUpdateTimeStamp(long long value)
AWS_OBSERVABILITYADMIN_API TelemetryConfiguration(Aws::Utils::Json::JsonView jsonValue)
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
Aws::Utils::Json::JsonValue JsonValue