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

Specifies an option value.

See Also:

AWS API * Reference

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

Specifies the value of the option.

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

Specifies the value of the option.

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

Specifies the value of the option.

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

Specifies the value of the option.

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

Specifies the value of the option.

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

Specifies the value of the option.

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

Specifies the value of the option.

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

Specifies the value of the option.

*/ inline Option& WithValue(const char* value) { SetValue(value); return *this;} /** *

Specifies the label of the option.

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

Specifies the label of the option.

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

Specifies the label of the option.

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

Specifies the label of the option.

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

Specifies the label of the option.

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

Specifies the label of the option.

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

Specifies the label of the option.

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

Specifies the label of the option.

*/ inline Option& WithLabel(const char* value) { SetLabel(value); return *this;} /** *

Specifies the description of the option.

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

Specifies the description of the option.

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

Specifies the description of the option.

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

Specifies the description of the option.

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

Specifies the description of the option.

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

Specifies the description of the option.

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

Specifies the description of the option.

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

Specifies the description of the option.

*/ inline Option& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_value; bool m_valueHasBeenSet = false; Aws::String m_label; bool m_labelHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws