/** * 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 SnowDeviceManagement { namespace Model { ResourceSummary::ResourceSummary() : m_arnHasBeenSet(false), m_idHasBeenSet(false), m_resourceTypeHasBeenSet(false) { } ResourceSummary::ResourceSummary(JsonView jsonValue) : m_arnHasBeenSet(false), m_idHasBeenSet(false), m_resourceTypeHasBeenSet(false) { *this = jsonValue; } ResourceSummary& ResourceSummary::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("arn")) { m_arn = jsonValue.GetString("arn"); m_arnHasBeenSet = true; } if(jsonValue.ValueExists("id")) { m_id = jsonValue.GetString("id"); m_idHasBeenSet = true; } if(jsonValue.ValueExists("resourceType")) { m_resourceType = jsonValue.GetString("resourceType"); m_resourceTypeHasBeenSet = true; } return *this; } JsonValue ResourceSummary::Jsonize() const { JsonValue payload; if(m_arnHasBeenSet) { payload.WithString("arn", m_arn); } if(m_idHasBeenSet) { payload.WithString("id", m_id); } if(m_resourceTypeHasBeenSet) { payload.WithString("resourceType", m_resourceType); } return payload; } } // namespace Model } // namespace SnowDeviceManagement } // namespace Aws