1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #include <aws/securityhub/model/AwsEc2NetworkInterfaceIpV6AddressDetail.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 SecurityHub 17 { 18 namespace Model 19 { 20 AwsEc2NetworkInterfaceIpV6AddressDetail()21AwsEc2NetworkInterfaceIpV6AddressDetail::AwsEc2NetworkInterfaceIpV6AddressDetail() : 22 m_ipV6AddressHasBeenSet(false) 23 { 24 } 25 AwsEc2NetworkInterfaceIpV6AddressDetail(JsonView jsonValue)26AwsEc2NetworkInterfaceIpV6AddressDetail::AwsEc2NetworkInterfaceIpV6AddressDetail(JsonView jsonValue) : 27 m_ipV6AddressHasBeenSet(false) 28 { 29 *this = jsonValue; 30 } 31 operator =(JsonView jsonValue)32AwsEc2NetworkInterfaceIpV6AddressDetail& AwsEc2NetworkInterfaceIpV6AddressDetail::operator =(JsonView jsonValue) 33 { 34 if(jsonValue.ValueExists("IpV6Address")) 35 { 36 m_ipV6Address = jsonValue.GetString("IpV6Address"); 37 38 m_ipV6AddressHasBeenSet = true; 39 } 40 41 return *this; 42 } 43 Jsonize() const44JsonValue AwsEc2NetworkInterfaceIpV6AddressDetail::Jsonize() const 45 { 46 JsonValue payload; 47 48 if(m_ipV6AddressHasBeenSet) 49 { 50 payload.WithString("IpV6Address", m_ipV6Address); 51 52 } 53 54 return payload; 55 } 56 57 } // namespace Model 58 } // namespace SecurityHub 59 } // namespace Aws 60