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-sesv2/source/model/RawMessage.cpp

59 lines
1012 B
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sesv2/model/RawMessage.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/utils/HashingUtils.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace SESV2
{
namespace Model
{
RawMessage::RawMessage() :
m_dataHasBeenSet(false)
{
}
RawMessage::RawMessage(JsonView jsonValue) :
m_dataHasBeenSet(false)
{
*this = jsonValue;
}
RawMessage& RawMessage::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Data"))
{
m_data = HashingUtils::Base64Decode(jsonValue.GetString("Data"));
m_dataHasBeenSet = true;
}
return *this;
}
JsonValue RawMessage::Jsonize() const
{
JsonValue payload;
if(m_dataHasBeenSet)
{
payload.WithString("Data", HashingUtils::Base64Encode(m_data));
}
return payload;
}
} // namespace Model
} // namespace SESV2
} // namespace Aws