/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace LexRuntimeV2 { namespace Model { ElicitSubSlot::ElicitSubSlot() : m_nameHasBeenSet(false), m_subSlotToElicitHasBeenSet(false) { } ElicitSubSlot::ElicitSubSlot(JsonView jsonValue) : m_nameHasBeenSet(false), m_subSlotToElicitHasBeenSet(false) { *this = jsonValue; } const ElicitSubSlot& ElicitSubSlot::GetSubSlotToElicit() const{ return *m_subSlotToElicit; } bool ElicitSubSlot::SubSlotToElicitHasBeenSet() const { return m_subSlotToElicitHasBeenSet; } void ElicitSubSlot::SetSubSlotToElicit(const ElicitSubSlot& value) { m_subSlotToElicitHasBeenSet = true; m_subSlotToElicit = Aws::MakeShared("ElicitSubSlot", value); } void ElicitSubSlot::SetSubSlotToElicit(ElicitSubSlot&& value) { m_subSlotToElicitHasBeenSet = true; m_subSlotToElicit = Aws::MakeShared("ElicitSubSlot", std::move(value)); } ElicitSubSlot& ElicitSubSlot::WithSubSlotToElicit(const ElicitSubSlot& value) { SetSubSlotToElicit(value); return *this;} ElicitSubSlot& ElicitSubSlot::WithSubSlotToElicit(ElicitSubSlot&& value) { SetSubSlotToElicit(std::move(value)); return *this;} ElicitSubSlot& ElicitSubSlot::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("name")) { m_name = jsonValue.GetString("name"); m_nameHasBeenSet = true; } if(jsonValue.ValueExists("subSlotToElicit")) { m_subSlotToElicit = Aws::MakeShared("ElicitSubSlot", jsonValue.GetObject("subSlotToElicit")); m_subSlotToElicitHasBeenSet = true; } return *this; } JsonValue ElicitSubSlot::Jsonize() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_subSlotToElicitHasBeenSet) { payload.WithObject("subSlotToElicit", m_subSlotToElicit->Jsonize()); } return payload; } } // namespace Model } // namespace LexRuntimeV2 } // namespace Aws