/** * 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; GetRelationalDatabaseLogEventsRequest::GetRelationalDatabaseLogEventsRequest() : m_relationalDatabaseNameHasBeenSet(false), m_logStreamNameHasBeenSet(false), m_startTimeHasBeenSet(false), m_endTimeHasBeenSet(false), m_startFromHead(false), m_startFromHeadHasBeenSet(false), m_pageTokenHasBeenSet(false) { } Aws::String GetRelationalDatabaseLogEventsRequest::SerializePayload() const { JsonValue payload; if(m_relationalDatabaseNameHasBeenSet) { payload.WithString("relationalDatabaseName", m_relationalDatabaseName); } if(m_logStreamNameHasBeenSet) { payload.WithString("logStreamName", m_logStreamName); } if(m_startTimeHasBeenSet) { payload.WithDouble("startTime", m_startTime.SecondsWithMSPrecision()); } if(m_endTimeHasBeenSet) { payload.WithDouble("endTime", m_endTime.SecondsWithMSPrecision()); } if(m_startFromHeadHasBeenSet) { payload.WithBool("startFromHead", m_startFromHead); } if(m_pageTokenHasBeenSet) { payload.WithString("pageToken", m_pageToken); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection GetRelationalDatabaseLogEventsRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "Lightsail_20161128.GetRelationalDatabaseLogEvents")); return headers; }