/** * 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 Honeycode { namespace Model { FailedBatchItem::FailedBatchItem() : m_idHasBeenSet(false), m_errorMessageHasBeenSet(false) { } FailedBatchItem::FailedBatchItem(JsonView jsonValue) : m_idHasBeenSet(false), m_errorMessageHasBeenSet(false) { *this = jsonValue; } FailedBatchItem& FailedBatchItem::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("id")) { m_id = jsonValue.GetString("id"); m_idHasBeenSet = true; } if(jsonValue.ValueExists("errorMessage")) { m_errorMessage = jsonValue.GetString("errorMessage"); m_errorMessageHasBeenSet = true; } return *this; } JsonValue FailedBatchItem::Jsonize() const { JsonValue payload; if(m_idHasBeenSet) { payload.WithString("id", m_id); } if(m_errorMessageHasBeenSet) { payload.WithString("errorMessage", m_errorMessage); } return payload; } } // namespace Model } // namespace Honeycode } // namespace Aws