/** * 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 AlexaForBusiness { namespace Model { Category::Category() : m_categoryId(0), m_categoryIdHasBeenSet(false), m_categoryNameHasBeenSet(false) { } Category::Category(JsonView jsonValue) : m_categoryId(0), m_categoryIdHasBeenSet(false), m_categoryNameHasBeenSet(false) { *this = jsonValue; } Category& Category::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("CategoryId")) { m_categoryId = jsonValue.GetInt64("CategoryId"); m_categoryIdHasBeenSet = true; } if(jsonValue.ValueExists("CategoryName")) { m_categoryName = jsonValue.GetString("CategoryName"); m_categoryNameHasBeenSet = true; } return *this; } JsonValue Category::Jsonize() const { JsonValue payload; if(m_categoryIdHasBeenSet) { payload.WithInt64("CategoryId", m_categoryId); } if(m_categoryNameHasBeenSet) { payload.WithString("CategoryName", m_categoryName); } return payload; } } // namespace Model } // namespace AlexaForBusiness } // namespace Aws