AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ListAnomaliesResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/logs/CloudWatchLogs_EXPORTS.h>
11#include <aws/logs/model/Anomaly.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CloudWatchLogs {
25namespace Model {
27 public:
28 AWS_CLOUDWATCHLOGS_API ListAnomaliesResult() = default;
31
33
37 inline const Aws::Vector<Anomaly>& GetAnomalies() const { return m_anomalies; }
38 template <typename AnomaliesT = Aws::Vector<Anomaly>>
39 void SetAnomalies(AnomaliesT&& value) {
40 m_anomaliesHasBeenSet = true;
41 m_anomalies = std::forward<AnomaliesT>(value);
42 }
43 template <typename AnomaliesT = Aws::Vector<Anomaly>>
44 ListAnomaliesResult& WithAnomalies(AnomaliesT&& value) {
45 SetAnomalies(std::forward<AnomaliesT>(value));
46 return *this;
47 }
48 template <typename AnomaliesT = Anomaly>
49 ListAnomaliesResult& AddAnomalies(AnomaliesT&& value) {
50 m_anomaliesHasBeenSet = true;
51 m_anomalies.emplace_back(std::forward<AnomaliesT>(value));
52 return *this;
53 }
55
57
58 inline const Aws::String& GetNextToken() const { return m_nextToken; }
59 template <typename NextTokenT = Aws::String>
60 void SetNextToken(NextTokenT&& value) {
61 m_nextTokenHasBeenSet = true;
62 m_nextToken = std::forward<NextTokenT>(value);
63 }
64 template <typename NextTokenT = Aws::String>
65 ListAnomaliesResult& WithNextToken(NextTokenT&& value) {
66 SetNextToken(std::forward<NextTokenT>(value));
67 return *this;
68 }
70
72
73 inline const Aws::String& GetRequestId() const { return m_requestId; }
74 template <typename RequestIdT = Aws::String>
75 void SetRequestId(RequestIdT&& value) {
76 m_requestIdHasBeenSet = true;
77 m_requestId = std::forward<RequestIdT>(value);
78 }
79 template <typename RequestIdT = Aws::String>
80 ListAnomaliesResult& WithRequestId(RequestIdT&& value) {
81 SetRequestId(std::forward<RequestIdT>(value));
82 return *this;
83 }
85 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
86
87 private:
88 Aws::Vector<Anomaly> m_anomalies;
89
90 Aws::String m_nextToken;
91
92 Aws::String m_requestId;
93 Aws::Http::HttpResponseCode m_HttpResponseCode;
94 bool m_anomaliesHasBeenSet = false;
95 bool m_nextTokenHasBeenSet = false;
96 bool m_requestIdHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace CloudWatchLogs
101} // namespace Aws
AWS_CLOUDWATCHLOGS_API ListAnomaliesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListAnomaliesResult & WithRequestId(RequestIdT &&value)
AWS_CLOUDWATCHLOGS_API ListAnomaliesResult()=default
ListAnomaliesResult & WithAnomalies(AnomaliesT &&value)
ListAnomaliesResult & AddAnomalies(AnomaliesT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_CLOUDWATCHLOGS_API ListAnomaliesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Anomaly > & GetAnomalies() const
ListAnomaliesResult & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue