/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include 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