/** * 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; DescribeComponentConfigurationRecommendationRequest::DescribeComponentConfigurationRecommendationRequest() : m_resourceGroupNameHasBeenSet(false), m_componentNameHasBeenSet(false), m_tier(Tier::NOT_SET), m_tierHasBeenSet(false), m_recommendationType(RecommendationType::NOT_SET), m_recommendationTypeHasBeenSet(false) { } Aws::String DescribeComponentConfigurationRecommendationRequest::SerializePayload() const { JsonValue payload; if(m_resourceGroupNameHasBeenSet) { payload.WithString("ResourceGroupName", m_resourceGroupName); } if(m_componentNameHasBeenSet) { payload.WithString("ComponentName", m_componentName); } if(m_tierHasBeenSet) { payload.WithString("Tier", TierMapper::GetNameForTier(m_tier)); } if(m_recommendationTypeHasBeenSet) { payload.WithString("RecommendationType", RecommendationTypeMapper::GetNameForRecommendationType(m_recommendationType)); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection DescribeComponentConfigurationRecommendationRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "EC2WindowsBarleyService.DescribeComponentConfigurationRecommendation")); return headers; }