/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace SWF { namespace Model { WorkflowExecutionConfiguration::WorkflowExecutionConfiguration() : m_taskStartToCloseTimeoutHasBeenSet(false), m_executionStartToCloseTimeoutHasBeenSet(false), m_taskListHasBeenSet(false), m_taskPriorityHasBeenSet(false), m_childPolicy(ChildPolicy::NOT_SET), m_childPolicyHasBeenSet(false), m_lambdaRoleHasBeenSet(false) { } WorkflowExecutionConfiguration::WorkflowExecutionConfiguration(JsonView jsonValue) : m_taskStartToCloseTimeoutHasBeenSet(false), m_executionStartToCloseTimeoutHasBeenSet(false), m_taskListHasBeenSet(false), m_taskPriorityHasBeenSet(false), m_childPolicy(ChildPolicy::NOT_SET), m_childPolicyHasBeenSet(false), m_lambdaRoleHasBeenSet(false) { *this = jsonValue; } WorkflowExecutionConfiguration& WorkflowExecutionConfiguration::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("taskStartToCloseTimeout")) { m_taskStartToCloseTimeout = jsonValue.GetString("taskStartToCloseTimeout"); m_taskStartToCloseTimeoutHasBeenSet = true; } if(jsonValue.ValueExists("executionStartToCloseTimeout")) { m_executionStartToCloseTimeout = jsonValue.GetString("executionStartToCloseTimeout"); m_executionStartToCloseTimeoutHasBeenSet = true; } if(jsonValue.ValueExists("taskList")) { m_taskList = jsonValue.GetObject("taskList"); m_taskListHasBeenSet = true; } if(jsonValue.ValueExists("taskPriority")) { m_taskPriority = jsonValue.GetString("taskPriority"); m_taskPriorityHasBeenSet = true; } if(jsonValue.ValueExists("childPolicy")) { m_childPolicy = ChildPolicyMapper::GetChildPolicyForName(jsonValue.GetString("childPolicy")); m_childPolicyHasBeenSet = true; } if(jsonValue.ValueExists("lambdaRole")) { m_lambdaRole = jsonValue.GetString("lambdaRole"); m_lambdaRoleHasBeenSet = true; } return *this; } JsonValue WorkflowExecutionConfiguration::Jsonize() const { JsonValue payload; if(m_taskStartToCloseTimeoutHasBeenSet) { payload.WithString("taskStartToCloseTimeout", m_taskStartToCloseTimeout); } if(m_executionStartToCloseTimeoutHasBeenSet) { payload.WithString("executionStartToCloseTimeout", m_executionStartToCloseTimeout); } if(m_taskListHasBeenSet) { payload.WithObject("taskList", m_taskList.Jsonize()); } if(m_taskPriorityHasBeenSet) { payload.WithString("taskPriority", m_taskPriority); } if(m_childPolicyHasBeenSet) { payload.WithString("childPolicy", ChildPolicyMapper::GetNameForChildPolicy(m_childPolicy)); } if(m_lambdaRoleHasBeenSet) { payload.WithString("lambdaRole", m_lambdaRole); } return payload; } } // namespace Model } // namespace SWF } // namespace Aws