/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::ApplicationInsights::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateApplicationRequest::UpdateApplicationRequest() : m_resourceGroupNameHasBeenSet(false), m_opsCenterEnabled(false), m_opsCenterEnabledHasBeenSet(false), m_cWEMonitorEnabled(false), m_cWEMonitorEnabledHasBeenSet(false), m_opsItemSNSTopicArnHasBeenSet(false), m_removeSNSTopic(false), m_removeSNSTopicHasBeenSet(false), m_autoConfigEnabled(false), m_autoConfigEnabledHasBeenSet(false) { } Aws::String UpdateApplicationRequest::SerializePayload() const { JsonValue payload; if(m_resourceGroupNameHasBeenSet) { payload.WithString("ResourceGroupName", m_resourceGroupName); } if(m_opsCenterEnabledHasBeenSet) { payload.WithBool("OpsCenterEnabled", m_opsCenterEnabled); } if(m_cWEMonitorEnabledHasBeenSet) { payload.WithBool("CWEMonitorEnabled", m_cWEMonitorEnabled); } if(m_opsItemSNSTopicArnHasBeenSet) { payload.WithString("OpsItemSNSTopicArn", m_opsItemSNSTopicArn); } if(m_removeSNSTopicHasBeenSet) { payload.WithBool("RemoveSNSTopic", m_removeSNSTopic); } if(m_autoConfigEnabledHasBeenSet) { payload.WithBool("AutoConfigEnabled", m_autoConfigEnabled); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection UpdateApplicationRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "EC2WindowsBarleyService.UpdateApplication")); return headers; }