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

Information about a property.

See Also:

AWS * API Reference

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

The property name.

*/ inline const SavingsPlanOfferingPropertyKey& GetName() const{ return m_name; } /** *

The property name.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The property name.

*/ inline void SetName(const SavingsPlanOfferingPropertyKey& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The property name.

*/ inline void SetName(SavingsPlanOfferingPropertyKey&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The property name.

*/ inline SavingsPlanOfferingProperty& WithName(const SavingsPlanOfferingPropertyKey& value) { SetName(value); return *this;} /** *

The property name.

*/ inline SavingsPlanOfferingProperty& WithName(SavingsPlanOfferingPropertyKey&& value) { SetName(std::move(value)); return *this;} /** *

The property value.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The property value.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The property value.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The property value.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The property value.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The property value.

*/ inline SavingsPlanOfferingProperty& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The property value.

*/ inline SavingsPlanOfferingProperty& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The property value.

*/ inline SavingsPlanOfferingProperty& WithValue(const char* value) { SetValue(value); return *this;} private: SavingsPlanOfferingPropertyKey m_name; bool m_nameHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace SavingsPlans } // namespace Aws