AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
GetUsageStatisticsResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/macie2/Macie2_EXPORTS.h>
10#include <aws/macie2/model/TimeRange.h>
11#include <aws/macie2/model/UsageRecord.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 Macie2 {
25namespace Model {
27 public:
28 AWS_MACIE2_API GetUsageStatisticsResult() = default;
31
33
37 inline const Aws::String& GetNextToken() const { return m_nextToken; }
38 template <typename NextTokenT = Aws::String>
39 void SetNextToken(NextTokenT&& value) {
40 m_nextTokenHasBeenSet = true;
41 m_nextToken = std::forward<NextTokenT>(value);
42 }
43 template <typename NextTokenT = Aws::String>
45 SetNextToken(std::forward<NextTokenT>(value));
46 return *this;
47 }
49
51
56 inline const Aws::Vector<UsageRecord>& GetRecords() const { return m_records; }
57 template <typename RecordsT = Aws::Vector<UsageRecord>>
58 void SetRecords(RecordsT&& value) {
59 m_recordsHasBeenSet = true;
60 m_records = std::forward<RecordsT>(value);
61 }
62 template <typename RecordsT = Aws::Vector<UsageRecord>>
64 SetRecords(std::forward<RecordsT>(value));
65 return *this;
66 }
67 template <typename RecordsT = UsageRecord>
69 m_recordsHasBeenSet = true;
70 m_records.emplace_back(std::forward<RecordsT>(value));
71 return *this;
72 }
74
76
81 inline TimeRange GetTimeRange() const { return m_timeRange; }
82 inline void SetTimeRange(TimeRange value) {
83 m_timeRangeHasBeenSet = true;
84 m_timeRange = value;
85 }
87 SetTimeRange(value);
88 return *this;
89 }
91
93
94 inline const Aws::String& GetRequestId() const { return m_requestId; }
95 template <typename RequestIdT = Aws::String>
96 void SetRequestId(RequestIdT&& value) {
97 m_requestIdHasBeenSet = true;
98 m_requestId = std::forward<RequestIdT>(value);
99 }
100 template <typename RequestIdT = Aws::String>
102 SetRequestId(std::forward<RequestIdT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_nextToken;
108
109 Aws::Vector<UsageRecord> m_records;
110
111 TimeRange m_timeRange{TimeRange::NOT_SET};
112
113 Aws::String m_requestId;
114 bool m_nextTokenHasBeenSet = false;
115 bool m_recordsHasBeenSet = false;
116 bool m_timeRangeHasBeenSet = false;
117 bool m_requestIdHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace Macie2
122} // namespace Aws
GetUsageStatisticsResult & WithRecords(RecordsT &&value)
GetUsageStatisticsResult & AddRecords(RecordsT &&value)
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