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