1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #include <aws/glue/model/OtherMetadataValueListItem.h> 7 #include <aws/core/utils/json/JsonSerializer.h> 8 9 #include <utility> 10 11 using namespace Aws::Utils::Json; 12 using namespace Aws::Utils; 13 14 namespace Aws 15 { 16 namespace Glue 17 { 18 namespace Model 19 { 20 OtherMetadataValueListItem()21OtherMetadataValueListItem::OtherMetadataValueListItem() : 22 m_metadataValueHasBeenSet(false), 23 m_createdTimeHasBeenSet(false) 24 { 25 } 26 OtherMetadataValueListItem(JsonView jsonValue)27OtherMetadataValueListItem::OtherMetadataValueListItem(JsonView jsonValue) : 28 m_metadataValueHasBeenSet(false), 29 m_createdTimeHasBeenSet(false) 30 { 31 *this = jsonValue; 32 } 33 operator =(JsonView jsonValue)34OtherMetadataValueListItem& OtherMetadataValueListItem::operator =(JsonView jsonValue) 35 { 36 if(jsonValue.ValueExists("MetadataValue")) 37 { 38 m_metadataValue = jsonValue.GetString("MetadataValue"); 39 40 m_metadataValueHasBeenSet = true; 41 } 42 43 if(jsonValue.ValueExists("CreatedTime")) 44 { 45 m_createdTime = jsonValue.GetString("CreatedTime"); 46 47 m_createdTimeHasBeenSet = true; 48 } 49 50 return *this; 51 } 52 Jsonize() const53JsonValue OtherMetadataValueListItem::Jsonize() const 54 { 55 JsonValue payload; 56 57 if(m_metadataValueHasBeenSet) 58 { 59 payload.WithString("MetadataValue", m_metadataValue); 60 61 } 62 63 if(m_createdTimeHasBeenSet) 64 { 65 payload.WithString("CreatedTime", m_createdTime); 66 67 } 68 69 return payload; 70 } 71 72 } // namespace Model 73 } // namespace Glue 74 } // namespace Aws 75