/** * 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 NetworkManager { namespace Model { RouteAnalysisEndpointOptionsSpecification::RouteAnalysisEndpointOptionsSpecification() : m_transitGatewayAttachmentArnHasBeenSet(false), m_ipAddressHasBeenSet(false) { } RouteAnalysisEndpointOptionsSpecification::RouteAnalysisEndpointOptionsSpecification(JsonView jsonValue) : m_transitGatewayAttachmentArnHasBeenSet(false), m_ipAddressHasBeenSet(false) { *this = jsonValue; } RouteAnalysisEndpointOptionsSpecification& RouteAnalysisEndpointOptionsSpecification::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("TransitGatewayAttachmentArn")) { m_transitGatewayAttachmentArn = jsonValue.GetString("TransitGatewayAttachmentArn"); m_transitGatewayAttachmentArnHasBeenSet = true; } if(jsonValue.ValueExists("IpAddress")) { m_ipAddress = jsonValue.GetString("IpAddress"); m_ipAddressHasBeenSet = true; } return *this; } JsonValue RouteAnalysisEndpointOptionsSpecification::Jsonize() const { JsonValue payload; if(m_transitGatewayAttachmentArnHasBeenSet) { payload.WithString("TransitGatewayAttachmentArn", m_transitGatewayAttachmentArn); } if(m_ipAddressHasBeenSet) { payload.WithString("IpAddress", m_ipAddress); } return payload; } } // namespace Model } // namespace NetworkManager } // namespace Aws