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/memory/stl/AWSVector.h>
10 #include <aws/lookoutmetrics/model/TimeSeries.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22   class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace LookoutMetrics
26 {
27 namespace Model
28 {
29   class AWS_LOOKOUTMETRICS_API ListAnomalyGroupTimeSeriesResult
30   {
31   public:
32     ListAnomalyGroupTimeSeriesResult();
33     ListAnomalyGroupTimeSeriesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34     ListAnomalyGroupTimeSeriesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
35 
36 
37     /**
38      * <p>The ID of the anomaly group.</p>
39      */
GetAnomalyGroupId()40     inline const Aws::String& GetAnomalyGroupId() const{ return m_anomalyGroupId; }
41 
42     /**
43      * <p>The ID of the anomaly group.</p>
44      */
SetAnomalyGroupId(const Aws::String & value)45     inline void SetAnomalyGroupId(const Aws::String& value) { m_anomalyGroupId = value; }
46 
47     /**
48      * <p>The ID of the anomaly group.</p>
49      */
SetAnomalyGroupId(Aws::String && value)50     inline void SetAnomalyGroupId(Aws::String&& value) { m_anomalyGroupId = std::move(value); }
51 
52     /**
53      * <p>The ID of the anomaly group.</p>
54      */
SetAnomalyGroupId(const char * value)55     inline void SetAnomalyGroupId(const char* value) { m_anomalyGroupId.assign(value); }
56 
57     /**
58      * <p>The ID of the anomaly group.</p>
59      */
WithAnomalyGroupId(const Aws::String & value)60     inline ListAnomalyGroupTimeSeriesResult& WithAnomalyGroupId(const Aws::String& value) { SetAnomalyGroupId(value); return *this;}
61 
62     /**
63      * <p>The ID of the anomaly group.</p>
64      */
WithAnomalyGroupId(Aws::String && value)65     inline ListAnomalyGroupTimeSeriesResult& WithAnomalyGroupId(Aws::String&& value) { SetAnomalyGroupId(std::move(value)); return *this;}
66 
67     /**
68      * <p>The ID of the anomaly group.</p>
69      */
WithAnomalyGroupId(const char * value)70     inline ListAnomalyGroupTimeSeriesResult& WithAnomalyGroupId(const char* value) { SetAnomalyGroupId(value); return *this;}
71 
72 
73     /**
74      * <p>The name of the measure field.</p>
75      */
GetMetricName()76     inline const Aws::String& GetMetricName() const{ return m_metricName; }
77 
78     /**
79      * <p>The name of the measure field.</p>
80      */
SetMetricName(const Aws::String & value)81     inline void SetMetricName(const Aws::String& value) { m_metricName = value; }
82 
83     /**
84      * <p>The name of the measure field.</p>
85      */
SetMetricName(Aws::String && value)86     inline void SetMetricName(Aws::String&& value) { m_metricName = std::move(value); }
87 
88     /**
89      * <p>The name of the measure field.</p>
90      */
SetMetricName(const char * value)91     inline void SetMetricName(const char* value) { m_metricName.assign(value); }
92 
93     /**
94      * <p>The name of the measure field.</p>
95      */
WithMetricName(const Aws::String & value)96     inline ListAnomalyGroupTimeSeriesResult& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
97 
98     /**
99      * <p>The name of the measure field.</p>
100      */
WithMetricName(Aws::String && value)101     inline ListAnomalyGroupTimeSeriesResult& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
102 
103     /**
104      * <p>The name of the measure field.</p>
105      */
WithMetricName(const char * value)106     inline ListAnomalyGroupTimeSeriesResult& WithMetricName(const char* value) { SetMetricName(value); return *this;}
107 
108 
109     /**
110      * <p>Timestamps for the anomalous metrics.</p>
111      */
GetTimestampList()112     inline const Aws::Vector<Aws::String>& GetTimestampList() const{ return m_timestampList; }
113 
114     /**
115      * <p>Timestamps for the anomalous metrics.</p>
116      */
SetTimestampList(const Aws::Vector<Aws::String> & value)117     inline void SetTimestampList(const Aws::Vector<Aws::String>& value) { m_timestampList = value; }
118 
119     /**
120      * <p>Timestamps for the anomalous metrics.</p>
121      */
SetTimestampList(Aws::Vector<Aws::String> && value)122     inline void SetTimestampList(Aws::Vector<Aws::String>&& value) { m_timestampList = std::move(value); }
123 
124     /**
125      * <p>Timestamps for the anomalous metrics.</p>
126      */
WithTimestampList(const Aws::Vector<Aws::String> & value)127     inline ListAnomalyGroupTimeSeriesResult& WithTimestampList(const Aws::Vector<Aws::String>& value) { SetTimestampList(value); return *this;}
128 
129     /**
130      * <p>Timestamps for the anomalous metrics.</p>
131      */
WithTimestampList(Aws::Vector<Aws::String> && value)132     inline ListAnomalyGroupTimeSeriesResult& WithTimestampList(Aws::Vector<Aws::String>&& value) { SetTimestampList(std::move(value)); return *this;}
133 
134     /**
135      * <p>Timestamps for the anomalous metrics.</p>
136      */
AddTimestampList(const Aws::String & value)137     inline ListAnomalyGroupTimeSeriesResult& AddTimestampList(const Aws::String& value) { m_timestampList.push_back(value); return *this; }
138 
139     /**
140      * <p>Timestamps for the anomalous metrics.</p>
141      */
AddTimestampList(Aws::String && value)142     inline ListAnomalyGroupTimeSeriesResult& AddTimestampList(Aws::String&& value) { m_timestampList.push_back(std::move(value)); return *this; }
143 
144     /**
145      * <p>Timestamps for the anomalous metrics.</p>
146      */
AddTimestampList(const char * value)147     inline ListAnomalyGroupTimeSeriesResult& AddTimestampList(const char* value) { m_timestampList.push_back(value); return *this; }
148 
149 
150     /**
151      * <p>The pagination token that's included if more results are available.</p>
152      */
GetNextToken()153     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
154 
155     /**
156      * <p>The pagination token that's included if more results are available.</p>
157      */
SetNextToken(const Aws::String & value)158     inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
159 
160     /**
161      * <p>The pagination token that's included if more results are available.</p>
162      */
SetNextToken(Aws::String && value)163     inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
164 
165     /**
166      * <p>The pagination token that's included if more results are available.</p>
167      */
SetNextToken(const char * value)168     inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
169 
170     /**
171      * <p>The pagination token that's included if more results are available.</p>
172      */
WithNextToken(const Aws::String & value)173     inline ListAnomalyGroupTimeSeriesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
174 
175     /**
176      * <p>The pagination token that's included if more results are available.</p>
177      */
WithNextToken(Aws::String && value)178     inline ListAnomalyGroupTimeSeriesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
179 
180     /**
181      * <p>The pagination token that's included if more results are available.</p>
182      */
WithNextToken(const char * value)183     inline ListAnomalyGroupTimeSeriesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
184 
185 
186     /**
187      * <p>A list of anomalous metrics.</p>
188      */
GetTimeSeriesList()189     inline const Aws::Vector<TimeSeries>& GetTimeSeriesList() const{ return m_timeSeriesList; }
190 
191     /**
192      * <p>A list of anomalous metrics.</p>
193      */
SetTimeSeriesList(const Aws::Vector<TimeSeries> & value)194     inline void SetTimeSeriesList(const Aws::Vector<TimeSeries>& value) { m_timeSeriesList = value; }
195 
196     /**
197      * <p>A list of anomalous metrics.</p>
198      */
SetTimeSeriesList(Aws::Vector<TimeSeries> && value)199     inline void SetTimeSeriesList(Aws::Vector<TimeSeries>&& value) { m_timeSeriesList = std::move(value); }
200 
201     /**
202      * <p>A list of anomalous metrics.</p>
203      */
WithTimeSeriesList(const Aws::Vector<TimeSeries> & value)204     inline ListAnomalyGroupTimeSeriesResult& WithTimeSeriesList(const Aws::Vector<TimeSeries>& value) { SetTimeSeriesList(value); return *this;}
205 
206     /**
207      * <p>A list of anomalous metrics.</p>
208      */
WithTimeSeriesList(Aws::Vector<TimeSeries> && value)209     inline ListAnomalyGroupTimeSeriesResult& WithTimeSeriesList(Aws::Vector<TimeSeries>&& value) { SetTimeSeriesList(std::move(value)); return *this;}
210 
211     /**
212      * <p>A list of anomalous metrics.</p>
213      */
AddTimeSeriesList(const TimeSeries & value)214     inline ListAnomalyGroupTimeSeriesResult& AddTimeSeriesList(const TimeSeries& value) { m_timeSeriesList.push_back(value); return *this; }
215 
216     /**
217      * <p>A list of anomalous metrics.</p>
218      */
AddTimeSeriesList(TimeSeries && value)219     inline ListAnomalyGroupTimeSeriesResult& AddTimeSeriesList(TimeSeries&& value) { m_timeSeriesList.push_back(std::move(value)); return *this; }
220 
221   private:
222 
223     Aws::String m_anomalyGroupId;
224 
225     Aws::String m_metricName;
226 
227     Aws::Vector<Aws::String> m_timestampList;
228 
229     Aws::String m_nextToken;
230 
231     Aws::Vector<TimeSeries> m_timeSeriesList;
232   };
233 
234 } // namespace Model
235 } // namespace LookoutMetrics
236 } // namespace Aws
237