1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <aws/core/utils/DateTime.h> 10 #include <aws/core/utils/memory/stl/AWSMap.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace Utils 16 { 17 namespace Json 18 { 19 class JsonValue; 20 class JsonView; 21 } // namespace Json 22 } // namespace Utils 23 namespace LookoutMetrics 24 { 25 namespace Model 26 { 27 28 /** 29 * <p>Contains information about a dataset.</p><p><h3>See Also:</h3> <a 30 * href="http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/MetricSetSummary">AWS 31 * API Reference</a></p> 32 */ 33 class AWS_LOOKOUTMETRICS_API MetricSetSummary 34 { 35 public: 36 MetricSetSummary(); 37 MetricSetSummary(Aws::Utils::Json::JsonView jsonValue); 38 MetricSetSummary& operator=(Aws::Utils::Json::JsonView jsonValue); 39 Aws::Utils::Json::JsonValue Jsonize() const; 40 41 42 /** 43 * <p>The ARN of the dataset.</p> 44 */ GetMetricSetArn()45 inline const Aws::String& GetMetricSetArn() const{ return m_metricSetArn; } 46 47 /** 48 * <p>The ARN of the dataset.</p> 49 */ MetricSetArnHasBeenSet()50 inline bool MetricSetArnHasBeenSet() const { return m_metricSetArnHasBeenSet; } 51 52 /** 53 * <p>The ARN of the dataset.</p> 54 */ SetMetricSetArn(const Aws::String & value)55 inline void SetMetricSetArn(const Aws::String& value) { m_metricSetArnHasBeenSet = true; m_metricSetArn = value; } 56 57 /** 58 * <p>The ARN of the dataset.</p> 59 */ SetMetricSetArn(Aws::String && value)60 inline void SetMetricSetArn(Aws::String&& value) { m_metricSetArnHasBeenSet = true; m_metricSetArn = std::move(value); } 61 62 /** 63 * <p>The ARN of the dataset.</p> 64 */ SetMetricSetArn(const char * value)65 inline void SetMetricSetArn(const char* value) { m_metricSetArnHasBeenSet = true; m_metricSetArn.assign(value); } 66 67 /** 68 * <p>The ARN of the dataset.</p> 69 */ WithMetricSetArn(const Aws::String & value)70 inline MetricSetSummary& WithMetricSetArn(const Aws::String& value) { SetMetricSetArn(value); return *this;} 71 72 /** 73 * <p>The ARN of the dataset.</p> 74 */ WithMetricSetArn(Aws::String && value)75 inline MetricSetSummary& WithMetricSetArn(Aws::String&& value) { SetMetricSetArn(std::move(value)); return *this;} 76 77 /** 78 * <p>The ARN of the dataset.</p> 79 */ WithMetricSetArn(const char * value)80 inline MetricSetSummary& WithMetricSetArn(const char* value) { SetMetricSetArn(value); return *this;} 81 82 83 /** 84 * <p>The ARN of the detector to which the dataset belongs.</p> 85 */ GetAnomalyDetectorArn()86 inline const Aws::String& GetAnomalyDetectorArn() const{ return m_anomalyDetectorArn; } 87 88 /** 89 * <p>The ARN of the detector to which the dataset belongs.</p> 90 */ AnomalyDetectorArnHasBeenSet()91 inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; } 92 93 /** 94 * <p>The ARN of the detector to which the dataset belongs.</p> 95 */ SetAnomalyDetectorArn(const Aws::String & value)96 inline void SetAnomalyDetectorArn(const Aws::String& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = value; } 97 98 /** 99 * <p>The ARN of the detector to which the dataset belongs.</p> 100 */ SetAnomalyDetectorArn(Aws::String && value)101 inline void SetAnomalyDetectorArn(Aws::String&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::move(value); } 102 103 /** 104 * <p>The ARN of the detector to which the dataset belongs.</p> 105 */ SetAnomalyDetectorArn(const char * value)106 inline void SetAnomalyDetectorArn(const char* value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn.assign(value); } 107 108 /** 109 * <p>The ARN of the detector to which the dataset belongs.</p> 110 */ WithAnomalyDetectorArn(const Aws::String & value)111 inline MetricSetSummary& WithAnomalyDetectorArn(const Aws::String& value) { SetAnomalyDetectorArn(value); return *this;} 112 113 /** 114 * <p>The ARN of the detector to which the dataset belongs.</p> 115 */ WithAnomalyDetectorArn(Aws::String && value)116 inline MetricSetSummary& WithAnomalyDetectorArn(Aws::String&& value) { SetAnomalyDetectorArn(std::move(value)); return *this;} 117 118 /** 119 * <p>The ARN of the detector to which the dataset belongs.</p> 120 */ WithAnomalyDetectorArn(const char * value)121 inline MetricSetSummary& WithAnomalyDetectorArn(const char* value) { SetAnomalyDetectorArn(value); return *this;} 122 123 124 /** 125 * <p>The description of the dataset.</p> 126 */ GetMetricSetDescription()127 inline const Aws::String& GetMetricSetDescription() const{ return m_metricSetDescription; } 128 129 /** 130 * <p>The description of the dataset.</p> 131 */ MetricSetDescriptionHasBeenSet()132 inline bool MetricSetDescriptionHasBeenSet() const { return m_metricSetDescriptionHasBeenSet; } 133 134 /** 135 * <p>The description of the dataset.</p> 136 */ SetMetricSetDescription(const Aws::String & value)137 inline void SetMetricSetDescription(const Aws::String& value) { m_metricSetDescriptionHasBeenSet = true; m_metricSetDescription = value; } 138 139 /** 140 * <p>The description of the dataset.</p> 141 */ SetMetricSetDescription(Aws::String && value)142 inline void SetMetricSetDescription(Aws::String&& value) { m_metricSetDescriptionHasBeenSet = true; m_metricSetDescription = std::move(value); } 143 144 /** 145 * <p>The description of the dataset.</p> 146 */ SetMetricSetDescription(const char * value)147 inline void SetMetricSetDescription(const char* value) { m_metricSetDescriptionHasBeenSet = true; m_metricSetDescription.assign(value); } 148 149 /** 150 * <p>The description of the dataset.</p> 151 */ WithMetricSetDescription(const Aws::String & value)152 inline MetricSetSummary& WithMetricSetDescription(const Aws::String& value) { SetMetricSetDescription(value); return *this;} 153 154 /** 155 * <p>The description of the dataset.</p> 156 */ WithMetricSetDescription(Aws::String && value)157 inline MetricSetSummary& WithMetricSetDescription(Aws::String&& value) { SetMetricSetDescription(std::move(value)); return *this;} 158 159 /** 160 * <p>The description of the dataset.</p> 161 */ WithMetricSetDescription(const char * value)162 inline MetricSetSummary& WithMetricSetDescription(const char* value) { SetMetricSetDescription(value); return *this;} 163 164 165 /** 166 * <p>The name of the dataset.</p> 167 */ GetMetricSetName()168 inline const Aws::String& GetMetricSetName() const{ return m_metricSetName; } 169 170 /** 171 * <p>The name of the dataset.</p> 172 */ MetricSetNameHasBeenSet()173 inline bool MetricSetNameHasBeenSet() const { return m_metricSetNameHasBeenSet; } 174 175 /** 176 * <p>The name of the dataset.</p> 177 */ SetMetricSetName(const Aws::String & value)178 inline void SetMetricSetName(const Aws::String& value) { m_metricSetNameHasBeenSet = true; m_metricSetName = value; } 179 180 /** 181 * <p>The name of the dataset.</p> 182 */ SetMetricSetName(Aws::String && value)183 inline void SetMetricSetName(Aws::String&& value) { m_metricSetNameHasBeenSet = true; m_metricSetName = std::move(value); } 184 185 /** 186 * <p>The name of the dataset.</p> 187 */ SetMetricSetName(const char * value)188 inline void SetMetricSetName(const char* value) { m_metricSetNameHasBeenSet = true; m_metricSetName.assign(value); } 189 190 /** 191 * <p>The name of the dataset.</p> 192 */ WithMetricSetName(const Aws::String & value)193 inline MetricSetSummary& WithMetricSetName(const Aws::String& value) { SetMetricSetName(value); return *this;} 194 195 /** 196 * <p>The name of the dataset.</p> 197 */ WithMetricSetName(Aws::String && value)198 inline MetricSetSummary& WithMetricSetName(Aws::String&& value) { SetMetricSetName(std::move(value)); return *this;} 199 200 /** 201 * <p>The name of the dataset.</p> 202 */ WithMetricSetName(const char * value)203 inline MetricSetSummary& WithMetricSetName(const char* value) { SetMetricSetName(value); return *this;} 204 205 206 /** 207 * <p>The time at which the dataset was created.</p> 208 */ GetCreationTime()209 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } 210 211 /** 212 * <p>The time at which the dataset was created.</p> 213 */ CreationTimeHasBeenSet()214 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } 215 216 /** 217 * <p>The time at which the dataset was created.</p> 218 */ SetCreationTime(const Aws::Utils::DateTime & value)219 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } 220 221 /** 222 * <p>The time at which the dataset was created.</p> 223 */ SetCreationTime(Aws::Utils::DateTime && value)224 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } 225 226 /** 227 * <p>The time at which the dataset was created.</p> 228 */ WithCreationTime(const Aws::Utils::DateTime & value)229 inline MetricSetSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} 230 231 /** 232 * <p>The time at which the dataset was created.</p> 233 */ WithCreationTime(Aws::Utils::DateTime && value)234 inline MetricSetSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} 235 236 237 /** 238 * <p>The time at which the dataset was last modified.</p> 239 */ GetLastModificationTime()240 inline const Aws::Utils::DateTime& GetLastModificationTime() const{ return m_lastModificationTime; } 241 242 /** 243 * <p>The time at which the dataset was last modified.</p> 244 */ LastModificationTimeHasBeenSet()245 inline bool LastModificationTimeHasBeenSet() const { return m_lastModificationTimeHasBeenSet; } 246 247 /** 248 * <p>The time at which the dataset was last modified.</p> 249 */ SetLastModificationTime(const Aws::Utils::DateTime & value)250 inline void SetLastModificationTime(const Aws::Utils::DateTime& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = value; } 251 252 /** 253 * <p>The time at which the dataset was last modified.</p> 254 */ SetLastModificationTime(Aws::Utils::DateTime && value)255 inline void SetLastModificationTime(Aws::Utils::DateTime&& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = std::move(value); } 256 257 /** 258 * <p>The time at which the dataset was last modified.</p> 259 */ WithLastModificationTime(const Aws::Utils::DateTime & value)260 inline MetricSetSummary& WithLastModificationTime(const Aws::Utils::DateTime& value) { SetLastModificationTime(value); return *this;} 261 262 /** 263 * <p>The time at which the dataset was last modified.</p> 264 */ WithLastModificationTime(Aws::Utils::DateTime && value)265 inline MetricSetSummary& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;} 266 267 268 /** 269 * <p>The dataset's <a 270 * href="https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html">tags</a>.</p> 271 */ GetTags()272 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; } 273 274 /** 275 * <p>The dataset's <a 276 * href="https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html">tags</a>.</p> 277 */ TagsHasBeenSet()278 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } 279 280 /** 281 * <p>The dataset's <a 282 * href="https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html">tags</a>.</p> 283 */ SetTags(const Aws::Map<Aws::String,Aws::String> & value)284 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; } 285 286 /** 287 * <p>The dataset's <a 288 * href="https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html">tags</a>.</p> 289 */ SetTags(Aws::Map<Aws::String,Aws::String> && value)290 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } 291 292 /** 293 * <p>The dataset's <a 294 * href="https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html">tags</a>.</p> 295 */ WithTags(const Aws::Map<Aws::String,Aws::String> & value)296 inline MetricSetSummary& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;} 297 298 /** 299 * <p>The dataset's <a 300 * href="https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html">tags</a>.</p> 301 */ WithTags(Aws::Map<Aws::String,Aws::String> && value)302 inline MetricSetSummary& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;} 303 304 /** 305 * <p>The dataset's <a 306 * href="https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html">tags</a>.</p> 307 */ AddTags(const Aws::String & key,const Aws::String & value)308 inline MetricSetSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } 309 310 /** 311 * <p>The dataset's <a 312 * href="https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html">tags</a>.</p> 313 */ AddTags(Aws::String && key,const Aws::String & value)314 inline MetricSetSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } 315 316 /** 317 * <p>The dataset's <a 318 * href="https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html">tags</a>.</p> 319 */ AddTags(const Aws::String & key,Aws::String && value)320 inline MetricSetSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } 321 322 /** 323 * <p>The dataset's <a 324 * href="https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html">tags</a>.</p> 325 */ AddTags(Aws::String && key,Aws::String && value)326 inline MetricSetSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } 327 328 /** 329 * <p>The dataset's <a 330 * href="https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html">tags</a>.</p> 331 */ AddTags(const char * key,Aws::String && value)332 inline MetricSetSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } 333 334 /** 335 * <p>The dataset's <a 336 * href="https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html">tags</a>.</p> 337 */ AddTags(Aws::String && key,const char * value)338 inline MetricSetSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } 339 340 /** 341 * <p>The dataset's <a 342 * href="https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html">tags</a>.</p> 343 */ AddTags(const char * key,const char * value)344 inline MetricSetSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } 345 346 private: 347 348 Aws::String m_metricSetArn; 349 bool m_metricSetArnHasBeenSet; 350 351 Aws::String m_anomalyDetectorArn; 352 bool m_anomalyDetectorArnHasBeenSet; 353 354 Aws::String m_metricSetDescription; 355 bool m_metricSetDescriptionHasBeenSet; 356 357 Aws::String m_metricSetName; 358 bool m_metricSetNameHasBeenSet; 359 360 Aws::Utils::DateTime m_creationTime; 361 bool m_creationTimeHasBeenSet; 362 363 Aws::Utils::DateTime m_lastModificationTime; 364 bool m_lastModificationTimeHasBeenSet; 365 366 Aws::Map<Aws::String, Aws::String> m_tags; 367 bool m_tagsHasBeenSet; 368 }; 369 370 } // namespace Model 371 } // namespace LookoutMetrics 372 } // namespace Aws 373