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