/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::CloudWatchEvents::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateConnectionRequest::UpdateConnectionRequest() : m_nameHasBeenSet(false), m_descriptionHasBeenSet(false), m_authorizationType(ConnectionAuthorizationType::NOT_SET), m_authorizationTypeHasBeenSet(false), m_authParametersHasBeenSet(false) { } Aws::String UpdateConnectionRequest::SerializePayload() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } if(m_authorizationTypeHasBeenSet) { payload.WithString("AuthorizationType", ConnectionAuthorizationTypeMapper::GetNameForConnectionAuthorizationType(m_authorizationType)); } if(m_authParametersHasBeenSet) { payload.WithObject("AuthParameters", m_authParameters.Jsonize()); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection UpdateConnectionRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSEvents.UpdateConnection")); return headers; }