/** * 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 IoTSiteWise { namespace Model { BatchGetAssetPropertyValueHistorySkippedEntry::BatchGetAssetPropertyValueHistorySkippedEntry() : m_entryIdHasBeenSet(false), m_completionStatus(BatchEntryCompletionStatus::NOT_SET), m_completionStatusHasBeenSet(false), m_errorInfoHasBeenSet(false) { } BatchGetAssetPropertyValueHistorySkippedEntry::BatchGetAssetPropertyValueHistorySkippedEntry(JsonView jsonValue) : m_entryIdHasBeenSet(false), m_completionStatus(BatchEntryCompletionStatus::NOT_SET), m_completionStatusHasBeenSet(false), m_errorInfoHasBeenSet(false) { *this = jsonValue; } BatchGetAssetPropertyValueHistorySkippedEntry& BatchGetAssetPropertyValueHistorySkippedEntry::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("entryId")) { m_entryId = jsonValue.GetString("entryId"); m_entryIdHasBeenSet = true; } if(jsonValue.ValueExists("completionStatus")) { m_completionStatus = BatchEntryCompletionStatusMapper::GetBatchEntryCompletionStatusForName(jsonValue.GetString("completionStatus")); m_completionStatusHasBeenSet = true; } if(jsonValue.ValueExists("errorInfo")) { m_errorInfo = jsonValue.GetObject("errorInfo"); m_errorInfoHasBeenSet = true; } return *this; } JsonValue BatchGetAssetPropertyValueHistorySkippedEntry::Jsonize() const { JsonValue payload; if(m_entryIdHasBeenSet) { payload.WithString("entryId", m_entryId); } if(m_completionStatusHasBeenSet) { payload.WithString("completionStatus", BatchEntryCompletionStatusMapper::GetNameForBatchEntryCompletionStatus(m_completionStatus)); } if(m_errorInfoHasBeenSet) { payload.WithObject("errorInfo", m_errorInfo.Jsonize()); } return payload; } } // namespace Model } // namespace IoTSiteWise } // namespace Aws