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

A default value for a slot.

See Also:

AWS * API Reference

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

The default value for the slot. You can specify one of the following:

*
  • #context-name.slot-name - The slot value "slot-name" * in the context "context-name."

  • {attribute} - The * slot value of the session attribute "attribute."

  • * 'value' - The discrete value "value."

*/ inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; } /** *

The default value for the slot. You can specify one of the following:

*
  • #context-name.slot-name - The slot value "slot-name" * in the context "context-name."

  • {attribute} - The * slot value of the session attribute "attribute."

  • * 'value' - The discrete value "value."

*/ inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; } /** *

The default value for the slot. You can specify one of the following:

*
  • #context-name.slot-name - The slot value "slot-name" * in the context "context-name."

  • {attribute} - The * slot value of the session attribute "attribute."

  • * 'value' - The discrete value "value."

*/ inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; } /** *

The default value for the slot. You can specify one of the following:

*
  • #context-name.slot-name - The slot value "slot-name" * in the context "context-name."

  • {attribute} - The * slot value of the session attribute "attribute."

  • * 'value' - The discrete value "value."

*/ inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); } /** *

The default value for the slot. You can specify one of the following:

*
  • #context-name.slot-name - The slot value "slot-name" * in the context "context-name."

  • {attribute} - The * slot value of the session attribute "attribute."

  • * 'value' - The discrete value "value."

*/ inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); } /** *

The default value for the slot. You can specify one of the following:

*
  • #context-name.slot-name - The slot value "slot-name" * in the context "context-name."

  • {attribute} - The * slot value of the session attribute "attribute."

  • * 'value' - The discrete value "value."

*/ inline SlotDefaultValue& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;} /** *

The default value for the slot. You can specify one of the following:

*
  • #context-name.slot-name - The slot value "slot-name" * in the context "context-name."

  • {attribute} - The * slot value of the session attribute "attribute."

  • * 'value' - The discrete value "value."

*/ inline SlotDefaultValue& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;} /** *

The default value for the slot. You can specify one of the following:

*
  • #context-name.slot-name - The slot value "slot-name" * in the context "context-name."

  • {attribute} - The * slot value of the session attribute "attribute."

  • * 'value' - The discrete value "value."

*/ inline SlotDefaultValue& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;} private: Aws::String m_defaultValue; bool m_defaultValueHasBeenSet = false; }; } // namespace Model } // namespace LexModelBuildingService } // namespace Aws