AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline Entitlement& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline Entitlement& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline Entitlement& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::String& GetValue() const{ return m_value; }
61 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
62 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
63 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
64 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
65 inline Entitlement& WithValue(const Aws::String& value) { SetValue(value); return *this;}
66 inline Entitlement& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
67 inline Entitlement& WithValue(const char* value) { SetValue(value); return *this;}
69
71
74 inline long long GetMaxCount() const{ return m_maxCount; }
75 inline bool MaxCountHasBeenSet() const { return m_maxCountHasBeenSet; }
76 inline void SetMaxCount(long long value) { m_maxCountHasBeenSet = true; m_maxCount = value; }
77 inline Entitlement& WithMaxCount(long long value) { SetMaxCount(value); return *this;}
79
81
84 inline bool GetOverage() const{ return m_overage; }
85 inline bool OverageHasBeenSet() const { return m_overageHasBeenSet; }
86 inline void SetOverage(bool value) { m_overageHasBeenSet = true; m_overage = value; }
87 inline Entitlement& WithOverage(bool value) { SetOverage(value); return *this;}
89
91
94 inline const EntitlementUnit& GetUnit() const{ return m_unit; }
95 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
96 inline void SetUnit(const EntitlementUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
97 inline void SetUnit(EntitlementUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
98 inline Entitlement& WithUnit(const EntitlementUnit& value) { SetUnit(value); return *this;}
99 inline Entitlement& WithUnit(EntitlementUnit&& value) { SetUnit(std::move(value)); return *this;}
101
103
106 inline bool GetAllowCheckIn() const{ return m_allowCheckIn; }
107 inline bool AllowCheckInHasBeenSet() const { return m_allowCheckInHasBeenSet; }
108 inline void SetAllowCheckIn(bool value) { m_allowCheckInHasBeenSet = true; m_allowCheckIn = value; }
109 inline Entitlement& WithAllowCheckIn(bool value) { SetAllowCheckIn(value); return *this;}
111 private:
112
113 Aws::String m_name;
114 bool m_nameHasBeenSet = false;
115
116 Aws::String m_value;
117 bool m_valueHasBeenSet = false;
118
119 long long m_maxCount;
120 bool m_maxCountHasBeenSet = false;
121
122 bool m_overage;
123 bool m_overageHasBeenSet = false;
124
125 EntitlementUnit m_unit;
126 bool m_unitHasBeenSet = false;
127
128 bool m_allowCheckIn;
129 bool m_allowCheckInHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace LicenseManager
134} // namespace Aws
Entitlement & WithOverage(bool value)
Definition Entitlement.h:87
Entitlement & WithMaxCount(long long value)
Definition Entitlement.h:77
void SetUnit(EntitlementUnit &&value)
Definition Entitlement.h:97
void SetName(const Aws::String &value)
Definition Entitlement.h:48
AWS_LICENSEMANAGER_API Entitlement & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetValue(const Aws::String &value)
Definition Entitlement.h:62
Entitlement & WithName(Aws::String &&value)
Definition Entitlement.h:52
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LICENSEMANAGER_API Entitlement(Aws::Utils::Json::JsonView jsonValue)
Entitlement & WithUnit(const EntitlementUnit &value)
Definition Entitlement.h:98
Entitlement & WithName(const char *value)
Definition Entitlement.h:53
const Aws::String & GetValue() const
Definition Entitlement.h:60
Entitlement & WithValue(const char *value)
Definition Entitlement.h:67
Entitlement & WithValue(Aws::String &&value)
Definition Entitlement.h:66
Entitlement & WithAllowCheckIn(bool value)
void SetName(Aws::String &&value)
Definition Entitlement.h:49
Entitlement & WithName(const Aws::String &value)
Definition Entitlement.h:51
const Aws::String & GetName() const
Definition Entitlement.h:46
Entitlement & WithUnit(EntitlementUnit &&value)
Definition Entitlement.h:99
const EntitlementUnit & GetUnit() const
Definition Entitlement.h:94
void SetValue(Aws::String &&value)
Definition Entitlement.h:63
Entitlement & WithValue(const Aws::String &value)
Definition Entitlement.h:65
AWS_LICENSEMANAGER_API Entitlement()
void SetUnit(const EntitlementUnit &value)
Definition Entitlement.h:96
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue