/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::TranscribeService::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateCallAnalyticsCategoryRequest::UpdateCallAnalyticsCategoryRequest() : m_categoryNameHasBeenSet(false), m_rulesHasBeenSet(false), m_inputType(InputType::NOT_SET), m_inputTypeHasBeenSet(false) { } Aws::String UpdateCallAnalyticsCategoryRequest::SerializePayload() const { JsonValue payload; if(m_categoryNameHasBeenSet) { payload.WithString("CategoryName", m_categoryName); } if(m_rulesHasBeenSet) { Aws::Utils::Array rulesJsonList(m_rules.size()); for(unsigned rulesIndex = 0; rulesIndex < rulesJsonList.GetLength(); ++rulesIndex) { rulesJsonList[rulesIndex].AsObject(m_rules[rulesIndex].Jsonize()); } payload.WithArray("Rules", std::move(rulesJsonList)); } if(m_inputTypeHasBeenSet) { payload.WithString("InputType", InputTypeMapper::GetNameForInputType(m_inputType)); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection UpdateCallAnalyticsCategoryRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "Transcribe.UpdateCallAnalyticsCategory")); return headers; }