This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-rekognition/source/model/StartFaceSearchRequest.cpp

80 lines
1.6 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/rekognition/model/StartFaceSearchRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Rekognition::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
StartFaceSearchRequest::StartFaceSearchRequest() :
m_videoHasBeenSet(false),
m_clientRequestTokenHasBeenSet(false),
m_faceMatchThreshold(0.0),
m_faceMatchThresholdHasBeenSet(false),
m_collectionIdHasBeenSet(false),
m_notificationChannelHasBeenSet(false),
m_jobTagHasBeenSet(false)
{
}
Aws::String StartFaceSearchRequest::SerializePayload() const
{
JsonValue payload;
if(m_videoHasBeenSet)
{
payload.WithObject("Video", m_video.Jsonize());
}
if(m_clientRequestTokenHasBeenSet)
{
payload.WithString("ClientRequestToken", m_clientRequestToken);
}
if(m_faceMatchThresholdHasBeenSet)
{
payload.WithDouble("FaceMatchThreshold", m_faceMatchThreshold);
}
if(m_collectionIdHasBeenSet)
{
payload.WithString("CollectionId", m_collectionId);
}
if(m_notificationChannelHasBeenSet)
{
payload.WithObject("NotificationChannel", m_notificationChannel.Jsonize());
}
if(m_jobTagHasBeenSet)
{
payload.WithString("JobTag", m_jobTag);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection StartFaceSearchRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "RekognitionService.StartFaceSearch"));
return headers;
}