/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::LexModelsV2::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; BatchCreateCustomVocabularyItemRequest::BatchCreateCustomVocabularyItemRequest() : m_botIdHasBeenSet(false), m_botVersionHasBeenSet(false), m_localeIdHasBeenSet(false), m_customVocabularyItemListHasBeenSet(false) { } Aws::String BatchCreateCustomVocabularyItemRequest::SerializePayload() const { JsonValue payload; if(m_customVocabularyItemListHasBeenSet) { Aws::Utils::Array customVocabularyItemListJsonList(m_customVocabularyItemList.size()); for(unsigned customVocabularyItemListIndex = 0; customVocabularyItemListIndex < customVocabularyItemListJsonList.GetLength(); ++customVocabularyItemListIndex) { customVocabularyItemListJsonList[customVocabularyItemListIndex].AsObject(m_customVocabularyItemList[customVocabularyItemListIndex].Jsonize()); } payload.WithArray("customVocabularyItemList", std::move(customVocabularyItemListJsonList)); } return payload.View().WriteReadable(); }