AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchMeterUsageRequest.h
1
6#pragma once
7#include <aws/meteringmarketplace/MarketplaceMetering_EXPORTS.h>
8#include <aws/meteringmarketplace/MarketplaceMeteringRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/meteringmarketplace/model/UsageRecord.h>
12#include <utility>
13
14namespace Aws
15{
16namespace MarketplaceMetering
17{
18namespace Model
19{
20
29 {
30 public:
31 AWS_MARKETPLACEMETERING_API BatchMeterUsageRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "BatchMeterUsage"; }
38
39 AWS_MARKETPLACEMETERING_API Aws::String SerializePayload() const override;
40
41 AWS_MARKETPLACEMETERING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
49 inline const Aws::Vector<UsageRecord>& GetUsageRecords() const { return m_usageRecords; }
50 inline bool UsageRecordsHasBeenSet() const { return m_usageRecordsHasBeenSet; }
51 template<typename UsageRecordsT = Aws::Vector<UsageRecord>>
52 void SetUsageRecords(UsageRecordsT&& value) { m_usageRecordsHasBeenSet = true; m_usageRecords = std::forward<UsageRecordsT>(value); }
53 template<typename UsageRecordsT = Aws::Vector<UsageRecord>>
54 BatchMeterUsageRequest& WithUsageRecords(UsageRecordsT&& value) { SetUsageRecords(std::forward<UsageRecordsT>(value)); return *this;}
55 template<typename UsageRecordsT = UsageRecord>
56 BatchMeterUsageRequest& AddUsageRecords(UsageRecordsT&& value) { m_usageRecordsHasBeenSet = true; m_usageRecords.emplace_back(std::forward<UsageRecordsT>(value)); return *this; }
58
60
65 inline const Aws::String& GetProductCode() const { return m_productCode; }
66 inline bool ProductCodeHasBeenSet() const { return m_productCodeHasBeenSet; }
67 template<typename ProductCodeT = Aws::String>
68 void SetProductCode(ProductCodeT&& value) { m_productCodeHasBeenSet = true; m_productCode = std::forward<ProductCodeT>(value); }
69 template<typename ProductCodeT = Aws::String>
70 BatchMeterUsageRequest& WithProductCode(ProductCodeT&& value) { SetProductCode(std::forward<ProductCodeT>(value)); return *this;}
72 private:
73
74 Aws::Vector<UsageRecord> m_usageRecords;
75 bool m_usageRecordsHasBeenSet = false;
76
77 Aws::String m_productCode;
78 bool m_productCodeHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace MarketplaceMetering
83} // namespace Aws
AWS_MARKETPLACEMETERING_API BatchMeterUsageRequest()=default
AWS_MARKETPLACEMETERING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchMeterUsageRequest & WithProductCode(ProductCodeT &&value)
BatchMeterUsageRequest & AddUsageRecords(UsageRecordsT &&value)
AWS_MARKETPLACEMETERING_API Aws::String SerializePayload() const override
BatchMeterUsageRequest & WithUsageRecords(UsageRecordsT &&value)
const Aws::Vector< UsageRecord > & GetUsageRecords() const
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector