/** * 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 ServiceCatalog { namespace Model { ResourceDetail::ResourceDetail() : m_idHasBeenSet(false), m_aRNHasBeenSet(false), m_nameHasBeenSet(false), m_descriptionHasBeenSet(false), m_createdTimeHasBeenSet(false) { } ResourceDetail::ResourceDetail(JsonView jsonValue) : m_idHasBeenSet(false), m_aRNHasBeenSet(false), m_nameHasBeenSet(false), m_descriptionHasBeenSet(false), m_createdTimeHasBeenSet(false) { *this = jsonValue; } ResourceDetail& ResourceDetail::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Id")) { m_id = jsonValue.GetString("Id"); m_idHasBeenSet = true; } if(jsonValue.ValueExists("ARN")) { m_aRN = jsonValue.GetString("ARN"); m_aRNHasBeenSet = true; } if(jsonValue.ValueExists("Name")) { m_name = jsonValue.GetString("Name"); m_nameHasBeenSet = true; } if(jsonValue.ValueExists("Description")) { m_description = jsonValue.GetString("Description"); m_descriptionHasBeenSet = true; } if(jsonValue.ValueExists("CreatedTime")) { m_createdTime = jsonValue.GetDouble("CreatedTime"); m_createdTimeHasBeenSet = true; } return *this; } JsonValue ResourceDetail::Jsonize() const { JsonValue payload; if(m_idHasBeenSet) { payload.WithString("Id", m_id); } if(m_aRNHasBeenSet) { payload.WithString("ARN", m_aRN); } if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } if(m_createdTimeHasBeenSet) { payload.WithDouble("CreatedTime", m_createdTime.SecondsWithMSPrecision()); } return payload; } } // namespace Model } // namespace ServiceCatalog } // namespace Aws