/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace RDS { namespace Model { /** *

The version for an option. Option group option versions are returned by the * DescribeOptionGroupOptions action.

See Also:

AWS * API Reference

*/ class OptionVersion { public: AWS_RDS_API OptionVersion(); AWS_RDS_API OptionVersion(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_RDS_API OptionVersion& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The version of the option.

*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *

The version of the option.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

The version of the option.

*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *

The version of the option.

*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *

The version of the option.

*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *

The version of the option.

*/ inline OptionVersion& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

The version of the option.

*/ inline OptionVersion& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

The version of the option.

*/ inline OptionVersion& WithVersion(const char* value) { SetVersion(value); return *this;} /** *

True if the version is the default version of the option, and otherwise * false.

*/ inline bool GetIsDefault() const{ return m_isDefault; } /** *

True if the version is the default version of the option, and otherwise * false.

*/ inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; } /** *

True if the version is the default version of the option, and otherwise * false.

*/ inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; } /** *

True if the version is the default version of the option, and otherwise * false.

*/ inline OptionVersion& WithIsDefault(bool value) { SetIsDefault(value); return *this;} private: Aws::String m_version; bool m_versionHasBeenSet = false; bool m_isDefault; bool m_isDefaultHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws