/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace MarketplaceEntitlementService { namespace Model { /** *

The EntitlementValue represents the amount of capacity that the customer is * entitled to for the product.

See Also:

AWS * API Reference

*/ class EntitlementValue { public: AWS_MARKETPLACEENTITLEMENTSERVICE_API EntitlementValue(); AWS_MARKETPLACEENTITLEMENTSERVICE_API EntitlementValue(Aws::Utils::Json::JsonView jsonValue); AWS_MARKETPLACEENTITLEMENTSERVICE_API EntitlementValue& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MARKETPLACEENTITLEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The IntegerValue field will be populated with an integer value when the * entitlement is an integer type. Otherwise, the field will not be set.

*/ inline int GetIntegerValue() const{ return m_integerValue; } /** *

The IntegerValue field will be populated with an integer value when the * entitlement is an integer type. Otherwise, the field will not be set.

*/ inline bool IntegerValueHasBeenSet() const { return m_integerValueHasBeenSet; } /** *

The IntegerValue field will be populated with an integer value when the * entitlement is an integer type. Otherwise, the field will not be set.

*/ inline void SetIntegerValue(int value) { m_integerValueHasBeenSet = true; m_integerValue = value; } /** *

The IntegerValue field will be populated with an integer value when the * entitlement is an integer type. Otherwise, the field will not be set.

*/ inline EntitlementValue& WithIntegerValue(int value) { SetIntegerValue(value); return *this;} /** *

The DoubleValue field will be populated with a double value when the * entitlement is a double type. Otherwise, the field will not be set.

*/ inline double GetDoubleValue() const{ return m_doubleValue; } /** *

The DoubleValue field will be populated with a double value when the * entitlement is a double type. Otherwise, the field will not be set.

*/ inline bool DoubleValueHasBeenSet() const { return m_doubleValueHasBeenSet; } /** *

The DoubleValue field will be populated with a double value when the * entitlement is a double type. Otherwise, the field will not be set.

*/ inline void SetDoubleValue(double value) { m_doubleValueHasBeenSet = true; m_doubleValue = value; } /** *

The DoubleValue field will be populated with a double value when the * entitlement is a double type. Otherwise, the field will not be set.

*/ inline EntitlementValue& WithDoubleValue(double value) { SetDoubleValue(value); return *this;} /** *

The BooleanValue field will be populated with a boolean value when the * entitlement is a boolean type. Otherwise, the field will not be set.

*/ inline bool GetBooleanValue() const{ return m_booleanValue; } /** *

The BooleanValue field will be populated with a boolean value when the * entitlement is a boolean type. Otherwise, the field will not be set.

*/ inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; } /** *

The BooleanValue field will be populated with a boolean value when the * entitlement is a boolean type. Otherwise, the field will not be set.

*/ inline void SetBooleanValue(bool value) { m_booleanValueHasBeenSet = true; m_booleanValue = value; } /** *

The BooleanValue field will be populated with a boolean value when the * entitlement is a boolean type. Otherwise, the field will not be set.

*/ inline EntitlementValue& WithBooleanValue(bool value) { SetBooleanValue(value); return *this;} /** *

The StringValue field will be populated with a string value when the * entitlement is a string type. Otherwise, the field will not be set.

*/ inline const Aws::String& GetStringValue() const{ return m_stringValue; } /** *

The StringValue field will be populated with a string value when the * entitlement is a string type. Otherwise, the field will not be set.

*/ inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; } /** *

The StringValue field will be populated with a string value when the * entitlement is a string type. Otherwise, the field will not be set.

*/ inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; } /** *

The StringValue field will be populated with a string value when the * entitlement is a string type. Otherwise, the field will not be set.

*/ inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); } /** *

The StringValue field will be populated with a string value when the * entitlement is a string type. Otherwise, the field will not be set.

*/ inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); } /** *

The StringValue field will be populated with a string value when the * entitlement is a string type. Otherwise, the field will not be set.

*/ inline EntitlementValue& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;} /** *

The StringValue field will be populated with a string value when the * entitlement is a string type. Otherwise, the field will not be set.

*/ inline EntitlementValue& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;} /** *

The StringValue field will be populated with a string value when the * entitlement is a string type. Otherwise, the field will not be set.

*/ inline EntitlementValue& WithStringValue(const char* value) { SetStringValue(value); return *this;} private: int m_integerValue; bool m_integerValueHasBeenSet = false; double m_doubleValue; bool m_doubleValueHasBeenSet = false; bool m_booleanValue; bool m_booleanValueHasBeenSet = false; Aws::String m_stringValue; bool m_stringValueHasBeenSet = false; }; } // namespace Model } // namespace MarketplaceEntitlementService } // namespace Aws