AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
MetricSetSummary.h
1
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
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LookoutMetrics
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_LOOKOUTMETRICS_API MetricSetSummary() = default;
37 AWS_LOOKOUTMETRICS_API MetricSetSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LOOKOUTMETRICS_API MetricSetSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetMetricSetArn() const { return m_metricSetArn; }
47 inline bool MetricSetArnHasBeenSet() const { return m_metricSetArnHasBeenSet; }
48 template<typename MetricSetArnT = Aws::String>
49 void SetMetricSetArn(MetricSetArnT&& value) { m_metricSetArnHasBeenSet = true; m_metricSetArn = std::forward<MetricSetArnT>(value); }
50 template<typename MetricSetArnT = Aws::String>
51 MetricSetSummary& WithMetricSetArn(MetricSetArnT&& value) { SetMetricSetArn(std::forward<MetricSetArnT>(value)); return *this;}
53
55
58 inline const Aws::String& GetAnomalyDetectorArn() const { return m_anomalyDetectorArn; }
59 inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; }
60 template<typename AnomalyDetectorArnT = Aws::String>
61 void SetAnomalyDetectorArn(AnomalyDetectorArnT&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::forward<AnomalyDetectorArnT>(value); }
62 template<typename AnomalyDetectorArnT = Aws::String>
63 MetricSetSummary& WithAnomalyDetectorArn(AnomalyDetectorArnT&& value) { SetAnomalyDetectorArn(std::forward<AnomalyDetectorArnT>(value)); return *this;}
65
67
70 inline const Aws::String& GetMetricSetDescription() const { return m_metricSetDescription; }
71 inline bool MetricSetDescriptionHasBeenSet() const { return m_metricSetDescriptionHasBeenSet; }
72 template<typename MetricSetDescriptionT = Aws::String>
73 void SetMetricSetDescription(MetricSetDescriptionT&& value) { m_metricSetDescriptionHasBeenSet = true; m_metricSetDescription = std::forward<MetricSetDescriptionT>(value); }
74 template<typename MetricSetDescriptionT = Aws::String>
75 MetricSetSummary& WithMetricSetDescription(MetricSetDescriptionT&& value) { SetMetricSetDescription(std::forward<MetricSetDescriptionT>(value)); return *this;}
77
79
82 inline const Aws::String& GetMetricSetName() const { return m_metricSetName; }
83 inline bool MetricSetNameHasBeenSet() const { return m_metricSetNameHasBeenSet; }
84 template<typename MetricSetNameT = Aws::String>
85 void SetMetricSetName(MetricSetNameT&& value) { m_metricSetNameHasBeenSet = true; m_metricSetName = std::forward<MetricSetNameT>(value); }
86 template<typename MetricSetNameT = Aws::String>
87 MetricSetSummary& WithMetricSetName(MetricSetNameT&& value) { SetMetricSetName(std::forward<MetricSetNameT>(value)); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
95 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
96 template<typename CreationTimeT = Aws::Utils::DateTime>
97 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
98 template<typename CreationTimeT = Aws::Utils::DateTime>
99 MetricSetSummary& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
101
103
106 inline const Aws::Utils::DateTime& GetLastModificationTime() const { return m_lastModificationTime; }
107 inline bool LastModificationTimeHasBeenSet() const { return m_lastModificationTimeHasBeenSet; }
108 template<typename LastModificationTimeT = Aws::Utils::DateTime>
109 void SetLastModificationTime(LastModificationTimeT&& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = std::forward<LastModificationTimeT>(value); }
110 template<typename LastModificationTimeT = Aws::Utils::DateTime>
111 MetricSetSummary& WithLastModificationTime(LastModificationTimeT&& value) { SetLastModificationTime(std::forward<LastModificationTimeT>(value)); return *this;}
113
115
119 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
120 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
121 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
123 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
124 MetricSetSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
125 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
126 MetricSetSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
127 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
128 }
130 private:
131
132 Aws::String m_metricSetArn;
133 bool m_metricSetArnHasBeenSet = false;
134
135 Aws::String m_anomalyDetectorArn;
136 bool m_anomalyDetectorArnHasBeenSet = false;
137
138 Aws::String m_metricSetDescription;
139 bool m_metricSetDescriptionHasBeenSet = false;
140
141 Aws::String m_metricSetName;
142 bool m_metricSetNameHasBeenSet = false;
143
144 Aws::Utils::DateTime m_creationTime{};
145 bool m_creationTimeHasBeenSet = false;
146
147 Aws::Utils::DateTime m_lastModificationTime{};
148 bool m_lastModificationTimeHasBeenSet = false;
149
151 bool m_tagsHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace LookoutMetrics
156} // namespace Aws
MetricSetSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
MetricSetSummary & WithLastModificationTime(LastModificationTimeT &&value)
AWS_LOOKOUTMETRICS_API MetricSetSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_LOOKOUTMETRICS_API MetricSetSummary()=default
const Aws::Utils::DateTime & GetLastModificationTime() const
MetricSetSummary & WithMetricSetArn(MetricSetArnT &&value)
AWS_LOOKOUTMETRICS_API MetricSetSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMetricSetDescription() const
MetricSetSummary & WithMetricSetDescription(MetricSetDescriptionT &&value)
void SetLastModificationTime(LastModificationTimeT &&value)
void SetAnomalyDetectorArn(AnomalyDetectorArnT &&value)
void SetMetricSetName(MetricSetNameT &&value)
const Aws::String & GetAnomalyDetectorArn() const
MetricSetSummary & WithAnomalyDetectorArn(AnomalyDetectorArnT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
MetricSetSummary & WithMetricSetName(MetricSetNameT &&value)
MetricSetSummary & WithTags(TagsT &&value)
void SetMetricSetDescription(MetricSetDescriptionT &&value)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
MetricSetSummary & WithCreationTime(CreationTimeT &&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
Aws::Utils::Json::JsonValue JsonValue