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