AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
GetUsageStatisticsResult.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/macie2/Macie2_EXPORTS.h>
11#include <aws/macie2/model/TimeRange.h>
12#include <aws/macie2/model/UsageRecord.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Macie2 {
26namespace Model {
28 public:
29 AWS_MACIE2_API GetUsageStatisticsResult() = default;
32
34
38 inline const Aws::String& GetNextToken() const { return m_nextToken; }
39 template <typename NextTokenT = Aws::String>
40 void SetNextToken(NextTokenT&& value) {
41 m_nextTokenHasBeenSet = true;
42 m_nextToken = std::forward<NextTokenT>(value);
43 }
44 template <typename NextTokenT = Aws::String>
46 SetNextToken(std::forward<NextTokenT>(value));
47 return *this;
48 }
50
52
57 inline const Aws::Vector<UsageRecord>& GetRecords() const { return m_records; }
58 template <typename RecordsT = Aws::Vector<UsageRecord>>
59 void SetRecords(RecordsT&& value) {
60 m_recordsHasBeenSet = true;
61 m_records = std::forward<RecordsT>(value);
62 }
63 template <typename RecordsT = Aws::Vector<UsageRecord>>
65 SetRecords(std::forward<RecordsT>(value));
66 return *this;
67 }
68 template <typename RecordsT = UsageRecord>
70 m_recordsHasBeenSet = true;
71 m_records.emplace_back(std::forward<RecordsT>(value));
72 return *this;
73 }
75
77
82 inline TimeRange GetTimeRange() const { return m_timeRange; }
83 inline void SetTimeRange(TimeRange value) {
84 m_timeRangeHasBeenSet = true;
85 m_timeRange = value;
86 }
88 SetTimeRange(value);
89 return *this;
90 }
92
94
95 inline const Aws::String& GetRequestId() const { return m_requestId; }
96 template <typename RequestIdT = Aws::String>
97 void SetRequestId(RequestIdT&& value) {
98 m_requestIdHasBeenSet = true;
99 m_requestId = std::forward<RequestIdT>(value);
100 }
101 template <typename RequestIdT = Aws::String>
103 SetRequestId(std::forward<RequestIdT>(value));
104 return *this;
105 }
107 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
108
109 private:
110 Aws::String m_nextToken;
111
112 Aws::Vector<UsageRecord> m_records;
113
114 TimeRange m_timeRange{TimeRange::NOT_SET};
115
116 Aws::String m_requestId;
117 Aws::Http::HttpResponseCode m_HttpResponseCode;
118 bool m_nextTokenHasBeenSet = false;
119 bool m_recordsHasBeenSet = false;
120 bool m_timeRangeHasBeenSet = false;
121 bool m_requestIdHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace Macie2
126} // namespace Aws
GetUsageStatisticsResult & WithRecords(RecordsT &&value)
GetUsageStatisticsResult & AddRecords(RecordsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetUsageStatisticsResult & WithTimeRange(TimeRange value)
AWS_MACIE2_API GetUsageStatisticsResult()=default
AWS_MACIE2_API GetUsageStatisticsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MACIE2_API GetUsageStatisticsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< UsageRecord > & GetRecords() const
GetUsageStatisticsResult & WithRequestId(RequestIdT &&value)
GetUsageStatisticsResult & 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