/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::CloudWatchRUM::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateAppMonitorRequest::UpdateAppMonitorRequest() : m_appMonitorConfigurationHasBeenSet(false), m_customEventsHasBeenSet(false), m_cwLogEnabled(false), m_cwLogEnabledHasBeenSet(false), m_domainHasBeenSet(false), m_nameHasBeenSet(false) { } Aws::String UpdateAppMonitorRequest::SerializePayload() const { JsonValue payload; if(m_appMonitorConfigurationHasBeenSet) { payload.WithObject("AppMonitorConfiguration", m_appMonitorConfiguration.Jsonize()); } if(m_customEventsHasBeenSet) { payload.WithObject("CustomEvents", m_customEvents.Jsonize()); } if(m_cwLogEnabledHasBeenSet) { payload.WithBool("CwLogEnabled", m_cwLogEnabled); } if(m_domainHasBeenSet) { payload.WithString("Domain", m_domain); } return payload.View().WriteReadable(); }