/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::CodeGuruProfiler::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; SubmitFeedbackRequest::SubmitFeedbackRequest() : m_anomalyInstanceIdHasBeenSet(false), m_commentHasBeenSet(false), m_profilingGroupNameHasBeenSet(false), m_type(FeedbackType::NOT_SET), m_typeHasBeenSet(false) { } Aws::String SubmitFeedbackRequest::SerializePayload() const { JsonValue payload; if(m_commentHasBeenSet) { payload.WithString("comment", m_comment); } if(m_typeHasBeenSet) { payload.WithString("type", FeedbackTypeMapper::GetNameForFeedbackType(m_type)); } return payload.View().WriteReadable(); }