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-signer/source/model/SignedObject.cpp

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