AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetAnomaliesResult.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/Anomaly.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CostExplorer {
24namespace Model {
26 public:
27 AWS_COSTEXPLORER_API GetAnomaliesResult() = default;
30
32
35 inline const Aws::Vector<Anomaly>& GetAnomalies() const { return m_anomalies; }
36 template <typename AnomaliesT = Aws::Vector<Anomaly>>
37 void SetAnomalies(AnomaliesT&& value) {
38 m_anomaliesHasBeenSet = true;
39 m_anomalies = std::forward<AnomaliesT>(value);
40 }
41 template <typename AnomaliesT = Aws::Vector<Anomaly>>
42 GetAnomaliesResult& WithAnomalies(AnomaliesT&& value) {
43 SetAnomalies(std::forward<AnomaliesT>(value));
44 return *this;
45 }
46 template <typename AnomaliesT = Anomaly>
47 GetAnomaliesResult& AddAnomalies(AnomaliesT&& value) {
48 m_anomaliesHasBeenSet = true;
49 m_anomalies.emplace_back(std::forward<AnomaliesT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
61 template <typename NextPageTokenT = Aws::String>
62 void SetNextPageToken(NextPageTokenT&& value) {
63 m_nextPageTokenHasBeenSet = true;
64 m_nextPageToken = std::forward<NextPageTokenT>(value);
65 }
66 template <typename NextPageTokenT = Aws::String>
67 GetAnomaliesResult& WithNextPageToken(NextPageTokenT&& value) {
68 SetNextPageToken(std::forward<NextPageTokenT>(value));
69 return *this;
70 }
72
74
75 inline const Aws::String& GetRequestId() const { return m_requestId; }
76 template <typename RequestIdT = Aws::String>
77 void SetRequestId(RequestIdT&& value) {
78 m_requestIdHasBeenSet = true;
79 m_requestId = std::forward<RequestIdT>(value);
80 }
81 template <typename RequestIdT = Aws::String>
82 GetAnomaliesResult& WithRequestId(RequestIdT&& value) {
83 SetRequestId(std::forward<RequestIdT>(value));
84 return *this;
85 }
87 private:
88 Aws::Vector<Anomaly> m_anomalies;
89
90 Aws::String m_nextPageToken;
91
92 Aws::String m_requestId;
93 bool m_anomaliesHasBeenSet = false;
94 bool m_nextPageTokenHasBeenSet = false;
95 bool m_requestIdHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace CostExplorer
100} // namespace Aws
AWS_COSTEXPLORER_API GetAnomaliesResult()=default
GetAnomaliesResult & WithAnomalies(AnomaliesT &&value)
AWS_COSTEXPLORER_API GetAnomaliesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_COSTEXPLORER_API GetAnomaliesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAnomaliesResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Anomaly > & GetAnomalies() const
GetAnomaliesResult & AddAnomalies(AnomaliesT &&value)
GetAnomaliesResult & WithNextPageToken(NextPageTokenT &&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