/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace MarketplaceMetering { namespace Model { /** *

A BatchMeterUsageRequest contains UsageRecords, * which indicate quantities of usage within your application.

See * Also:

AWS * API Reference

*/ class BatchMeterUsageRequest : public MarketplaceMeteringRequest { public: AWS_MARKETPLACEMETERING_API BatchMeterUsageRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "BatchMeterUsage"; } AWS_MARKETPLACEMETERING_API Aws::String SerializePayload() const override; AWS_MARKETPLACEMETERING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The set of UsageRecords to submit. BatchMeterUsage * accepts up to 25 UsageRecords at a time.

*/ inline const Aws::Vector& GetUsageRecords() const{ return m_usageRecords; } /** *

The set of UsageRecords to submit. BatchMeterUsage * accepts up to 25 UsageRecords at a time.

*/ inline bool UsageRecordsHasBeenSet() const { return m_usageRecordsHasBeenSet; } /** *

The set of UsageRecords to submit. BatchMeterUsage * accepts up to 25 UsageRecords at a time.

*/ inline void SetUsageRecords(const Aws::Vector& value) { m_usageRecordsHasBeenSet = true; m_usageRecords = value; } /** *

The set of UsageRecords to submit. BatchMeterUsage * accepts up to 25 UsageRecords at a time.

*/ inline void SetUsageRecords(Aws::Vector&& value) { m_usageRecordsHasBeenSet = true; m_usageRecords = std::move(value); } /** *

The set of UsageRecords to submit. BatchMeterUsage * accepts up to 25 UsageRecords at a time.

*/ inline BatchMeterUsageRequest& WithUsageRecords(const Aws::Vector& value) { SetUsageRecords(value); return *this;} /** *

The set of UsageRecords to submit. BatchMeterUsage * accepts up to 25 UsageRecords at a time.

*/ inline BatchMeterUsageRequest& WithUsageRecords(Aws::Vector&& value) { SetUsageRecords(std::move(value)); return *this;} /** *

The set of UsageRecords to submit. BatchMeterUsage * accepts up to 25 UsageRecords at a time.

*/ inline BatchMeterUsageRequest& AddUsageRecords(const UsageRecord& value) { m_usageRecordsHasBeenSet = true; m_usageRecords.push_back(value); return *this; } /** *

The set of UsageRecords to submit. BatchMeterUsage * accepts up to 25 UsageRecords at a time.

*/ inline BatchMeterUsageRequest& AddUsageRecords(UsageRecord&& value) { m_usageRecordsHasBeenSet = true; m_usageRecords.push_back(std::move(value)); return *this; } /** *

Product code is used to uniquely identify a product in AWS Marketplace. The * product code should be the same as the one used during the publishing of a new * product.

*/ inline const Aws::String& GetProductCode() const{ return m_productCode; } /** *

Product code is used to uniquely identify a product in AWS Marketplace. The * product code should be the same as the one used during the publishing of a new * product.

*/ inline bool ProductCodeHasBeenSet() const { return m_productCodeHasBeenSet; } /** *

Product code is used to uniquely identify a product in AWS Marketplace. The * product code should be the same as the one used during the publishing of a new * product.

*/ inline void SetProductCode(const Aws::String& value) { m_productCodeHasBeenSet = true; m_productCode = value; } /** *

Product code is used to uniquely identify a product in AWS Marketplace. The * product code should be the same as the one used during the publishing of a new * product.

*/ inline void SetProductCode(Aws::String&& value) { m_productCodeHasBeenSet = true; m_productCode = std::move(value); } /** *

Product code is used to uniquely identify a product in AWS Marketplace. The * product code should be the same as the one used during the publishing of a new * product.

*/ inline void SetProductCode(const char* value) { m_productCodeHasBeenSet = true; m_productCode.assign(value); } /** *

Product code is used to uniquely identify a product in AWS Marketplace. The * product code should be the same as the one used during the publishing of a new * product.

*/ inline BatchMeterUsageRequest& WithProductCode(const Aws::String& value) { SetProductCode(value); return *this;} /** *

Product code is used to uniquely identify a product in AWS Marketplace. The * product code should be the same as the one used during the publishing of a new * product.

*/ inline BatchMeterUsageRequest& WithProductCode(Aws::String&& value) { SetProductCode(std::move(value)); return *this;} /** *

Product code is used to uniquely identify a product in AWS Marketplace. The * product code should be the same as the one used during the publishing of a new * product.

*/ inline BatchMeterUsageRequest& WithProductCode(const char* value) { SetProductCode(value); return *this;} private: Aws::Vector m_usageRecords; bool m_usageRecordsHasBeenSet = false; Aws::String m_productCode; bool m_productCodeHasBeenSet = false; }; } // namespace Model } // namespace MarketplaceMetering } // namespace Aws