/** * 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 IdentityStore { namespace Model { AttributeOperation::AttributeOperation() : m_attributePathHasBeenSet(false), m_attributeValueHasBeenSet(false) { } AttributeOperation::AttributeOperation(JsonView jsonValue) : m_attributePathHasBeenSet(false), m_attributeValueHasBeenSet(false) { *this = jsonValue; } AttributeOperation& AttributeOperation::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("AttributePath")) { m_attributePath = jsonValue.GetString("AttributePath"); m_attributePathHasBeenSet = true; } if(jsonValue.ValueExists("AttributeValue")) { m_attributeValue = jsonValue.GetObject("AttributeValue"); m_attributeValueHasBeenSet = true; } return *this; } JsonValue AttributeOperation::Jsonize() const { JsonValue payload; if(m_attributePathHasBeenSet) { payload.WithString("AttributePath", m_attributePath); } if(m_attributeValueHasBeenSet) { if(!m_attributeValue.View().IsNull()) { payload.WithObject("AttributeValue", JsonValue(m_attributeValue.View())); } } return payload; } } // namespace Model } // namespace IdentityStore } // namespace Aws