/** * 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 kendra { namespace Model { FeaturedDocumentWithMetadata::FeaturedDocumentWithMetadata() : m_idHasBeenSet(false), m_titleHasBeenSet(false), m_uRIHasBeenSet(false) { } FeaturedDocumentWithMetadata::FeaturedDocumentWithMetadata(JsonView jsonValue) : m_idHasBeenSet(false), m_titleHasBeenSet(false), m_uRIHasBeenSet(false) { *this = jsonValue; } FeaturedDocumentWithMetadata& FeaturedDocumentWithMetadata::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Id")) { m_id = jsonValue.GetString("Id"); m_idHasBeenSet = true; } if(jsonValue.ValueExists("Title")) { m_title = jsonValue.GetString("Title"); m_titleHasBeenSet = true; } if(jsonValue.ValueExists("URI")) { m_uRI = jsonValue.GetString("URI"); m_uRIHasBeenSet = true; } return *this; } JsonValue FeaturedDocumentWithMetadata::Jsonize() const { JsonValue payload; if(m_idHasBeenSet) { payload.WithString("Id", m_id); } if(m_titleHasBeenSet) { payload.WithString("Title", m_title); } if(m_uRIHasBeenSet) { payload.WithString("URI", m_uRI); } return payload; } } // namespace Model } // namespace kendra } // namespace Aws