AWS SDK for C++  1.9.153
AWS SDK for C++
GetUsageTotalsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace Macie2
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
42  inline const TimeRange& GetTimeRange() const{ return m_timeRange; }
43 
49  inline void SetTimeRange(const TimeRange& value) { m_timeRange = value; }
50 
56  inline void SetTimeRange(TimeRange&& value) { m_timeRange = std::move(value); }
57 
63  inline GetUsageTotalsResult& WithTimeRange(const TimeRange& value) { SetTimeRange(value); return *this;}
64 
70  inline GetUsageTotalsResult& WithTimeRange(TimeRange&& value) { SetTimeRange(std::move(value)); return *this;}
71 
72 
77  inline const Aws::Vector<UsageTotal>& GetUsageTotals() const{ return m_usageTotals; }
78 
83  inline void SetUsageTotals(const Aws::Vector<UsageTotal>& value) { m_usageTotals = value; }
84 
89  inline void SetUsageTotals(Aws::Vector<UsageTotal>&& value) { m_usageTotals = std::move(value); }
90 
95  inline GetUsageTotalsResult& WithUsageTotals(const Aws::Vector<UsageTotal>& value) { SetUsageTotals(value); return *this;}
96 
101  inline GetUsageTotalsResult& WithUsageTotals(Aws::Vector<UsageTotal>&& value) { SetUsageTotals(std::move(value)); return *this;}
102 
107  inline GetUsageTotalsResult& AddUsageTotals(const UsageTotal& value) { m_usageTotals.push_back(value); return *this; }
108 
113  inline GetUsageTotalsResult& AddUsageTotals(UsageTotal&& value) { m_usageTotals.push_back(std::move(value)); return *this; }
114 
115  private:
116 
117  TimeRange m_timeRange;
118 
119  Aws::Vector<UsageTotal> m_usageTotals;
120  };
121 
122 } // namespace Model
123 } // namespace Macie2
124 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Macie2::Model::GetUsageTotalsResult::GetTimeRange
const TimeRange & GetTimeRange() const
Definition: GetUsageTotalsResult.h:42
AWS_MACIE2_API
#define AWS_MACIE2_API
Definition: Macie2_EXPORTS.h:28
Aws::Macie2::Model::GetUsageTotalsResult::GetUsageTotals
const Aws::Vector< UsageTotal > & GetUsageTotals() const
Definition: GetUsageTotalsResult.h:77
Aws::Macie2::Model::GetUsageTotalsResult::WithTimeRange
GetUsageTotalsResult & WithTimeRange(TimeRange &&value)
Definition: GetUsageTotalsResult.h:70
Macie2_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Macie2::Model::GetUsageTotalsResult::WithUsageTotals
GetUsageTotalsResult & WithUsageTotals(const Aws::Vector< UsageTotal > &value)
Definition: GetUsageTotalsResult.h:95
Aws::Macie2::Model::GetUsageTotalsResult::AddUsageTotals
GetUsageTotalsResult & AddUsageTotals(UsageTotal &&value)
Definition: GetUsageTotalsResult.h:113
AWSVector.h
Aws::Macie2::Model::GetUsageTotalsResult::AddUsageTotals
GetUsageTotalsResult & AddUsageTotals(const UsageTotal &value)
Definition: GetUsageTotalsResult.h:107
UsageTotal.h
Aws::Macie2::Model::GetUsageTotalsResult::WithUsageTotals
GetUsageTotalsResult & WithUsageTotals(Aws::Vector< UsageTotal > &&value)
Definition: GetUsageTotalsResult.h:101
Aws::Macie2::Model::GetUsageTotalsResult::SetUsageTotals
void SetUsageTotals(Aws::Vector< UsageTotal > &&value)
Definition: GetUsageTotalsResult.h:89
Aws::Macie2::Model::GetUsageTotalsResult::GetUsageTotalsResult
GetUsageTotalsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Macie2::Model::GetUsageTotalsResult::SetTimeRange
void SetTimeRange(const TimeRange &value)
Definition: GetUsageTotalsResult.h:49
Aws::Macie2::Model::GetUsageTotalsResult::operator=
GetUsageTotalsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
TimeRange.h
Aws::Macie2::Model::GetUsageTotalsResult::SetUsageTotals
void SetUsageTotals(const Aws::Vector< UsageTotal > &value)
Definition: GetUsageTotalsResult.h:83
Aws::Macie2::Model::GetUsageTotalsResult::SetTimeRange
void SetTimeRange(TimeRange &&value)
Definition: GetUsageTotalsResult.h:56
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::Macie2::Model::GetUsageTotalsResult::WithTimeRange
GetUsageTotalsResult & WithTimeRange(const TimeRange &value)
Definition: GetUsageTotalsResult.h:63
Aws
Definition: AccessManagementClient.h:15
Aws::Macie2::Model::GetUsageTotalsResult
Definition: GetUsageTotalsResult.h:30
Aws::Macie2::Model::TimeRange
TimeRange
Definition: TimeRange.h:17
Aws::Macie2::Model::GetUsageTotalsResult::GetUsageTotalsResult
GetUsageTotalsResult()
Aws::Macie2::Model::UsageTotal
Definition: UsageTotal.h:37