AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUsageRecords(const Aws::Vector<UsageRecord>& value) { m_usageRecordsHasBeenSet = true; m_usageRecords = value; }
52 inline void SetUsageRecords(Aws::Vector<UsageRecord>&& value) { m_usageRecordsHasBeenSet = true; m_usageRecords = std::move(value); }
54 inline BatchMeterUsageRequest& WithUsageRecords(Aws::Vector<UsageRecord>&& value) { SetUsageRecords(std::move(value)); return *this;}
55 inline BatchMeterUsageRequest& AddUsageRecords(const UsageRecord& value) { m_usageRecordsHasBeenSet = true; m_usageRecords.push_back(value); return *this; }
56 inline BatchMeterUsageRequest& AddUsageRecords(UsageRecord&& value) { m_usageRecordsHasBeenSet = true; m_usageRecords.push_back(std::move(value)); return *this; }
58
60
65 inline const Aws::String& GetProductCode() const{ return m_productCode; }
66 inline bool ProductCodeHasBeenSet() const { return m_productCodeHasBeenSet; }
67 inline void SetProductCode(const Aws::String& value) { m_productCodeHasBeenSet = true; m_productCode = value; }
68 inline void SetProductCode(Aws::String&& value) { m_productCodeHasBeenSet = true; m_productCode = std::move(value); }
69 inline void SetProductCode(const char* value) { m_productCodeHasBeenSet = true; m_productCode.assign(value); }
70 inline BatchMeterUsageRequest& WithProductCode(const Aws::String& value) { SetProductCode(value); return *this;}
71 inline BatchMeterUsageRequest& WithProductCode(Aws::String&& value) { SetProductCode(std::move(value)); return *this;}
72 inline BatchMeterUsageRequest& WithProductCode(const char* value) { SetProductCode(value); return *this;}
74 private:
75
76 Aws::Vector<UsageRecord> m_usageRecords;
77 bool m_usageRecordsHasBeenSet = false;
78
79 Aws::String m_productCode;
80 bool m_productCodeHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace MarketplaceMetering
85} // namespace Aws
BatchMeterUsageRequest & WithUsageRecords(Aws::Vector< UsageRecord > &&value)
BatchMeterUsageRequest & AddUsageRecords(const UsageRecord &value)
BatchMeterUsageRequest & WithUsageRecords(const Aws::Vector< UsageRecord > &value)
BatchMeterUsageRequest & WithProductCode(const Aws::String &value)
BatchMeterUsageRequest & AddUsageRecords(UsageRecord &&value)
void SetUsageRecords(Aws::Vector< UsageRecord > &&value)
void SetUsageRecords(const Aws::Vector< UsageRecord > &value)
AWS_MARKETPLACEMETERING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_MARKETPLACEMETERING_API Aws::String SerializePayload() const override
const Aws::Vector< UsageRecord > & GetUsageRecords() const
BatchMeterUsageRequest & WithProductCode(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
BatchMeterUsageRequest & WithProductCode(const char *value)
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