This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-swf/source/model/WorkflowExecutionSignaledEventAttributes.cpp

107 lines
2.3 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/swf/model/WorkflowExecutionSignaledEventAttributes.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace SWF
{
namespace Model
{
WorkflowExecutionSignaledEventAttributes::WorkflowExecutionSignaledEventAttributes() :
m_signalNameHasBeenSet(false),
m_inputHasBeenSet(false),
m_externalWorkflowExecutionHasBeenSet(false),
m_externalInitiatedEventId(0),
m_externalInitiatedEventIdHasBeenSet(false)
{
}
WorkflowExecutionSignaledEventAttributes::WorkflowExecutionSignaledEventAttributes(JsonView jsonValue) :
m_signalNameHasBeenSet(false),
m_inputHasBeenSet(false),
m_externalWorkflowExecutionHasBeenSet(false),
m_externalInitiatedEventId(0),
m_externalInitiatedEventIdHasBeenSet(false)
{
*this = jsonValue;
}
WorkflowExecutionSignaledEventAttributes& WorkflowExecutionSignaledEventAttributes::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("signalName"))
{
m_signalName = jsonValue.GetString("signalName");
m_signalNameHasBeenSet = true;
}
if(jsonValue.ValueExists("input"))
{
m_input = jsonValue.GetString("input");
m_inputHasBeenSet = true;
}
if(jsonValue.ValueExists("externalWorkflowExecution"))
{
m_externalWorkflowExecution = jsonValue.GetObject("externalWorkflowExecution");
m_externalWorkflowExecutionHasBeenSet = true;
}
if(jsonValue.ValueExists("externalInitiatedEventId"))
{
m_externalInitiatedEventId = jsonValue.GetInt64("externalInitiatedEventId");
m_externalInitiatedEventIdHasBeenSet = true;
}
return *this;
}
JsonValue WorkflowExecutionSignaledEventAttributes::Jsonize() const
{
JsonValue payload;
if(m_signalNameHasBeenSet)
{
payload.WithString("signalName", m_signalName);
}
if(m_inputHasBeenSet)
{
payload.WithString("input", m_input);
}
if(m_externalWorkflowExecutionHasBeenSet)
{
payload.WithObject("externalWorkflowExecution", m_externalWorkflowExecution.Jsonize());
}
if(m_externalInitiatedEventIdHasBeenSet)
{
payload.WithInt64("externalInitiatedEventId", m_externalInitiatedEventId);
}
return payload;
}
} // namespace Model
} // namespace SWF
} // namespace Aws