AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetUsageTotalsResult.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/model/TimeRange.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/macie2/model/UsageTotal.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Macie2
27{
28namespace Model
29{
31 {
32 public:
33 AWS_MACIE2_API GetUsageTotalsResult();
36
37
39
44 inline const TimeRange& GetTimeRange() const{ return m_timeRange; }
45 inline void SetTimeRange(const TimeRange& value) { m_timeRange = value; }
46 inline void SetTimeRange(TimeRange&& value) { m_timeRange = std::move(value); }
47 inline GetUsageTotalsResult& WithTimeRange(const TimeRange& value) { SetTimeRange(value); return *this;}
48 inline GetUsageTotalsResult& WithTimeRange(TimeRange&& value) { SetTimeRange(std::move(value)); return *this;}
50
52
56 inline const Aws::Vector<UsageTotal>& GetUsageTotals() const{ return m_usageTotals; }
57 inline void SetUsageTotals(const Aws::Vector<UsageTotal>& value) { m_usageTotals = value; }
58 inline void SetUsageTotals(Aws::Vector<UsageTotal>&& value) { m_usageTotals = std::move(value); }
59 inline GetUsageTotalsResult& WithUsageTotals(const Aws::Vector<UsageTotal>& value) { SetUsageTotals(value); return *this;}
60 inline GetUsageTotalsResult& WithUsageTotals(Aws::Vector<UsageTotal>&& value) { SetUsageTotals(std::move(value)); return *this;}
61 inline GetUsageTotalsResult& AddUsageTotals(const UsageTotal& value) { m_usageTotals.push_back(value); return *this; }
62 inline GetUsageTotalsResult& AddUsageTotals(UsageTotal&& value) { m_usageTotals.push_back(std::move(value)); return *this; }
64
66
67 inline const Aws::String& GetRequestId() const{ return m_requestId; }
68 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
69 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
70 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
71 inline GetUsageTotalsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
72 inline GetUsageTotalsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
73 inline GetUsageTotalsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
75 private:
76
77 TimeRange m_timeRange;
78
79 Aws::Vector<UsageTotal> m_usageTotals;
80
81 Aws::String m_requestId;
82 };
83
84} // namespace Model
85} // namespace Macie2
86} // namespace Aws
GetUsageTotalsResult & WithUsageTotals(const Aws::Vector< UsageTotal > &value)
GetUsageTotalsResult & AddUsageTotals(UsageTotal &&value)
AWS_MACIE2_API GetUsageTotalsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MACIE2_API GetUsageTotalsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRequestId(const Aws::String &value)
GetUsageTotalsResult & WithRequestId(Aws::String &&value)
GetUsageTotalsResult & WithTimeRange(TimeRange &&value)
void SetUsageTotals(const Aws::Vector< UsageTotal > &value)
const Aws::Vector< UsageTotal > & GetUsageTotals() const
GetUsageTotalsResult & AddUsageTotals(const UsageTotal &value)
GetUsageTotalsResult & WithTimeRange(const TimeRange &value)
void SetUsageTotals(Aws::Vector< UsageTotal > &&value)
GetUsageTotalsResult & WithRequestId(const char *value)
GetUsageTotalsResult & WithRequestId(const Aws::String &value)
GetUsageTotalsResult & WithUsageTotals(Aws::Vector< UsageTotal > &&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