/** * 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 AppRegistry { namespace Model { AttributeGroupDetails::AttributeGroupDetails() : m_idHasBeenSet(false), m_arnHasBeenSet(false), m_createdByHasBeenSet(false) { } AttributeGroupDetails::AttributeGroupDetails(JsonView jsonValue) : m_idHasBeenSet(false), m_arnHasBeenSet(false), m_createdByHasBeenSet(false) { *this = jsonValue; } AttributeGroupDetails& AttributeGroupDetails::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("createdBy")) { m_createdBy = jsonValue.GetString("createdBy"); m_createdByHasBeenSet = true; } return *this; } JsonValue AttributeGroupDetails::Jsonize() const { JsonValue payload; if(m_idHasBeenSet) { payload.WithString("id", m_id); } if(m_arnHasBeenSet) { payload.WithString("arn", m_arn); } if(m_createdByHasBeenSet) { payload.WithString("createdBy", m_createdBy); } return payload; } } // namespace Model } // namespace AppRegistry } // namespace Aws