/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::EMR::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateStudioRequest::UpdateStudioRequest() : m_studioIdHasBeenSet(false), m_nameHasBeenSet(false), m_descriptionHasBeenSet(false), m_subnetIdsHasBeenSet(false), m_defaultS3LocationHasBeenSet(false) { } Aws::String UpdateStudioRequest::SerializePayload() const { JsonValue payload; if(m_studioIdHasBeenSet) { payload.WithString("StudioId", m_studioId); } if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } if(m_subnetIdsHasBeenSet) { Aws::Utils::Array subnetIdsJsonList(m_subnetIds.size()); for(unsigned subnetIdsIndex = 0; subnetIdsIndex < subnetIdsJsonList.GetLength(); ++subnetIdsIndex) { subnetIdsJsonList[subnetIdsIndex].AsString(m_subnetIds[subnetIdsIndex]); } payload.WithArray("SubnetIds", std::move(subnetIdsJsonList)); } if(m_defaultS3LocationHasBeenSet) { payload.WithString("DefaultS3Location", m_defaultS3Location); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection UpdateStudioRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ElasticMapReduce.UpdateStudio")); return headers; }