AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
61 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
62 inline UsageAllocation& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
63 inline UsageAllocation& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
64 inline UsageAllocation& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
65 inline UsageAllocation& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
67 private:
68
69 int m_allocatedUsageQuantity;
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
UsageAllocation & WithTags(const Aws::Vector< Tag > &value)
AWS_MARKETPLACEMETERING_API UsageAllocation()
const Aws::Vector< Tag > & GetTags() const
void SetTags(const Aws::Vector< Tag > &value)
AWS_MARKETPLACEMETERING_API UsageAllocation(Aws::Utils::Json::JsonView jsonValue)
UsageAllocation & WithTags(Aws::Vector< Tag > &&value)
AWS_MARKETPLACEMETERING_API UsageAllocation & operator=(Aws::Utils::Json::JsonView jsonValue)
UsageAllocation & AddTags(const Tag &value)
AWS_MARKETPLACEMETERING_API Aws::Utils::Json::JsonValue Jsonize() const
UsageAllocation & WithAllocatedUsageQuantity(int value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue