/** * 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 MediaConnect { namespace Model { BridgeFlowSource::BridgeFlowSource() : m_flowArnHasBeenSet(false), m_flowVpcInterfaceAttachmentHasBeenSet(false), m_nameHasBeenSet(false), m_outputArnHasBeenSet(false) { } BridgeFlowSource::BridgeFlowSource(JsonView jsonValue) : m_flowArnHasBeenSet(false), m_flowVpcInterfaceAttachmentHasBeenSet(false), m_nameHasBeenSet(false), m_outputArnHasBeenSet(false) { *this = jsonValue; } BridgeFlowSource& BridgeFlowSource::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("flowArn")) { m_flowArn = jsonValue.GetString("flowArn"); m_flowArnHasBeenSet = true; } if(jsonValue.ValueExists("flowVpcInterfaceAttachment")) { m_flowVpcInterfaceAttachment = jsonValue.GetObject("flowVpcInterfaceAttachment"); m_flowVpcInterfaceAttachmentHasBeenSet = true; } if(jsonValue.ValueExists("name")) { m_name = jsonValue.GetString("name"); m_nameHasBeenSet = true; } if(jsonValue.ValueExists("outputArn")) { m_outputArn = jsonValue.GetString("outputArn"); m_outputArnHasBeenSet = true; } return *this; } JsonValue BridgeFlowSource::Jsonize() const { JsonValue payload; if(m_flowArnHasBeenSet) { payload.WithString("flowArn", m_flowArn); } if(m_flowVpcInterfaceAttachmentHasBeenSet) { payload.WithObject("flowVpcInterfaceAttachment", m_flowVpcInterfaceAttachment.Jsonize()); } if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_outputArnHasBeenSet) { payload.WithString("outputArn", m_outputArn); } return payload; } } // namespace Model } // namespace MediaConnect } // namespace Aws