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