1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 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 12 namespace Aws 13 { 14 namespace Utils 15 { 16 namespace Json 17 { 18 class JsonValue; 19 class JsonView; 20 } // namespace Json 21 } // namespace Utils 22 namespace LicenseManager 23 { 24 namespace Model 25 { 26 27 /** 28 * <p>Usage associated with an entitlement resource.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/EntitlementUsage">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_LICENSEMANAGER_API EntitlementUsage 33 { 34 public: 35 EntitlementUsage(); 36 EntitlementUsage(Aws::Utils::Json::JsonView jsonValue); 37 EntitlementUsage& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>Entitlement usage name.</p> 43 */ GetName()44 inline const Aws::String& GetName() const{ return m_name; } 45 46 /** 47 * <p>Entitlement usage name.</p> 48 */ NameHasBeenSet()49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } 50 51 /** 52 * <p>Entitlement usage name.</p> 53 */ SetName(const Aws::String & value)54 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } 55 56 /** 57 * <p>Entitlement usage name.</p> 58 */ SetName(Aws::String && value)59 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } 60 61 /** 62 * <p>Entitlement usage name.</p> 63 */ SetName(const char * value)64 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } 65 66 /** 67 * <p>Entitlement usage name.</p> 68 */ WithName(const Aws::String & value)69 inline EntitlementUsage& WithName(const Aws::String& value) { SetName(value); return *this;} 70 71 /** 72 * <p>Entitlement usage name.</p> 73 */ WithName(Aws::String && value)74 inline EntitlementUsage& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} 75 76 /** 77 * <p>Entitlement usage name.</p> 78 */ WithName(const char * value)79 inline EntitlementUsage& WithName(const char* value) { SetName(value); return *this;} 80 81 82 /** 83 * <p>Resource usage consumed.</p> 84 */ GetConsumedValue()85 inline const Aws::String& GetConsumedValue() const{ return m_consumedValue; } 86 87 /** 88 * <p>Resource usage consumed.</p> 89 */ ConsumedValueHasBeenSet()90 inline bool ConsumedValueHasBeenSet() const { return m_consumedValueHasBeenSet; } 91 92 /** 93 * <p>Resource usage consumed.</p> 94 */ SetConsumedValue(const Aws::String & value)95 inline void SetConsumedValue(const Aws::String& value) { m_consumedValueHasBeenSet = true; m_consumedValue = value; } 96 97 /** 98 * <p>Resource usage consumed.</p> 99 */ SetConsumedValue(Aws::String && value)100 inline void SetConsumedValue(Aws::String&& value) { m_consumedValueHasBeenSet = true; m_consumedValue = std::move(value); } 101 102 /** 103 * <p>Resource usage consumed.</p> 104 */ SetConsumedValue(const char * value)105 inline void SetConsumedValue(const char* value) { m_consumedValueHasBeenSet = true; m_consumedValue.assign(value); } 106 107 /** 108 * <p>Resource usage consumed.</p> 109 */ WithConsumedValue(const Aws::String & value)110 inline EntitlementUsage& WithConsumedValue(const Aws::String& value) { SetConsumedValue(value); return *this;} 111 112 /** 113 * <p>Resource usage consumed.</p> 114 */ WithConsumedValue(Aws::String && value)115 inline EntitlementUsage& WithConsumedValue(Aws::String&& value) { SetConsumedValue(std::move(value)); return *this;} 116 117 /** 118 * <p>Resource usage consumed.</p> 119 */ WithConsumedValue(const char * value)120 inline EntitlementUsage& WithConsumedValue(const char* value) { SetConsumedValue(value); return *this;} 121 122 123 /** 124 * <p>Maximum entitlement usage count.</p> 125 */ GetMaxCount()126 inline const Aws::String& GetMaxCount() const{ return m_maxCount; } 127 128 /** 129 * <p>Maximum entitlement usage count.</p> 130 */ MaxCountHasBeenSet()131 inline bool MaxCountHasBeenSet() const { return m_maxCountHasBeenSet; } 132 133 /** 134 * <p>Maximum entitlement usage count.</p> 135 */ SetMaxCount(const Aws::String & value)136 inline void SetMaxCount(const Aws::String& value) { m_maxCountHasBeenSet = true; m_maxCount = value; } 137 138 /** 139 * <p>Maximum entitlement usage count.</p> 140 */ SetMaxCount(Aws::String && value)141 inline void SetMaxCount(Aws::String&& value) { m_maxCountHasBeenSet = true; m_maxCount = std::move(value); } 142 143 /** 144 * <p>Maximum entitlement usage count.</p> 145 */ SetMaxCount(const char * value)146 inline void SetMaxCount(const char* value) { m_maxCountHasBeenSet = true; m_maxCount.assign(value); } 147 148 /** 149 * <p>Maximum entitlement usage count.</p> 150 */ WithMaxCount(const Aws::String & value)151 inline EntitlementUsage& WithMaxCount(const Aws::String& value) { SetMaxCount(value); return *this;} 152 153 /** 154 * <p>Maximum entitlement usage count.</p> 155 */ WithMaxCount(Aws::String && value)156 inline EntitlementUsage& WithMaxCount(Aws::String&& value) { SetMaxCount(std::move(value)); return *this;} 157 158 /** 159 * <p>Maximum entitlement usage count.</p> 160 */ WithMaxCount(const char * value)161 inline EntitlementUsage& WithMaxCount(const char* value) { SetMaxCount(value); return *this;} 162 163 164 /** 165 * <p>Entitlement usage unit.</p> 166 */ GetUnit()167 inline const EntitlementDataUnit& GetUnit() const{ return m_unit; } 168 169 /** 170 * <p>Entitlement usage unit.</p> 171 */ UnitHasBeenSet()172 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; } 173 174 /** 175 * <p>Entitlement usage unit.</p> 176 */ SetUnit(const EntitlementDataUnit & value)177 inline void SetUnit(const EntitlementDataUnit& value) { m_unitHasBeenSet = true; m_unit = value; } 178 179 /** 180 * <p>Entitlement usage unit.</p> 181 */ SetUnit(EntitlementDataUnit && value)182 inline void SetUnit(EntitlementDataUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); } 183 184 /** 185 * <p>Entitlement usage unit.</p> 186 */ WithUnit(const EntitlementDataUnit & value)187 inline EntitlementUsage& WithUnit(const EntitlementDataUnit& value) { SetUnit(value); return *this;} 188 189 /** 190 * <p>Entitlement usage unit.</p> 191 */ WithUnit(EntitlementDataUnit && value)192 inline EntitlementUsage& WithUnit(EntitlementDataUnit&& value) { SetUnit(std::move(value)); return *this;} 193 194 private: 195 196 Aws::String m_name; 197 bool m_nameHasBeenSet; 198 199 Aws::String m_consumedValue; 200 bool m_consumedValueHasBeenSet; 201 202 Aws::String m_maxCount; 203 bool m_maxCountHasBeenSet; 204 205 EntitlementDataUnit m_unit; 206 bool m_unitHasBeenSet; 207 }; 208 209 } // namespace Model 210 } // namespace LicenseManager 211 } // namespace Aws 212