/** * 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 Macie2 { namespace Model { FindingAction::FindingAction() : m_actionType(FindingActionType::NOT_SET), m_actionTypeHasBeenSet(false), m_apiCallDetailsHasBeenSet(false) { } FindingAction::FindingAction(JsonView jsonValue) : m_actionType(FindingActionType::NOT_SET), m_actionTypeHasBeenSet(false), m_apiCallDetailsHasBeenSet(false) { *this = jsonValue; } FindingAction& FindingAction::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("actionType")) { m_actionType = FindingActionTypeMapper::GetFindingActionTypeForName(jsonValue.GetString("actionType")); m_actionTypeHasBeenSet = true; } if(jsonValue.ValueExists("apiCallDetails")) { m_apiCallDetails = jsonValue.GetObject("apiCallDetails"); m_apiCallDetailsHasBeenSet = true; } return *this; } JsonValue FindingAction::Jsonize() const { JsonValue payload; if(m_actionTypeHasBeenSet) { payload.WithString("actionType", FindingActionTypeMapper::GetNameForFindingActionType(m_actionType)); } if(m_apiCallDetailsHasBeenSet) { payload.WithObject("apiCallDetails", m_apiCallDetails.Jsonize()); } return payload; } } // namespace Model } // namespace Macie2 } // namespace Aws