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

Usage allocations allow you to split usage into buckets by tags.

Each * UsageAllocation indicates the usage quantity for a specific set of * tags.

See Also:

AWS * API Reference

*/ class UsageAllocation { public: AWS_MARKETPLACEMETERING_API UsageAllocation(); AWS_MARKETPLACEMETERING_API UsageAllocation(Aws::Utils::Json::JsonView jsonValue); AWS_MARKETPLACEMETERING_API UsageAllocation& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MARKETPLACEMETERING_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The total quantity allocated to this bucket of usage.

*/ inline int GetAllocatedUsageQuantity() const{ return m_allocatedUsageQuantity; } /** *

The total quantity allocated to this bucket of usage.

*/ inline bool AllocatedUsageQuantityHasBeenSet() const { return m_allocatedUsageQuantityHasBeenSet; } /** *

The total quantity allocated to this bucket of usage.

*/ inline void SetAllocatedUsageQuantity(int value) { m_allocatedUsageQuantityHasBeenSet = true; m_allocatedUsageQuantity = value; } /** *

The total quantity allocated to this bucket of usage.

*/ inline UsageAllocation& WithAllocatedUsageQuantity(int value) { SetAllocatedUsageQuantity(value); return *this;} /** *

The set of tags that define the bucket of usage. For the bucket of items with * no tags, this parameter can be left out.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The set of tags that define the bucket of usage. For the bucket of items with * no tags, this parameter can be left out.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The set of tags that define the bucket of usage. For the bucket of items with * no tags, this parameter can be left out.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The set of tags that define the bucket of usage. For the bucket of items with * no tags, this parameter can be left out.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The set of tags that define the bucket of usage. For the bucket of items with * no tags, this parameter can be left out.

*/ inline UsageAllocation& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The set of tags that define the bucket of usage. For the bucket of items with * no tags, this parameter can be left out.

*/ inline UsageAllocation& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The set of tags that define the bucket of usage. For the bucket of items with * no tags, this parameter can be left out.

*/ inline UsageAllocation& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The set of tags that define the bucket of usage. For the bucket of items with * no tags, this parameter can be left out.

*/ inline UsageAllocation& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: int m_allocatedUsageQuantity; bool m_allocatedUsageQuantityHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace MarketplaceMetering } // namespace Aws