7#include <aws/meteringmarketplace/MarketplaceMetering_EXPORTS.h>
8#include <aws/meteringmarketplace/MarketplaceMeteringRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/meteringmarketplace/model/UsageAllocation.h>
17namespace MarketplaceMetering
50 inline void SetProductCode(
const char* value) { m_productCodeHasBeenSet =
true; m_productCode.assign(value); }
79 inline void SetUsageDimension(
const char* value) { m_usageDimensionHasBeenSet =
true; m_usageDimension.assign(value); }
92 inline void SetUsageQuantity(
int value) { m_usageQuantityHasBeenSet =
true; m_usageQuantity = value; }
106 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
130 bool m_productCodeHasBeenSet =
false;
133 bool m_timestampHasBeenSet =
false;
136 bool m_usageDimensionHasBeenSet =
false;
139 bool m_usageQuantityHasBeenSet =
false;
142 bool m_dryRunHasBeenSet =
false;
145 bool m_usageAllocationsHasBeenSet =
false;
MeterUsageRequest & AddUsageAllocations(UsageAllocation &&value)
bool ProductCodeHasBeenSet() const
bool DryRunHasBeenSet() const
MeterUsageRequest & WithUsageAllocations(Aws::Vector< UsageAllocation > &&value)
MeterUsageRequest & WithTimestamp(const Aws::Utils::DateTime &value)
const Aws::String & GetProductCode() const
MeterUsageRequest & WithUsageQuantity(int value)
void SetDryRun(bool value)
void SetProductCode(const char *value)
MeterUsageRequest & WithTimestamp(Aws::Utils::DateTime &&value)
void SetProductCode(Aws::String &&value)
AWS_MARKETPLACEMETERING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetUsageAllocations(Aws::Vector< UsageAllocation > &&value)
AWS_MARKETPLACEMETERING_API Aws::String SerializePayload() const override
MeterUsageRequest & WithUsageAllocations(const Aws::Vector< UsageAllocation > &value)
void SetUsageDimension(Aws::String &&value)
MeterUsageRequest & WithUsageDimension(const char *value)
bool UsageQuantityHasBeenSet() const
const Aws::String & GetUsageDimension() const
MeterUsageRequest & WithUsageDimension(Aws::String &&value)
void SetUsageAllocations(const Aws::Vector< UsageAllocation > &value)
AWS_MARKETPLACEMETERING_API MeterUsageRequest()
bool TimestampHasBeenSet() const
MeterUsageRequest & WithProductCode(const Aws::String &value)
const Aws::Vector< UsageAllocation > & GetUsageAllocations() const
void SetTimestamp(Aws::Utils::DateTime &&value)
MeterUsageRequest & WithProductCode(Aws::String &&value)
void SetUsageDimension(const char *value)
virtual const char * GetServiceRequestName() const override
MeterUsageRequest & WithUsageDimension(const Aws::String &value)
void SetTimestamp(const Aws::Utils::DateTime &value)
void SetUsageDimension(const Aws::String &value)
MeterUsageRequest & AddUsageAllocations(const UsageAllocation &value)
bool UsageAllocationsHasBeenSet() const
void SetUsageQuantity(int value)
int GetUsageQuantity() const
const Aws::Utils::DateTime & GetTimestamp() const
void SetProductCode(const Aws::String &value)
bool UsageDimensionHasBeenSet() const
MeterUsageRequest & WithProductCode(const char *value)
MeterUsageRequest & WithDryRun(bool 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