/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::SFN::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; PublishStateMachineVersionRequest::PublishStateMachineVersionRequest() : m_stateMachineArnHasBeenSet(false), m_revisionIdHasBeenSet(false), m_descriptionHasBeenSet(false) { } Aws::String PublishStateMachineVersionRequest::SerializePayload() const { JsonValue payload; if(m_stateMachineArnHasBeenSet) { payload.WithString("stateMachineArn", m_stateMachineArn); } if(m_revisionIdHasBeenSet) { payload.WithString("revisionId", m_revisionId); } if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection PublishStateMachineVersionRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSStepFunctions.PublishStateMachineVersion")); return headers; }