92 lines
2.0 KiB
C++
92 lines
2.0 KiB
C++
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#include <aws/swf/model/ChildWorkflowExecutionStartedEventAttributes.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
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
ChildWorkflowExecutionStartedEventAttributes::ChildWorkflowExecutionStartedEventAttributes() :
|
|||
|
|
m_workflowExecutionHasBeenSet(false),
|
|||
|
|
m_workflowTypeHasBeenSet(false),
|
|||
|
|
m_initiatedEventId(0),
|
|||
|
|
m_initiatedEventIdHasBeenSet(false)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
ChildWorkflowExecutionStartedEventAttributes::ChildWorkflowExecutionStartedEventAttributes(JsonView jsonValue) :
|
|||
|
|
m_workflowExecutionHasBeenSet(false),
|
|||
|
|
m_workflowTypeHasBeenSet(false),
|
|||
|
|
m_initiatedEventId(0),
|
|||
|
|
m_initiatedEventIdHasBeenSet(false)
|
|||
|
|
{
|
|||
|
|
*this = jsonValue;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
ChildWorkflowExecutionStartedEventAttributes& ChildWorkflowExecutionStartedEventAttributes::operator =(JsonView jsonValue)
|
|||
|
|
{
|
|||
|
|
if(jsonValue.ValueExists("workflowExecution"))
|
|||
|
|
{
|
|||
|
|
m_workflowExecution = jsonValue.GetObject("workflowExecution");
|
|||
|
|
|
|||
|
|
m_workflowExecutionHasBeenSet = true;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(jsonValue.ValueExists("workflowType"))
|
|||
|
|
{
|
|||
|
|
m_workflowType = jsonValue.GetObject("workflowType");
|
|||
|
|
|
|||
|
|
m_workflowTypeHasBeenSet = true;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(jsonValue.ValueExists("initiatedEventId"))
|
|||
|
|
{
|
|||
|
|
m_initiatedEventId = jsonValue.GetInt64("initiatedEventId");
|
|||
|
|
|
|||
|
|
m_initiatedEventIdHasBeenSet = true;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return *this;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
JsonValue ChildWorkflowExecutionStartedEventAttributes::Jsonize() const
|
|||
|
|
{
|
|||
|
|
JsonValue payload;
|
|||
|
|
|
|||
|
|
if(m_workflowExecutionHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithObject("workflowExecution", m_workflowExecution.Jsonize());
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_workflowTypeHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithObject("workflowType", m_workflowType.Jsonize());
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_initiatedEventIdHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithInt64("initiatedEventId", m_initiatedEventId);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return payload;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace SWF
|
|||
|
|
} // namespace Aws
|