/** * 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; CreateBotLocaleRequest::CreateBotLocaleRequest() : m_botIdHasBeenSet(false), m_botVersionHasBeenSet(false), m_localeIdHasBeenSet(false), m_descriptionHasBeenSet(false), m_nluIntentConfidenceThreshold(0.0), m_nluIntentConfidenceThresholdHasBeenSet(false), m_voiceSettingsHasBeenSet(false) { } Aws::String CreateBotLocaleRequest::SerializePayload() const { JsonValue payload; if(m_localeIdHasBeenSet) { payload.WithString("localeId", m_localeId); } if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); } if(m_nluIntentConfidenceThresholdHasBeenSet) { payload.WithDouble("nluIntentConfidenceThreshold", m_nluIntentConfidenceThreshold); } if(m_voiceSettingsHasBeenSet) { payload.WithObject("voiceSettings", m_voiceSettings.Jsonize()); } return payload.View().WriteReadable(); }