/** * 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 Snowball { namespace Model { /** *

The version of the requested service.

See Also:

AWS * API Reference

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

The version number of the requested service.

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

The version number of the requested service.

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

The version number of the requested service.

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

The version number of the requested service.

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

The version number of the requested service.

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

The version number of the requested service.

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

The version number of the requested service.

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

The version number of the requested service.

*/ inline ServiceVersion& WithVersion(const char* value) { SetVersion(value); return *this;} private: Aws::String m_version; bool m_versionHasBeenSet = false; }; } // namespace Model } // namespace Snowball } // namespace Aws