AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EntitlementUsage.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/license-manager/model/EntitlementDataUnit.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 LicenseManager
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_LICENSEMANAGER_API EntitlementUsage();
36 AWS_LICENSEMANAGER_API EntitlementUsage(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LICENSEMANAGER_API EntitlementUsage& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline EntitlementUsage& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline EntitlementUsage& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline EntitlementUsage& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const Aws::String& GetConsumedValue() const{ return m_consumedValue; }
60 inline bool ConsumedValueHasBeenSet() const { return m_consumedValueHasBeenSet; }
61 inline void SetConsumedValue(const Aws::String& value) { m_consumedValueHasBeenSet = true; m_consumedValue = value; }
62 inline void SetConsumedValue(Aws::String&& value) { m_consumedValueHasBeenSet = true; m_consumedValue = std::move(value); }
63 inline void SetConsumedValue(const char* value) { m_consumedValueHasBeenSet = true; m_consumedValue.assign(value); }
64 inline EntitlementUsage& WithConsumedValue(const Aws::String& value) { SetConsumedValue(value); return *this;}
65 inline EntitlementUsage& WithConsumedValue(Aws::String&& value) { SetConsumedValue(std::move(value)); return *this;}
66 inline EntitlementUsage& WithConsumedValue(const char* value) { SetConsumedValue(value); return *this;}
68
70
73 inline const Aws::String& GetMaxCount() const{ return m_maxCount; }
74 inline bool MaxCountHasBeenSet() const { return m_maxCountHasBeenSet; }
75 inline void SetMaxCount(const Aws::String& value) { m_maxCountHasBeenSet = true; m_maxCount = value; }
76 inline void SetMaxCount(Aws::String&& value) { m_maxCountHasBeenSet = true; m_maxCount = std::move(value); }
77 inline void SetMaxCount(const char* value) { m_maxCountHasBeenSet = true; m_maxCount.assign(value); }
78 inline EntitlementUsage& WithMaxCount(const Aws::String& value) { SetMaxCount(value); return *this;}
79 inline EntitlementUsage& WithMaxCount(Aws::String&& value) { SetMaxCount(std::move(value)); return *this;}
80 inline EntitlementUsage& WithMaxCount(const char* value) { SetMaxCount(value); return *this;}
82
84
87 inline const EntitlementDataUnit& GetUnit() const{ return m_unit; }
88 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
89 inline void SetUnit(const EntitlementDataUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
90 inline void SetUnit(EntitlementDataUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
91 inline EntitlementUsage& WithUnit(const EntitlementDataUnit& value) { SetUnit(value); return *this;}
92 inline EntitlementUsage& WithUnit(EntitlementDataUnit&& value) { SetUnit(std::move(value)); return *this;}
94 private:
95
96 Aws::String m_name;
97 bool m_nameHasBeenSet = false;
98
99 Aws::String m_consumedValue;
100 bool m_consumedValueHasBeenSet = false;
101
102 Aws::String m_maxCount;
103 bool m_maxCountHasBeenSet = false;
104
105 EntitlementDataUnit m_unit;
106 bool m_unitHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace LicenseManager
111} // namespace Aws
EntitlementUsage & WithName(const Aws::String &value)
const EntitlementDataUnit & GetUnit() const
EntitlementUsage & WithConsumedValue(const Aws::String &value)
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
EntitlementUsage & WithConsumedValue(Aws::String &&value)
EntitlementUsage & WithMaxCount(const Aws::String &value)
EntitlementUsage & WithMaxCount(Aws::String &&value)
void SetConsumedValue(const Aws::String &value)
EntitlementUsage & WithConsumedValue(const char *value)
EntitlementUsage & WithName(const char *value)
EntitlementUsage & WithUnit(EntitlementDataUnit &&value)
AWS_LICENSEMANAGER_API EntitlementUsage & operator=(Aws::Utils::Json::JsonView jsonValue)
EntitlementUsage & WithName(Aws::String &&value)
void SetUnit(const EntitlementDataUnit &value)
void SetMaxCount(const Aws::String &value)
AWS_LICENSEMANAGER_API EntitlementUsage(Aws::Utils::Json::JsonView jsonValue)
EntitlementUsage & WithUnit(const EntitlementDataUnit &value)
void SetUnit(EntitlementDataUnit &&value)
EntitlementUsage & WithMaxCount(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue