/** * 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 Omics { namespace Model { AnnotationImportItemDetail::AnnotationImportItemDetail() : m_sourceHasBeenSet(false), m_jobStatus(JobStatus::NOT_SET), m_jobStatusHasBeenSet(false) { } AnnotationImportItemDetail::AnnotationImportItemDetail(JsonView jsonValue) : m_sourceHasBeenSet(false), m_jobStatus(JobStatus::NOT_SET), m_jobStatusHasBeenSet(false) { *this = jsonValue; } AnnotationImportItemDetail& AnnotationImportItemDetail::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("source")) { m_source = jsonValue.GetString("source"); m_sourceHasBeenSet = true; } if(jsonValue.ValueExists("jobStatus")) { m_jobStatus = JobStatusMapper::GetJobStatusForName(jsonValue.GetString("jobStatus")); m_jobStatusHasBeenSet = true; } return *this; } JsonValue AnnotationImportItemDetail::Jsonize() const { JsonValue payload; if(m_sourceHasBeenSet) { payload.WithString("source", m_source); } if(m_jobStatusHasBeenSet) { payload.WithString("jobStatus", JobStatusMapper::GetNameForJobStatus(m_jobStatus)); } return payload; } } // namespace Model } // namespace Omics } // namespace Aws