/** * 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 AppMesh { namespace Model { MeshStatus::MeshStatus() : m_status(MeshStatusCode::NOT_SET), m_statusHasBeenSet(false) { } MeshStatus::MeshStatus(JsonView jsonValue) : m_status(MeshStatusCode::NOT_SET), m_statusHasBeenSet(false) { *this = jsonValue; } MeshStatus& MeshStatus::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("status")) { m_status = MeshStatusCodeMapper::GetMeshStatusCodeForName(jsonValue.GetString("status")); m_statusHasBeenSet = true; } return *this; } JsonValue MeshStatus::Jsonize() const { JsonValue payload; if(m_statusHasBeenSet) { payload.WithString("status", MeshStatusCodeMapper::GetNameForMeshStatusCode(m_status)); } return payload; } } // namespace Model } // namespace AppMesh } // namespace Aws