/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::CloudControlApi::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; CreateResourceRequest::CreateResourceRequest() : m_typeNameHasBeenSet(false), m_typeVersionIdHasBeenSet(false), m_roleArnHasBeenSet(false), m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true), m_desiredStateHasBeenSet(false) { } Aws::String CreateResourceRequest::SerializePayload() const { JsonValue payload; if(m_typeNameHasBeenSet) { payload.WithString("TypeName", m_typeName); } if(m_typeVersionIdHasBeenSet) { payload.WithString("TypeVersionId", m_typeVersionId); } if(m_roleArnHasBeenSet) { payload.WithString("RoleArn", m_roleArn); } if(m_clientTokenHasBeenSet) { payload.WithString("ClientToken", m_clientToken); } if(m_desiredStateHasBeenSet) { payload.WithString("DesiredState", m_desiredState); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection CreateResourceRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "CloudApiService.CreateResource")); return headers; }