/** * 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 MainframeModernization { namespace Model { FsxStorageConfiguration::FsxStorageConfiguration() : m_fileSystemIdHasBeenSet(false), m_mountPointHasBeenSet(false) { } FsxStorageConfiguration::FsxStorageConfiguration(JsonView jsonValue) : m_fileSystemIdHasBeenSet(false), m_mountPointHasBeenSet(false) { *this = jsonValue; } FsxStorageConfiguration& FsxStorageConfiguration::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("file-system-id")) { m_fileSystemId = jsonValue.GetString("file-system-id"); m_fileSystemIdHasBeenSet = true; } if(jsonValue.ValueExists("mount-point")) { m_mountPoint = jsonValue.GetString("mount-point"); m_mountPointHasBeenSet = true; } return *this; } JsonValue FsxStorageConfiguration::Jsonize() const { JsonValue payload; if(m_fileSystemIdHasBeenSet) { payload.WithString("file-system-id", m_fileSystemId); } if(m_mountPointHasBeenSet) { payload.WithString("mount-point", m_mountPoint); } return payload; } } // namespace Model } // namespace MainframeModernization } // namespace Aws