/** * 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 SageMakerGeospatial { namespace Model { ListVectorEnrichmentJobOutputConfig::ListVectorEnrichmentJobOutputConfig() : m_arnHasBeenSet(false), m_creationTimeHasBeenSet(false), m_durationInSeconds(0), m_durationInSecondsHasBeenSet(false), m_nameHasBeenSet(false), m_status(VectorEnrichmentJobStatus::NOT_SET), m_statusHasBeenSet(false), m_tagsHasBeenSet(false), m_type(VectorEnrichmentJobType::NOT_SET), m_typeHasBeenSet(false) { } ListVectorEnrichmentJobOutputConfig::ListVectorEnrichmentJobOutputConfig(JsonView jsonValue) : m_arnHasBeenSet(false), m_creationTimeHasBeenSet(false), m_durationInSeconds(0), m_durationInSecondsHasBeenSet(false), m_nameHasBeenSet(false), m_status(VectorEnrichmentJobStatus::NOT_SET), m_statusHasBeenSet(false), m_tagsHasBeenSet(false), m_type(VectorEnrichmentJobType::NOT_SET), m_typeHasBeenSet(false) { *this = jsonValue; } ListVectorEnrichmentJobOutputConfig& ListVectorEnrichmentJobOutputConfig::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Arn")) { m_arn = jsonValue.GetString("Arn"); m_arnHasBeenSet = true; } if(jsonValue.ValueExists("CreationTime")) { m_creationTime = jsonValue.GetString("CreationTime"); m_creationTimeHasBeenSet = true; } if(jsonValue.ValueExists("DurationInSeconds")) { m_durationInSeconds = jsonValue.GetInteger("DurationInSeconds"); m_durationInSecondsHasBeenSet = true; } if(jsonValue.ValueExists("Name")) { m_name = jsonValue.GetString("Name"); m_nameHasBeenSet = true; } if(jsonValue.ValueExists("Status")) { m_status = VectorEnrichmentJobStatusMapper::GetVectorEnrichmentJobStatusForName(jsonValue.GetString("Status")); m_statusHasBeenSet = true; } if(jsonValue.ValueExists("Tags")) { Aws::Map tagsJsonMap = jsonValue.GetObject("Tags").GetAllObjects(); for(auto& tagsItem : tagsJsonMap) { m_tags[tagsItem.first] = tagsItem.second.AsString(); } m_tagsHasBeenSet = true; } if(jsonValue.ValueExists("Type")) { m_type = VectorEnrichmentJobTypeMapper::GetVectorEnrichmentJobTypeForName(jsonValue.GetString("Type")); m_typeHasBeenSet = true; } return *this; } JsonValue ListVectorEnrichmentJobOutputConfig::Jsonize() const { JsonValue payload; if(m_arnHasBeenSet) { payload.WithString("Arn", m_arn); } if(m_creationTimeHasBeenSet) { payload.WithString("CreationTime", m_creationTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); } if(m_durationInSecondsHasBeenSet) { payload.WithInteger("DurationInSeconds", m_durationInSeconds); } if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_statusHasBeenSet) { payload.WithString("Status", VectorEnrichmentJobStatusMapper::GetNameForVectorEnrichmentJobStatus(m_status)); } if(m_tagsHasBeenSet) { JsonValue tagsJsonMap; for(auto& tagsItem : m_tags) { tagsJsonMap.WithString(tagsItem.first, tagsItem.second); } payload.WithObject("Tags", std::move(tagsJsonMap)); } if(m_typeHasBeenSet) { payload.WithString("Type", VectorEnrichmentJobTypeMapper::GetNameForVectorEnrichmentJobType(m_type)); } return payload; } } // namespace Model } // namespace SageMakerGeospatial } // namespace Aws