/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a resource entitled for use with a license.See
* Also:
AWS
* API Reference
Entitlement name.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *Entitlement name.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *Entitlement name.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *Entitlement name.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *Entitlement name.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *Entitlement name.
*/ inline Entitlement& WithName(const Aws::String& value) { SetName(value); return *this;} /** *Entitlement name.
*/ inline Entitlement& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *Entitlement name.
*/ inline Entitlement& WithName(const char* value) { SetName(value); return *this;} /** *Entitlement resource. Use only if the unit is None.
*/ inline const Aws::String& GetValue() const{ return m_value; } /** *Entitlement resource. Use only if the unit is None.
*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *Entitlement resource. Use only if the unit is None.
*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *Entitlement resource. Use only if the unit is None.
*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *Entitlement resource. Use only if the unit is None.
*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *Entitlement resource. Use only if the unit is None.
*/ inline Entitlement& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *Entitlement resource. Use only if the unit is None.
*/ inline Entitlement& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *Entitlement resource. Use only if the unit is None.
*/ inline Entitlement& WithValue(const char* value) { SetValue(value); return *this;} /** *Maximum entitlement count. Use if the unit is not None.
*/ inline long long GetMaxCount() const{ return m_maxCount; } /** *Maximum entitlement count. Use if the unit is not None.
*/ inline bool MaxCountHasBeenSet() const { return m_maxCountHasBeenSet; } /** *Maximum entitlement count. Use if the unit is not None.
*/ inline void SetMaxCount(long long value) { m_maxCountHasBeenSet = true; m_maxCount = value; } /** *Maximum entitlement count. Use if the unit is not None.
*/ inline Entitlement& WithMaxCount(long long value) { SetMaxCount(value); return *this;} /** *Indicates whether overages are allowed.
*/ inline bool GetOverage() const{ return m_overage; } /** *Indicates whether overages are allowed.
*/ inline bool OverageHasBeenSet() const { return m_overageHasBeenSet; } /** *Indicates whether overages are allowed.
*/ inline void SetOverage(bool value) { m_overageHasBeenSet = true; m_overage = value; } /** *Indicates whether overages are allowed.
*/ inline Entitlement& WithOverage(bool value) { SetOverage(value); return *this;} /** *Entitlement unit.
*/ inline const EntitlementUnit& GetUnit() const{ return m_unit; } /** *Entitlement unit.
*/ inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; } /** *Entitlement unit.
*/ inline void SetUnit(const EntitlementUnit& value) { m_unitHasBeenSet = true; m_unit = value; } /** *Entitlement unit.
*/ inline void SetUnit(EntitlementUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); } /** *Entitlement unit.
*/ inline Entitlement& WithUnit(const EntitlementUnit& value) { SetUnit(value); return *this;} /** *Entitlement unit.
*/ inline Entitlement& WithUnit(EntitlementUnit&& value) { SetUnit(std::move(value)); return *this;} /** *Indicates whether check-ins are allowed.
*/ inline bool GetAllowCheckIn() const{ return m_allowCheckIn; } /** *Indicates whether check-ins are allowed.
*/ inline bool AllowCheckInHasBeenSet() const { return m_allowCheckInHasBeenSet; } /** *Indicates whether check-ins are allowed.
*/ inline void SetAllowCheckIn(bool value) { m_allowCheckInHasBeenSet = true; m_allowCheckIn = value; } /** *Indicates whether check-ins are allowed.
*/ inline Entitlement& WithAllowCheckIn(bool value) { SetAllowCheckIn(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; long long m_maxCount; bool m_maxCountHasBeenSet = false; bool m_overage; bool m_overageHasBeenSet = false; EntitlementUnit m_unit; bool m_unitHasBeenSet = false; bool m_allowCheckIn; bool m_allowCheckInHasBeenSet = false; }; } // namespace Model } // namespace LicenseManager } // namespace Aws