AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Entitlement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/license-manager/LicenseManager_EXPORTS.h>
9#include <aws/license-manager/model/EntitlementUnit.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LicenseManager {
21namespace Model {
22
30 public:
31 AWS_LICENSEMANAGER_API Entitlement() = default;
32 AWS_LICENSEMANAGER_API Entitlement(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LICENSEMANAGER_API Entitlement& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 Entitlement& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetValue() const { return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 template <typename ValueT = Aws::String>
61 void SetValue(ValueT&& value) {
62 m_valueHasBeenSet = true;
63 m_value = std::forward<ValueT>(value);
64 }
65 template <typename ValueT = Aws::String>
66 Entitlement& WithValue(ValueT&& value) {
67 SetValue(std::forward<ValueT>(value));
68 return *this;
69 }
71
73
76 inline long long GetMaxCount() const { return m_maxCount; }
77 inline bool MaxCountHasBeenSet() const { return m_maxCountHasBeenSet; }
78 inline void SetMaxCount(long long value) {
79 m_maxCountHasBeenSet = true;
80 m_maxCount = value;
81 }
82 inline Entitlement& WithMaxCount(long long value) {
83 SetMaxCount(value);
84 return *this;
85 }
87
89
92 inline bool GetOverage() const { return m_overage; }
93 inline bool OverageHasBeenSet() const { return m_overageHasBeenSet; }
94 inline void SetOverage(bool value) {
95 m_overageHasBeenSet = true;
96 m_overage = value;
97 }
98 inline Entitlement& WithOverage(bool value) {
99 SetOverage(value);
100 return *this;
101 }
103
105
108 inline EntitlementUnit GetUnit() const { return m_unit; }
109 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
110 inline void SetUnit(EntitlementUnit value) {
111 m_unitHasBeenSet = true;
112 m_unit = value;
113 }
115 SetUnit(value);
116 return *this;
117 }
119
121
124 inline bool GetAllowCheckIn() const { return m_allowCheckIn; }
125 inline bool AllowCheckInHasBeenSet() const { return m_allowCheckInHasBeenSet; }
126 inline void SetAllowCheckIn(bool value) {
127 m_allowCheckInHasBeenSet = true;
128 m_allowCheckIn = value;
129 }
130 inline Entitlement& WithAllowCheckIn(bool value) {
131 SetAllowCheckIn(value);
132 return *this;
133 }
135 private:
136 Aws::String m_name;
137
138 Aws::String m_value;
139
140 long long m_maxCount{0};
141
142 bool m_overage{false};
143
145
146 bool m_allowCheckIn{false};
147 bool m_nameHasBeenSet = false;
148 bool m_valueHasBeenSet = false;
149 bool m_maxCountHasBeenSet = false;
150 bool m_overageHasBeenSet = false;
151 bool m_unitHasBeenSet = false;
152 bool m_allowCheckInHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace LicenseManager
157} // namespace Aws
Entitlement & WithOverage(bool value)
Definition Entitlement.h:98
Entitlement & WithMaxCount(long long value)
Definition Entitlement.h:82
AWS_LICENSEMANAGER_API Entitlement & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LICENSEMANAGER_API Entitlement()=default
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUnit(EntitlementUnit value)
AWS_LICENSEMANAGER_API Entitlement(Aws::Utils::Json::JsonView jsonValue)
Entitlement & WithUnit(EntitlementUnit value)
const Aws::String & GetValue() const
Definition Entitlement.h:58
Entitlement & WithAllowCheckIn(bool value)
const Aws::String & GetName() const
Definition Entitlement.h:40
Entitlement & WithName(NameT &&value)
Definition Entitlement.h:48
Entitlement & WithValue(ValueT &&value)
Definition Entitlement.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue