/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Appflow::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateConnectorProfileRequest::UpdateConnectorProfileRequest() : m_connectorProfileNameHasBeenSet(false), m_connectionMode(ConnectionMode::NOT_SET), m_connectionModeHasBeenSet(false), m_connectorProfileConfigHasBeenSet(false), m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true) { } Aws::String UpdateConnectorProfileRequest::SerializePayload() const { JsonValue payload; if(m_connectorProfileNameHasBeenSet) { payload.WithString("connectorProfileName", m_connectorProfileName); } if(m_connectionModeHasBeenSet) { payload.WithString("connectionMode", ConnectionModeMapper::GetNameForConnectionMode(m_connectionMode)); } if(m_connectorProfileConfigHasBeenSet) { payload.WithObject("connectorProfileConfig", m_connectorProfileConfig.Jsonize()); } if(m_clientTokenHasBeenSet) { payload.WithString("clientToken", m_clientToken); } return payload.View().WriteReadable(); }