/** * 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; GetClusterSessionCredentialsRequest::GetClusterSessionCredentialsRequest() : m_clusterIdHasBeenSet(false), m_executionRoleArnHasBeenSet(false) { } Aws::String GetClusterSessionCredentialsRequest::SerializePayload() const { JsonValue payload; if(m_clusterIdHasBeenSet) { payload.WithString("ClusterId", m_clusterId); } if(m_executionRoleArnHasBeenSet) { payload.WithString("ExecutionRoleArn", m_executionRoleArn); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection GetClusterSessionCredentialsRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ElasticMapReduce.GetClusterSessionCredentials")); return headers; }