AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UsageAllocation.h
1
6#pragma once
7#include <aws/meteringmarketplace/MarketplaceMetering_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/meteringmarketplace/model/Tag.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MarketplaceMetering
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_MARKETPLACEMETERING_API UsageAllocation() = default;
38 AWS_MARKETPLACEMETERING_API UsageAllocation(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MARKETPLACEMETERING_API UsageAllocation& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MARKETPLACEMETERING_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline int GetAllocatedUsageQuantity() const { return m_allocatedUsageQuantity; }
48 inline bool AllocatedUsageQuantityHasBeenSet() const { return m_allocatedUsageQuantityHasBeenSet; }
49 inline void SetAllocatedUsageQuantity(int value) { m_allocatedUsageQuantityHasBeenSet = true; m_allocatedUsageQuantity = value; }
50 inline UsageAllocation& WithAllocatedUsageQuantity(int value) { SetAllocatedUsageQuantity(value); return *this;}
52
54
58 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
59 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
60 template<typename TagsT = Aws::Vector<Tag>>
61 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
62 template<typename TagsT = Aws::Vector<Tag>>
63 UsageAllocation& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
64 template<typename TagsT = Tag>
65 UsageAllocation& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
67 private:
68
69 int m_allocatedUsageQuantity{0};
70 bool m_allocatedUsageQuantityHasBeenSet = false;
71
72 Aws::Vector<Tag> m_tags;
73 bool m_tagsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace MarketplaceMetering
78} // namespace Aws
const Aws::Vector< Tag > & GetTags() const
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
AWS_MARKETPLACEMETERING_API UsageAllocation()=default
UsageAllocation & WithAllocatedUsageQuantity(int value)
UsageAllocation & WithTags(TagsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue