AWS SDK for C++

AWS SDK for C++ Version 1.11.751

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/TelemetryState.h>
12#include <aws/observabilityadmin/model/TelemetryType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ObservabilityAdmin {
24namespace Model {
25
33 public:
34 AWS_OBSERVABILITYADMIN_API TelemetryConfiguration() = default;
35 AWS_OBSERVABILITYADMIN_API TelemetryConfiguration(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OBSERVABILITYADMIN_API TelemetryConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline const Aws::String& GetAccountIdentifier() const { return m_accountIdentifier; }
46 inline bool AccountIdentifierHasBeenSet() const { return m_accountIdentifierHasBeenSet; }
47 template <typename AccountIdentifierT = Aws::String>
48 void SetAccountIdentifier(AccountIdentifierT&& value) {
49 m_accountIdentifierHasBeenSet = true;
50 m_accountIdentifier = std::forward<AccountIdentifierT>(value);
51 }
52 template <typename AccountIdentifierT = Aws::String>
53 TelemetryConfiguration& WithAccountIdentifier(AccountIdentifierT&& value) {
54 SetAccountIdentifier(std::forward<AccountIdentifierT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::Map<TelemetryType, TelemetryState>& GetTelemetryConfigurationState() const { return m_telemetryConfigurationState; }
65 inline bool TelemetryConfigurationStateHasBeenSet() const { return m_telemetryConfigurationStateHasBeenSet; }
66 template <typename TelemetryConfigurationStateT = Aws::Map<TelemetryType, TelemetryState>>
67 void SetTelemetryConfigurationState(TelemetryConfigurationStateT&& value) {
68 m_telemetryConfigurationStateHasBeenSet = true;
69 m_telemetryConfigurationState = std::forward<TelemetryConfigurationStateT>(value);
70 }
71 template <typename TelemetryConfigurationStateT = Aws::Map<TelemetryType, TelemetryState>>
72 TelemetryConfiguration& WithTelemetryConfigurationState(TelemetryConfigurationStateT&& value) {
73 SetTelemetryConfigurationState(std::forward<TelemetryConfigurationStateT>(value));
74 return *this;
75 }
77 m_telemetryConfigurationStateHasBeenSet = true;
78 m_telemetryConfigurationState.emplace(key, value);
79 return *this;
80 }
82
84
89 inline ResourceType GetResourceType() const { return m_resourceType; }
90 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
91 inline void SetResourceType(ResourceType value) {
92 m_resourceTypeHasBeenSet = true;
93 m_resourceType = value;
94 }
96 SetResourceType(value);
97 return *this;
98 }
100
102
106 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
107 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
108 template <typename ResourceIdentifierT = Aws::String>
109 void SetResourceIdentifier(ResourceIdentifierT&& value) {
110 m_resourceIdentifierHasBeenSet = true;
111 m_resourceIdentifier = std::forward<ResourceIdentifierT>(value);
112 }
113 template <typename ResourceIdentifierT = Aws::String>
114 TelemetryConfiguration& WithResourceIdentifier(ResourceIdentifierT&& value) {
115 SetResourceIdentifier(std::forward<ResourceIdentifierT>(value));
116 return *this;
117 }
119
121
125 inline const Aws::Map<Aws::String, Aws::String>& GetResourceTags() const { return m_resourceTags; }
126 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
127 template <typename ResourceTagsT = Aws::Map<Aws::String, Aws::String>>
128 void SetResourceTags(ResourceTagsT&& value) {
129 m_resourceTagsHasBeenSet = true;
130 m_resourceTags = std::forward<ResourceTagsT>(value);
131 }
132 template <typename ResourceTagsT = Aws::Map<Aws::String, Aws::String>>
133 TelemetryConfiguration& WithResourceTags(ResourceTagsT&& value) {
134 SetResourceTags(std::forward<ResourceTagsT>(value));
135 return *this;
136 }
137 template <typename ResourceTagsKeyT = Aws::String, typename ResourceTagsValueT = Aws::String>
138 TelemetryConfiguration& AddResourceTags(ResourceTagsKeyT&& key, ResourceTagsValueT&& value) {
139 m_resourceTagsHasBeenSet = true;
140 m_resourceTags.emplace(std::forward<ResourceTagsKeyT>(key), std::forward<ResourceTagsValueT>(value));
141 return *this;
142 }
144
146
150 inline long long GetLastUpdateTimeStamp() const { return m_lastUpdateTimeStamp; }
151 inline bool LastUpdateTimeStampHasBeenSet() const { return m_lastUpdateTimeStampHasBeenSet; }
152 inline void SetLastUpdateTimeStamp(long long value) {
153 m_lastUpdateTimeStampHasBeenSet = true;
154 m_lastUpdateTimeStamp = value;
155 }
158 return *this;
159 }
161 private:
162 Aws::String m_accountIdentifier;
163
164 Aws::Map<TelemetryType, TelemetryState> m_telemetryConfigurationState;
165
166 ResourceType m_resourceType{ResourceType::NOT_SET};
167
168 Aws::String m_resourceIdentifier;
169
171
172 long long m_lastUpdateTimeStamp{0};
173 bool m_accountIdentifierHasBeenSet = false;
174 bool m_telemetryConfigurationStateHasBeenSet = false;
175 bool m_resourceTypeHasBeenSet = false;
176 bool m_resourceIdentifierHasBeenSet = false;
177 bool m_resourceTagsHasBeenSet = false;
178 bool m_lastUpdateTimeStampHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace ObservabilityAdmin
183} // namespace Aws
TelemetryConfiguration & AddTelemetryConfigurationState(TelemetryType key, TelemetryState 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