65 lines
1.3 KiB
C++
65 lines
1.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/states/model/UpdateStateMachineRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::SFN::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
UpdateStateMachineRequest::UpdateStateMachineRequest() :
|
|
m_stateMachineArnHasBeenSet(false),
|
|
m_definitionHasBeenSet(false),
|
|
m_roleArnHasBeenSet(false),
|
|
m_loggingConfigurationHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String UpdateStateMachineRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_stateMachineArnHasBeenSet)
|
|
{
|
|
payload.WithString("stateMachineArn", m_stateMachineArn);
|
|
|
|
}
|
|
|
|
if(m_definitionHasBeenSet)
|
|
{
|
|
payload.WithString("definition", m_definition);
|
|
|
|
}
|
|
|
|
if(m_roleArnHasBeenSet)
|
|
{
|
|
payload.WithString("roleArn", m_roleArn);
|
|
|
|
}
|
|
|
|
if(m_loggingConfigurationHasBeenSet)
|
|
{
|
|
payload.WithObject("loggingConfiguration", m_loggingConfiguration.Jsonize());
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
Aws::Http::HeaderValueCollection UpdateStateMachineRequest::GetRequestSpecificHeaders() const
|
|
{
|
|
Aws::Http::HeaderValueCollection headers;
|
|
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSStepFunctions.UpdateStateMachine"));
|
|
return headers;
|
|
|
|
}
|
|
|
|
|
|
|
|
|