/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace LexRuntimeV2 { namespace Model { /** *

The current intent that Amazon Lex V2 is attempting to fulfill.

See * Also:

AWS * API Reference

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

The name of the intent.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the intent.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the intent.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the intent.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the intent.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the intent.

*/ inline Intent& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the intent.

*/ inline Intent& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the intent.

*/ inline Intent& WithName(const char* value) { SetName(value); return *this;} /** *

A map of all of the slots for the intent. The name of the slot maps to the * value of the slot. If a slot has not been filled, the value is null.

*/ inline const Aws::Map& GetSlots() const{ return m_slots; } /** *

A map of all of the slots for the intent. The name of the slot maps to the * value of the slot. If a slot has not been filled, the value is null.

*/ inline bool SlotsHasBeenSet() const { return m_slotsHasBeenSet; } /** *

A map of all of the slots for the intent. The name of the slot maps to the * value of the slot. If a slot has not been filled, the value is null.

*/ inline void SetSlots(const Aws::Map& value) { m_slotsHasBeenSet = true; m_slots = value; } /** *

A map of all of the slots for the intent. The name of the slot maps to the * value of the slot. If a slot has not been filled, the value is null.

*/ inline void SetSlots(Aws::Map&& value) { m_slotsHasBeenSet = true; m_slots = std::move(value); } /** *

A map of all of the slots for the intent. The name of the slot maps to the * value of the slot. If a slot has not been filled, the value is null.

*/ inline Intent& WithSlots(const Aws::Map& value) { SetSlots(value); return *this;} /** *

A map of all of the slots for the intent. The name of the slot maps to the * value of the slot. If a slot has not been filled, the value is null.

*/ inline Intent& WithSlots(Aws::Map&& value) { SetSlots(std::move(value)); return *this;} /** *

A map of all of the slots for the intent. The name of the slot maps to the * value of the slot. If a slot has not been filled, the value is null.

*/ inline Intent& AddSlots(const Aws::String& key, const Slot& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, value); return *this; } /** *

A map of all of the slots for the intent. The name of the slot maps to the * value of the slot. If a slot has not been filled, the value is null.

*/ inline Intent& AddSlots(Aws::String&& key, const Slot& value) { m_slotsHasBeenSet = true; m_slots.emplace(std::move(key), value); return *this; } /** *

A map of all of the slots for the intent. The name of the slot maps to the * value of the slot. If a slot has not been filled, the value is null.

*/ inline Intent& AddSlots(const Aws::String& key, Slot&& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, std::move(value)); return *this; } /** *

A map of all of the slots for the intent. The name of the slot maps to the * value of the slot. If a slot has not been filled, the value is null.

*/ inline Intent& AddSlots(Aws::String&& key, Slot&& value) { m_slotsHasBeenSet = true; m_slots.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of all of the slots for the intent. The name of the slot maps to the * value of the slot. If a slot has not been filled, the value is null.

*/ inline Intent& AddSlots(const char* key, Slot&& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, std::move(value)); return *this; } /** *

A map of all of the slots for the intent. The name of the slot maps to the * value of the slot. If a slot has not been filled, the value is null.

*/ inline Intent& AddSlots(const char* key, const Slot& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, value); return *this; } /** *

Contains fulfillment information for the intent.

*/ inline const IntentState& GetState() const{ return m_state; } /** *

Contains fulfillment information for the intent.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

Contains fulfillment information for the intent.

*/ inline void SetState(const IntentState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

Contains fulfillment information for the intent.

*/ inline void SetState(IntentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

Contains fulfillment information for the intent.

*/ inline Intent& WithState(const IntentState& value) { SetState(value); return *this;} /** *

Contains fulfillment information for the intent.

*/ inline Intent& WithState(IntentState&& value) { SetState(std::move(value)); return *this;} /** *

Contains information about whether fulfillment of the intent has been * confirmed.

*/ inline const ConfirmationState& GetConfirmationState() const{ return m_confirmationState; } /** *

Contains information about whether fulfillment of the intent has been * confirmed.

*/ inline bool ConfirmationStateHasBeenSet() const { return m_confirmationStateHasBeenSet; } /** *

Contains information about whether fulfillment of the intent has been * confirmed.

*/ inline void SetConfirmationState(const ConfirmationState& value) { m_confirmationStateHasBeenSet = true; m_confirmationState = value; } /** *

Contains information about whether fulfillment of the intent has been * confirmed.

*/ inline void SetConfirmationState(ConfirmationState&& value) { m_confirmationStateHasBeenSet = true; m_confirmationState = std::move(value); } /** *

Contains information about whether fulfillment of the intent has been * confirmed.

*/ inline Intent& WithConfirmationState(const ConfirmationState& value) { SetConfirmationState(value); return *this;} /** *

Contains information about whether fulfillment of the intent has been * confirmed.

*/ inline Intent& WithConfirmationState(ConfirmationState&& value) { SetConfirmationState(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Map m_slots; bool m_slotsHasBeenSet = false; IntentState m_state; bool m_stateHasBeenSet = false; ConfirmationState m_confirmationState; bool m_confirmationStateHasBeenSet = false; }; } // namespace Model } // namespace LexRuntimeV2 } // namespace Aws