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

Defines one of the values for a slot type.

See Also:

AWS * API Reference

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

The value that can be used for a slot type.

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

The value that can be used for a slot type.

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

The value that can be used for a slot type.

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

The value that can be used for a slot type.

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

The value that can be used for a slot type.

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

The value that can be used for a slot type.

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

The value that can be used for a slot type.

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

The value that can be used for a slot type.

*/ inline SampleValue& WithValue(const char* value) { SetValue(value); return *this;} private: Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws