/** * 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 { ImportDestination::ImportDestination() : m_suppressionListDestinationHasBeenSet(false), m_contactListDestinationHasBeenSet(false) { } ImportDestination::ImportDestination(JsonView jsonValue) : m_suppressionListDestinationHasBeenSet(false), m_contactListDestinationHasBeenSet(false) { *this = jsonValue; } ImportDestination& ImportDestination::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("SuppressionListDestination")) { m_suppressionListDestination = jsonValue.GetObject("SuppressionListDestination"); m_suppressionListDestinationHasBeenSet = true; } if(jsonValue.ValueExists("ContactListDestination")) { m_contactListDestination = jsonValue.GetObject("ContactListDestination"); m_contactListDestinationHasBeenSet = true; } return *this; } JsonValue ImportDestination::Jsonize() const { JsonValue payload; if(m_suppressionListDestinationHasBeenSet) { payload.WithObject("SuppressionListDestination", m_suppressionListDestination.Jsonize()); } if(m_contactListDestinationHasBeenSet) { payload.WithObject("ContactListDestination", m_contactListDestination.Jsonize()); } return payload; } } // namespace Model } // namespace SESV2 } // namespace Aws