/** * 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 { ContactList::ContactList() : m_contactListNameHasBeenSet(false), m_lastUpdatedTimestampHasBeenSet(false) { } ContactList::ContactList(JsonView jsonValue) : m_contactListNameHasBeenSet(false), m_lastUpdatedTimestampHasBeenSet(false) { *this = jsonValue; } ContactList& ContactList::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("ContactListName")) { m_contactListName = jsonValue.GetString("ContactListName"); m_contactListNameHasBeenSet = true; } if(jsonValue.ValueExists("LastUpdatedTimestamp")) { m_lastUpdatedTimestamp = jsonValue.GetDouble("LastUpdatedTimestamp"); m_lastUpdatedTimestampHasBeenSet = true; } return *this; } JsonValue ContactList::Jsonize() const { JsonValue payload; if(m_contactListNameHasBeenSet) { payload.WithString("ContactListName", m_contactListName); } if(m_lastUpdatedTimestampHasBeenSet) { payload.WithDouble("LastUpdatedTimestamp", m_lastUpdatedTimestamp.SecondsWithMSPrecision()); } return payload; } } // namespace Model } // namespace SESV2 } // namespace Aws