/** * 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 Transfer { namespace Model { HomeDirectoryMapEntry::HomeDirectoryMapEntry() : m_entryHasBeenSet(false), m_targetHasBeenSet(false) { } HomeDirectoryMapEntry::HomeDirectoryMapEntry(JsonView jsonValue) : m_entryHasBeenSet(false), m_targetHasBeenSet(false) { *this = jsonValue; } HomeDirectoryMapEntry& HomeDirectoryMapEntry::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Entry")) { m_entry = jsonValue.GetString("Entry"); m_entryHasBeenSet = true; } if(jsonValue.ValueExists("Target")) { m_target = jsonValue.GetString("Target"); m_targetHasBeenSet = true; } return *this; } JsonValue HomeDirectoryMapEntry::Jsonize() const { JsonValue payload; if(m_entryHasBeenSet) { payload.WithString("Entry", m_entry); } if(m_targetHasBeenSet) { payload.WithString("Target", m_target); } return payload; } } // namespace Model } // namespace Transfer } // namespace Aws