/** * 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 DynamoDB { namespace Model { ReplicationGroupUpdate::ReplicationGroupUpdate() : m_createHasBeenSet(false), m_updateHasBeenSet(false), m_deleteHasBeenSet(false) { } ReplicationGroupUpdate::ReplicationGroupUpdate(JsonView jsonValue) : m_createHasBeenSet(false), m_updateHasBeenSet(false), m_deleteHasBeenSet(false) { *this = jsonValue; } ReplicationGroupUpdate& ReplicationGroupUpdate::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Create")) { m_create = jsonValue.GetObject("Create"); m_createHasBeenSet = true; } if(jsonValue.ValueExists("Update")) { m_update = jsonValue.GetObject("Update"); m_updateHasBeenSet = true; } if(jsonValue.ValueExists("Delete")) { m_delete = jsonValue.GetObject("Delete"); m_deleteHasBeenSet = true; } return *this; } JsonValue ReplicationGroupUpdate::Jsonize() const { JsonValue payload; if(m_createHasBeenSet) { payload.WithObject("Create", m_create.Jsonize()); } if(m_updateHasBeenSet) { payload.WithObject("Update", m_update.Jsonize()); } if(m_deleteHasBeenSet) { payload.WithObject("Delete", m_delete.Jsonize()); } return payload; } } // namespace Model } // namespace DynamoDB } // namespace Aws