/** * 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 AmplifyUIBuilder { namespace Model { ComponentPropertyBindingProperties::ComponentPropertyBindingProperties() : m_propertyHasBeenSet(false), m_fieldHasBeenSet(false) { } ComponentPropertyBindingProperties::ComponentPropertyBindingProperties(JsonView jsonValue) : m_propertyHasBeenSet(false), m_fieldHasBeenSet(false) { *this = jsonValue; } ComponentPropertyBindingProperties& ComponentPropertyBindingProperties::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("property")) { m_property = jsonValue.GetString("property"); m_propertyHasBeenSet = true; } if(jsonValue.ValueExists("field")) { m_field = jsonValue.GetString("field"); m_fieldHasBeenSet = true; } return *this; } JsonValue ComponentPropertyBindingProperties::Jsonize() const { JsonValue payload; if(m_propertyHasBeenSet) { payload.WithString("property", m_property); } if(m_fieldHasBeenSet) { payload.WithString("field", m_field); } return payload; } } // namespace Model } // namespace AmplifyUIBuilder } // namespace Aws