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

The Amazon Linux release specified for a cluster in the RunJobFlow * request.

See Also:

AWS * API Reference

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

The Amazon Linux release specified for a cluster in the RunJobFlow request. * The format is as shown in * Amazon Linux 2 Release Notes . For example, 2.0.20220218.1.

*/ inline const Aws::String& GetLabel() const{ return m_label; } /** *

The Amazon Linux release specified for a cluster in the RunJobFlow request. * The format is as shown in * Amazon Linux 2 Release Notes . For example, 2.0.20220218.1.

*/ inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; } /** *

The Amazon Linux release specified for a cluster in the RunJobFlow request. * The format is as shown in * Amazon Linux 2 Release Notes . For example, 2.0.20220218.1.

*/ inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; } /** *

The Amazon Linux release specified for a cluster in the RunJobFlow request. * The format is as shown in * Amazon Linux 2 Release Notes . For example, 2.0.20220218.1.

*/ inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); } /** *

The Amazon Linux release specified for a cluster in the RunJobFlow request. * The format is as shown in * Amazon Linux 2 Release Notes . For example, 2.0.20220218.1.

*/ inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); } /** *

The Amazon Linux release specified for a cluster in the RunJobFlow request. * The format is as shown in * Amazon Linux 2 Release Notes . For example, 2.0.20220218.1.

*/ inline OSRelease& WithLabel(const Aws::String& value) { SetLabel(value); return *this;} /** *

The Amazon Linux release specified for a cluster in the RunJobFlow request. * The format is as shown in * Amazon Linux 2 Release Notes . For example, 2.0.20220218.1.

*/ inline OSRelease& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;} /** *

The Amazon Linux release specified for a cluster in the RunJobFlow request. * The format is as shown in * Amazon Linux 2 Release Notes . For example, 2.0.20220218.1.

*/ inline OSRelease& WithLabel(const char* value) { SetLabel(value); return *this;} private: Aws::String m_label; bool m_labelHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws