/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::KafkaConnect::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; CreateCustomPluginRequest::CreateCustomPluginRequest() : m_contentType(CustomPluginContentType::NOT_SET), m_contentTypeHasBeenSet(false), m_descriptionHasBeenSet(false), m_locationHasBeenSet(false), m_nameHasBeenSet(false) { } Aws::String CreateCustomPluginRequest::SerializePayload() const { JsonValue payload; if(m_contentTypeHasBeenSet) { payload.WithString("contentType", CustomPluginContentTypeMapper::GetNameForCustomPluginContentType(m_contentType)); } if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); } if(m_locationHasBeenSet) { payload.WithObject("location", m_location.Jsonize()); } if(m_nameHasBeenSet) { payload.WithString("name", m_name); } return payload.View().WriteReadable(); }