/** * 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 Appflow { namespace Model { RegistrationOutput::RegistrationOutput() : m_messageHasBeenSet(false), m_resultHasBeenSet(false), m_status(ExecutionStatus::NOT_SET), m_statusHasBeenSet(false) { } RegistrationOutput::RegistrationOutput(JsonView jsonValue) : m_messageHasBeenSet(false), m_resultHasBeenSet(false), m_status(ExecutionStatus::NOT_SET), m_statusHasBeenSet(false) { *this = jsonValue; } RegistrationOutput& RegistrationOutput::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("message")) { m_message = jsonValue.GetString("message"); m_messageHasBeenSet = true; } if(jsonValue.ValueExists("result")) { m_result = jsonValue.GetString("result"); m_resultHasBeenSet = true; } if(jsonValue.ValueExists("status")) { m_status = ExecutionStatusMapper::GetExecutionStatusForName(jsonValue.GetString("status")); m_statusHasBeenSet = true; } return *this; } JsonValue RegistrationOutput::Jsonize() const { JsonValue payload; if(m_messageHasBeenSet) { payload.WithString("message", m_message); } if(m_resultHasBeenSet) { payload.WithString("result", m_result); } if(m_statusHasBeenSet) { payload.WithString("status", ExecutionStatusMapper::GetNameForExecutionStatus(m_status)); } return payload; } } // namespace Model } // namespace Appflow } // namespace Aws