60 lines
941 B
C++
60 lines
941 B
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/rekognition/model/Video.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Rekognition
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
Video::Video() :
|
|
m_s3ObjectHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Video::Video(JsonView jsonValue) :
|
|
m_s3ObjectHasBeenSet(false)
|
|
{
|
|
*this = jsonValue;
|
|
}
|
|
|
|
Video& Video::operator =(JsonView jsonValue)
|
|
{
|
|
if(jsonValue.ValueExists("S3Object"))
|
|
{
|
|
m_s3Object = jsonValue.GetObject("S3Object");
|
|
|
|
m_s3ObjectHasBeenSet = true;
|
|
}
|
|
|
|
return *this;
|
|
}
|
|
|
|
JsonValue Video::Jsonize() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_s3ObjectHasBeenSet)
|
|
{
|
|
payload.WithObject("S3Object", m_s3Object.Jsonize());
|
|
|
|
}
|
|
|
|
return payload;
|
|
}
|
|
|
|
} // namespace Model
|
|
} // namespace Rekognition
|
|
} // namespace Aws
|