AWS SDK for C++  1.9.155
AWS SDK for C++
GetUsageStatisticsResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace Macie2
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
42  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
43 
48  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
49 
54  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
55 
60  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
61 
66  inline GetUsageStatisticsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
67 
72  inline GetUsageStatisticsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
73 
78  inline GetUsageStatisticsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
79 
80 
86  inline const Aws::Vector<UsageRecord>& GetRecords() const{ return m_records; }
87 
93  inline void SetRecords(const Aws::Vector<UsageRecord>& value) { m_records = value; }
94 
100  inline void SetRecords(Aws::Vector<UsageRecord>&& value) { m_records = std::move(value); }
101 
107  inline GetUsageStatisticsResult& WithRecords(const Aws::Vector<UsageRecord>& value) { SetRecords(value); return *this;}
108 
114  inline GetUsageStatisticsResult& WithRecords(Aws::Vector<UsageRecord>&& value) { SetRecords(std::move(value)); return *this;}
115 
121  inline GetUsageStatisticsResult& AddRecords(const UsageRecord& value) { m_records.push_back(value); return *this; }
122 
128  inline GetUsageStatisticsResult& AddRecords(UsageRecord&& value) { m_records.push_back(std::move(value)); return *this; }
129 
130 
136  inline const TimeRange& GetTimeRange() const{ return m_timeRange; }
137 
143  inline void SetTimeRange(const TimeRange& value) { m_timeRange = value; }
144 
150  inline void SetTimeRange(TimeRange&& value) { m_timeRange = std::move(value); }
151 
157  inline GetUsageStatisticsResult& WithTimeRange(const TimeRange& value) { SetTimeRange(value); return *this;}
158 
164  inline GetUsageStatisticsResult& WithTimeRange(TimeRange&& value) { SetTimeRange(std::move(value)); return *this;}
165 
166  private:
167 
168  Aws::String m_nextToken;
169 
170  Aws::Vector<UsageRecord> m_records;
171 
172  TimeRange m_timeRange;
173  };
174 
175 } // namespace Model
176 } // namespace Macie2
177 } // namespace Aws
Aws::Macie2::Model::GetUsageStatisticsResult::WithRecords
GetUsageStatisticsResult & WithRecords(const Aws::Vector< UsageRecord > &value)
Definition: GetUsageStatisticsResult.h:107
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
AWS_MACIE2_API
#define AWS_MACIE2_API
Definition: Macie2_EXPORTS.h:28
Aws::Macie2::Model::GetUsageStatisticsResult::AddRecords
GetUsageStatisticsResult & AddRecords(UsageRecord &&value)
Definition: GetUsageStatisticsResult.h:128
Aws::Macie2::Model::GetUsageStatisticsResult::WithRecords
GetUsageStatisticsResult & WithRecords(Aws::Vector< UsageRecord > &&value)
Definition: GetUsageStatisticsResult.h:114
Aws::Macie2::Model::GetUsageStatisticsResult::operator=
GetUsageStatisticsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Macie2_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Macie2::Model::GetUsageStatisticsResult::WithTimeRange
GetUsageStatisticsResult & WithTimeRange(TimeRange &&value)
Definition: GetUsageStatisticsResult.h:164
AWSVector.h
Aws::Macie2::Model::UsageRecord
Definition: UsageRecord.h:36
Aws::Macie2::Model::GetUsageStatisticsResult::WithNextToken
GetUsageStatisticsResult & WithNextToken(const Aws::String &value)
Definition: GetUsageStatisticsResult.h:66
Aws::Macie2::Model::GetUsageStatisticsResult::SetNextToken
void SetNextToken(const char *value)
Definition: GetUsageStatisticsResult.h:60
Aws::Macie2::Model::GetUsageStatisticsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetUsageStatisticsResult.h:48
Aws::Macie2::Model::GetUsageStatisticsResult::SetRecords
void SetRecords(Aws::Vector< UsageRecord > &&value)
Definition: GetUsageStatisticsResult.h:100
Aws::Macie2::Model::GetUsageStatisticsResult
Definition: GetUsageStatisticsResult.h:31
Aws::Macie2::Model::GetUsageStatisticsResult::GetUsageStatisticsResult
GetUsageStatisticsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Macie2::Model::GetUsageStatisticsResult::WithNextToken
GetUsageStatisticsResult & WithNextToken(Aws::String &&value)
Definition: GetUsageStatisticsResult.h:72
Aws::Macie2::Model::GetUsageStatisticsResult::SetTimeRange
void SetTimeRange(const TimeRange &value)
Definition: GetUsageStatisticsResult.h:143
AWSString.h
TimeRange.h
Aws::Macie2::Model::GetUsageStatisticsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetUsageStatisticsResult.h:42
Aws::Macie2::Model::GetUsageStatisticsResult::GetTimeRange
const TimeRange & GetTimeRange() const
Definition: GetUsageStatisticsResult.h:136
Aws::Macie2::Model::GetUsageStatisticsResult::SetTimeRange
void SetTimeRange(TimeRange &&value)
Definition: GetUsageStatisticsResult.h:150
Aws::Macie2::Model::GetUsageStatisticsResult::GetRecords
const Aws::Vector< UsageRecord > & GetRecords() const
Definition: GetUsageStatisticsResult.h:86
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Macie2::Model::GetUsageStatisticsResult::WithNextToken
GetUsageStatisticsResult & WithNextToken(const char *value)
Definition: GetUsageStatisticsResult.h:78
UsageRecord.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Macie2::Model::GetUsageStatisticsResult::GetUsageStatisticsResult
GetUsageStatisticsResult()
Aws::Macie2::Model::TimeRange
TimeRange
Definition: TimeRange.h:17
Aws::Macie2::Model::GetUsageStatisticsResult::WithTimeRange
GetUsageStatisticsResult & WithTimeRange(const TimeRange &value)
Definition: GetUsageStatisticsResult.h:157
Aws::Macie2::Model::GetUsageStatisticsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetUsageStatisticsResult.h:54
Aws::Macie2::Model::GetUsageStatisticsResult::SetRecords
void SetRecords(const Aws::Vector< UsageRecord > &value)
Definition: GetUsageStatisticsResult.h:93
Aws::Macie2::Model::GetUsageStatisticsResult::AddRecords
GetUsageStatisticsResult & AddRecords(const UsageRecord &value)
Definition: GetUsageStatisticsResult.h:121