AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Entitlement.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/EntitlementUnit.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
34 {
35 public:
36 AWS_LICENSEMANAGER_API Entitlement() = default;
37 AWS_LICENSEMANAGER_API Entitlement(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LICENSEMANAGER_API Entitlement& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 Entitlement& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
62 template<typename ValueT = Aws::String>
63 Entitlement& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
65
67
70 inline long long GetMaxCount() const { return m_maxCount; }
71 inline bool MaxCountHasBeenSet() const { return m_maxCountHasBeenSet; }
72 inline void SetMaxCount(long long value) { m_maxCountHasBeenSet = true; m_maxCount = value; }
73 inline Entitlement& WithMaxCount(long long value) { SetMaxCount(value); return *this;}
75
77
80 inline bool GetOverage() const { return m_overage; }
81 inline bool OverageHasBeenSet() const { return m_overageHasBeenSet; }
82 inline void SetOverage(bool value) { m_overageHasBeenSet = true; m_overage = value; }
83 inline Entitlement& WithOverage(bool value) { SetOverage(value); return *this;}
85
87
90 inline EntitlementUnit GetUnit() const { return m_unit; }
91 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
92 inline void SetUnit(EntitlementUnit value) { m_unitHasBeenSet = true; m_unit = value; }
93 inline Entitlement& WithUnit(EntitlementUnit value) { SetUnit(value); return *this;}
95
97
100 inline bool GetAllowCheckIn() const { return m_allowCheckIn; }
101 inline bool AllowCheckInHasBeenSet() const { return m_allowCheckInHasBeenSet; }
102 inline void SetAllowCheckIn(bool value) { m_allowCheckInHasBeenSet = true; m_allowCheckIn = value; }
103 inline Entitlement& WithAllowCheckIn(bool value) { SetAllowCheckIn(value); return *this;}
105 private:
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
110 Aws::String m_value;
111 bool m_valueHasBeenSet = false;
112
113 long long m_maxCount{0};
114 bool m_maxCountHasBeenSet = false;
115
116 bool m_overage{false};
117 bool m_overageHasBeenSet = false;
118
120 bool m_unitHasBeenSet = false;
121
122 bool m_allowCheckIn{false};
123 bool m_allowCheckInHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace LicenseManager
128} // namespace Aws
Entitlement & WithOverage(bool value)
Definition Entitlement.h:83
Entitlement & WithMaxCount(long long value)
Definition Entitlement.h:73
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)
Definition Entitlement.h:92
AWS_LICENSEMANAGER_API Entitlement(Aws::Utils::Json::JsonView jsonValue)
Entitlement & WithUnit(EntitlementUnit value)
Definition Entitlement.h:93
const Aws::String & GetValue() const
Definition Entitlement.h:58
Entitlement & WithAllowCheckIn(bool value)
const Aws::String & GetName() const
Definition Entitlement.h:46
Entitlement & WithName(NameT &&value)
Definition Entitlement.h:51
Entitlement & WithValue(ValueT &&value)
Definition Entitlement.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue