/** * 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 NetworkManager { namespace Model { NetworkResourceCount::NetworkResourceCount() : m_resourceTypeHasBeenSet(false), m_count(0), m_countHasBeenSet(false) { } NetworkResourceCount::NetworkResourceCount(JsonView jsonValue) : m_resourceTypeHasBeenSet(false), m_count(0), m_countHasBeenSet(false) { *this = jsonValue; } NetworkResourceCount& NetworkResourceCount::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("ResourceType")) { m_resourceType = jsonValue.GetString("ResourceType"); m_resourceTypeHasBeenSet = true; } if(jsonValue.ValueExists("Count")) { m_count = jsonValue.GetInteger("Count"); m_countHasBeenSet = true; } return *this; } JsonValue NetworkResourceCount::Jsonize() const { JsonValue payload; if(m_resourceTypeHasBeenSet) { payload.WithString("ResourceType", m_resourceType); } if(m_countHasBeenSet) { payload.WithInteger("Count", m_count); } return payload; } } // namespace Model } // namespace NetworkManager } // namespace Aws