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

This structure contains information about one canary runtime version. For * more information about runtime versions, see * Canary Runtime Versions.

See Also:

AWS * API Reference

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

The name of the runtime version. Currently, the only valid value is * syn-1.0.

Specifies the runtime version to use for the * canary. Currently, the only valid value is syn-1.0.

*/ inline const Aws::String& GetVersionName() const{ return m_versionName; } /** *

The name of the runtime version. Currently, the only valid value is * syn-1.0.

Specifies the runtime version to use for the * canary. Currently, the only valid value is syn-1.0.

*/ inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; } /** *

The name of the runtime version. Currently, the only valid value is * syn-1.0.

Specifies the runtime version to use for the * canary. Currently, the only valid value is syn-1.0.

*/ inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; } /** *

The name of the runtime version. Currently, the only valid value is * syn-1.0.

Specifies the runtime version to use for the * canary. Currently, the only valid value is syn-1.0.

*/ inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); } /** *

The name of the runtime version. Currently, the only valid value is * syn-1.0.

Specifies the runtime version to use for the * canary. Currently, the only valid value is syn-1.0.

*/ inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); } /** *

The name of the runtime version. Currently, the only valid value is * syn-1.0.

Specifies the runtime version to use for the * canary. Currently, the only valid value is syn-1.0.

*/ inline RuntimeVersion& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;} /** *

The name of the runtime version. Currently, the only valid value is * syn-1.0.

Specifies the runtime version to use for the * canary. Currently, the only valid value is syn-1.0.

*/ inline RuntimeVersion& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;} /** *

The name of the runtime version. Currently, the only valid value is * syn-1.0.

Specifies the runtime version to use for the * canary. Currently, the only valid value is syn-1.0.

*/ inline RuntimeVersion& WithVersionName(const char* value) { SetVersionName(value); return *this;} /** *

A description of the runtime version, created by Amazon.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the runtime version, created by Amazon.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the runtime version, created by Amazon.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the runtime version, created by Amazon.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the runtime version, created by Amazon.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the runtime version, created by Amazon.

*/ inline RuntimeVersion& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the runtime version, created by Amazon.

*/ inline RuntimeVersion& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the runtime version, created by Amazon.

*/ inline RuntimeVersion& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The date that the runtime version was released.

*/ inline const Aws::Utils::DateTime& GetReleaseDate() const{ return m_releaseDate; } /** *

The date that the runtime version was released.

*/ inline bool ReleaseDateHasBeenSet() const { return m_releaseDateHasBeenSet; } /** *

The date that the runtime version was released.

*/ inline void SetReleaseDate(const Aws::Utils::DateTime& value) { m_releaseDateHasBeenSet = true; m_releaseDate = value; } /** *

The date that the runtime version was released.

*/ inline void SetReleaseDate(Aws::Utils::DateTime&& value) { m_releaseDateHasBeenSet = true; m_releaseDate = std::move(value); } /** *

The date that the runtime version was released.

*/ inline RuntimeVersion& WithReleaseDate(const Aws::Utils::DateTime& value) { SetReleaseDate(value); return *this;} /** *

The date that the runtime version was released.

*/ inline RuntimeVersion& WithReleaseDate(Aws::Utils::DateTime&& value) { SetReleaseDate(std::move(value)); return *this;} /** *

If this runtime version is deprecated, this value is the date of * deprecation.

*/ inline const Aws::Utils::DateTime& GetDeprecationDate() const{ return m_deprecationDate; } /** *

If this runtime version is deprecated, this value is the date of * deprecation.

*/ inline bool DeprecationDateHasBeenSet() const { return m_deprecationDateHasBeenSet; } /** *

If this runtime version is deprecated, this value is the date of * deprecation.

*/ inline void SetDeprecationDate(const Aws::Utils::DateTime& value) { m_deprecationDateHasBeenSet = true; m_deprecationDate = value; } /** *

If this runtime version is deprecated, this value is the date of * deprecation.

*/ inline void SetDeprecationDate(Aws::Utils::DateTime&& value) { m_deprecationDateHasBeenSet = true; m_deprecationDate = std::move(value); } /** *

If this runtime version is deprecated, this value is the date of * deprecation.

*/ inline RuntimeVersion& WithDeprecationDate(const Aws::Utils::DateTime& value) { SetDeprecationDate(value); return *this;} /** *

If this runtime version is deprecated, this value is the date of * deprecation.

*/ inline RuntimeVersion& WithDeprecationDate(Aws::Utils::DateTime&& value) { SetDeprecationDate(std::move(value)); return *this;} private: Aws::String m_versionName; bool m_versionNameHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; Aws::Utils::DateTime m_releaseDate; bool m_releaseDateHasBeenSet; Aws::Utils::DateTime m_deprecationDate; bool m_deprecationDateHasBeenSet; }; } // namespace Model } // namespace Synthetics } // namespace Aws