/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Lightsail::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; GetCostEstimateRequest::GetCostEstimateRequest() : m_resourceNameHasBeenSet(false), m_startTimeHasBeenSet(false), m_endTimeHasBeenSet(false) { } Aws::String GetCostEstimateRequest::SerializePayload() const { JsonValue payload; if(m_resourceNameHasBeenSet) { payload.WithString("resourceName", m_resourceName); } if(m_startTimeHasBeenSet) { payload.WithDouble("startTime", m_startTime.SecondsWithMSPrecision()); } if(m_endTimeHasBeenSet) { payload.WithDouble("endTime", m_endTime.SecondsWithMSPrecision()); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection GetCostEstimateRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "Lightsail_20161128.GetCostEstimate")); return headers; }