/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::CognitoSync::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; RegisterDeviceRequest::RegisterDeviceRequest() : m_identityPoolIdHasBeenSet(false), m_identityIdHasBeenSet(false), m_platform(Platform::NOT_SET), m_platformHasBeenSet(false), m_tokenHasBeenSet(false) { } Aws::String RegisterDeviceRequest::SerializePayload() const { JsonValue payload; if(m_platformHasBeenSet) { payload.WithString("Platform", PlatformMapper::GetNameForPlatform(m_platform)); } if(m_tokenHasBeenSet) { payload.WithString("Token", m_token); } return payload.View().WriteReadable(); }