/** * 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 { /** *

Sets the priority that Amazon Lex should use when eliciting slot values from * a user.

See Also:

AWS * API Reference

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

The priority that Amazon Lex should apply to the slot.

*/ inline int GetPriority() const{ return m_priority; } /** *

The priority that Amazon Lex should apply to the slot.

*/ inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; } /** *

The priority that Amazon Lex should apply to the slot.

*/ inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; } /** *

The priority that Amazon Lex should apply to the slot.

*/ inline SlotPriority& WithPriority(int value) { SetPriority(value); return *this;} /** *

The unique identifier of the slot.

*/ inline const Aws::String& GetSlotId() const{ return m_slotId; } /** *

The unique identifier of the slot.

*/ inline bool SlotIdHasBeenSet() const { return m_slotIdHasBeenSet; } /** *

The unique identifier of the slot.

*/ inline void SetSlotId(const Aws::String& value) { m_slotIdHasBeenSet = true; m_slotId = value; } /** *

The unique identifier of the slot.

*/ inline void SetSlotId(Aws::String&& value) { m_slotIdHasBeenSet = true; m_slotId = std::move(value); } /** *

The unique identifier of the slot.

*/ inline void SetSlotId(const char* value) { m_slotIdHasBeenSet = true; m_slotId.assign(value); } /** *

The unique identifier of the slot.

*/ inline SlotPriority& WithSlotId(const Aws::String& value) { SetSlotId(value); return *this;} /** *

The unique identifier of the slot.

*/ inline SlotPriority& WithSlotId(Aws::String&& value) { SetSlotId(std::move(value)); return *this;} /** *

The unique identifier of the slot.

*/ inline SlotPriority& WithSlotId(const char* value) { SetSlotId(value); return *this;} private: int m_priority; bool m_priorityHasBeenSet = false; Aws::String m_slotId; bool m_slotIdHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws