/** * 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 GameSparks { namespace Model { SnapshotSummary::SnapshotSummary() : m_createdHasBeenSet(false), m_descriptionHasBeenSet(false), m_idHasBeenSet(false), m_lastUpdatedHasBeenSet(false) { } SnapshotSummary::SnapshotSummary(JsonView jsonValue) : m_createdHasBeenSet(false), m_descriptionHasBeenSet(false), m_idHasBeenSet(false), m_lastUpdatedHasBeenSet(false) { *this = jsonValue; } SnapshotSummary& SnapshotSummary::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Created")) { m_created = jsonValue.GetString("Created"); m_createdHasBeenSet = true; } if(jsonValue.ValueExists("Description")) { m_description = jsonValue.GetString("Description"); m_descriptionHasBeenSet = true; } if(jsonValue.ValueExists("Id")) { m_id = jsonValue.GetString("Id"); m_idHasBeenSet = true; } if(jsonValue.ValueExists("LastUpdated")) { m_lastUpdated = jsonValue.GetString("LastUpdated"); m_lastUpdatedHasBeenSet = true; } return *this; } JsonValue SnapshotSummary::Jsonize() const { JsonValue payload; if(m_createdHasBeenSet) { payload.WithString("Created", m_created.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } if(m_idHasBeenSet) { payload.WithString("Id", m_id); } if(m_lastUpdatedHasBeenSet) { payload.WithString("LastUpdated", m_lastUpdated.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); } return payload; } } // namespace Model } // namespace GameSparks } // namespace Aws