AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchMeterUsageResult.h
1
6#pragma once
7#include <aws/meteringmarketplace/MarketplaceMetering_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/meteringmarketplace/model/UsageRecordResult.h>
11#include <aws/meteringmarketplace/model/UsageRecord.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 MarketplaceMetering
27{
28namespace Model
29{
38 {
39 public:
40 AWS_MARKETPLACEMETERING_API BatchMeterUsageResult();
43
44
46
52 inline const Aws::Vector<UsageRecordResult>& GetResults() const{ return m_results; }
53 inline void SetResults(const Aws::Vector<UsageRecordResult>& value) { m_results = value; }
54 inline void SetResults(Aws::Vector<UsageRecordResult>&& value) { m_results = std::move(value); }
55 inline BatchMeterUsageResult& WithResults(const Aws::Vector<UsageRecordResult>& value) { SetResults(value); return *this;}
56 inline BatchMeterUsageResult& WithResults(Aws::Vector<UsageRecordResult>&& value) { SetResults(std::move(value)); return *this;}
57 inline BatchMeterUsageResult& AddResults(const UsageRecordResult& value) { m_results.push_back(value); return *this; }
58 inline BatchMeterUsageResult& AddResults(UsageRecordResult&& value) { m_results.push_back(std::move(value)); return *this; }
60
62
68 inline const Aws::Vector<UsageRecord>& GetUnprocessedRecords() const{ return m_unprocessedRecords; }
69 inline void SetUnprocessedRecords(const Aws::Vector<UsageRecord>& value) { m_unprocessedRecords = value; }
70 inline void SetUnprocessedRecords(Aws::Vector<UsageRecord>&& value) { m_unprocessedRecords = std::move(value); }
73 inline BatchMeterUsageResult& AddUnprocessedRecords(const UsageRecord& value) { m_unprocessedRecords.push_back(value); return *this; }
74 inline BatchMeterUsageResult& AddUnprocessedRecords(UsageRecord&& value) { m_unprocessedRecords.push_back(std::move(value)); return *this; }
76
78
79 inline const Aws::String& GetRequestId() const{ return m_requestId; }
80 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
81 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
82 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
83 inline BatchMeterUsageResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
84 inline BatchMeterUsageResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
85 inline BatchMeterUsageResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
87 private:
88
90
91 Aws::Vector<UsageRecord> m_unprocessedRecords;
92
93 Aws::String m_requestId;
94 };
95
96} // namespace Model
97} // namespace MarketplaceMetering
98} // namespace Aws
AWS_MARKETPLACEMETERING_API BatchMeterUsageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchMeterUsageResult & WithRequestId(const char *value)
BatchMeterUsageResult & AddUnprocessedRecords(UsageRecord &&value)
BatchMeterUsageResult & AddUnprocessedRecords(const UsageRecord &value)
BatchMeterUsageResult & AddResults(const UsageRecordResult &value)
BatchMeterUsageResult & AddResults(UsageRecordResult &&value)
const Aws::Vector< UsageRecordResult > & GetResults() const
void SetUnprocessedRecords(const Aws::Vector< UsageRecord > &value)
BatchMeterUsageResult & WithResults(Aws::Vector< UsageRecordResult > &&value)
void SetResults(Aws::Vector< UsageRecordResult > &&value)
BatchMeterUsageResult & WithRequestId(const Aws::String &value)
const Aws::Vector< UsageRecord > & GetUnprocessedRecords() const
BatchMeterUsageResult & WithRequestId(Aws::String &&value)
BatchMeterUsageResult & WithUnprocessedRecords(Aws::Vector< UsageRecord > &&value)
BatchMeterUsageResult & WithResults(const Aws::Vector< UsageRecordResult > &value)
AWS_MARKETPLACEMETERING_API BatchMeterUsageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetUnprocessedRecords(Aws::Vector< UsageRecord > &&value)
BatchMeterUsageResult & WithUnprocessedRecords(const Aws::Vector< UsageRecord > &value)
void SetResults(const Aws::Vector< UsageRecordResult > &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