74 lines
1.5 KiB
C++
74 lines
1.5 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/groundstation/model/ReserveContactRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::GroundStation::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
ReserveContactRequest::ReserveContactRequest() :
|
|
m_endTimeHasBeenSet(false),
|
|
m_groundStationHasBeenSet(false),
|
|
m_missionProfileArnHasBeenSet(false),
|
|
m_satelliteArnHasBeenSet(false),
|
|
m_startTimeHasBeenSet(false),
|
|
m_tagsHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String ReserveContactRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_endTimeHasBeenSet)
|
|
{
|
|
payload.WithDouble("endTime", m_endTime.SecondsWithMSPrecision());
|
|
}
|
|
|
|
if(m_groundStationHasBeenSet)
|
|
{
|
|
payload.WithString("groundStation", m_groundStation);
|
|
|
|
}
|
|
|
|
if(m_missionProfileArnHasBeenSet)
|
|
{
|
|
payload.WithString("missionProfileArn", m_missionProfileArn);
|
|
|
|
}
|
|
|
|
if(m_satelliteArnHasBeenSet)
|
|
{
|
|
payload.WithString("satelliteArn", m_satelliteArn);
|
|
|
|
}
|
|
|
|
if(m_startTimeHasBeenSet)
|
|
{
|
|
payload.WithDouble("startTime", m_startTime.SecondsWithMSPrecision());
|
|
}
|
|
|
|
if(m_tagsHasBeenSet)
|
|
{
|
|
JsonValue tagsJsonMap;
|
|
for(auto& tagsItem : m_tags)
|
|
{
|
|
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
|
|
}
|
|
payload.WithObject("tags", std::move(tagsJsonMap));
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
|
|
|
|
|