/** * 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 VerifiedPermissions { namespace Model { PolicyDefinitionItem::PolicyDefinitionItem() : m_staticHasBeenSet(false), m_templateLinkedHasBeenSet(false) { } PolicyDefinitionItem::PolicyDefinitionItem(JsonView jsonValue) : m_staticHasBeenSet(false), m_templateLinkedHasBeenSet(false) { *this = jsonValue; } PolicyDefinitionItem& PolicyDefinitionItem::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("static")) { m_static = jsonValue.GetObject("static"); m_staticHasBeenSet = true; } if(jsonValue.ValueExists("templateLinked")) { m_templateLinked = jsonValue.GetObject("templateLinked"); m_templateLinkedHasBeenSet = true; } return *this; } JsonValue PolicyDefinitionItem::Jsonize() const { JsonValue payload; if(m_staticHasBeenSet) { payload.WithObject("static", m_static.Jsonize()); } if(m_templateLinkedHasBeenSet) { payload.WithObject("templateLinked", m_templateLinked.Jsonize()); } return payload; } } // namespace Model } // namespace VerifiedPermissions } // namespace Aws