/** * 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 Inspector2 { namespace Model { MemberAccountEc2DeepInspectionStatusState::MemberAccountEc2DeepInspectionStatusState() : m_accountIdHasBeenSet(false), m_errorMessageHasBeenSet(false), m_status(Ec2DeepInspectionStatus::NOT_SET), m_statusHasBeenSet(false) { } MemberAccountEc2DeepInspectionStatusState::MemberAccountEc2DeepInspectionStatusState(JsonView jsonValue) : m_accountIdHasBeenSet(false), m_errorMessageHasBeenSet(false), m_status(Ec2DeepInspectionStatus::NOT_SET), m_statusHasBeenSet(false) { *this = jsonValue; } MemberAccountEc2DeepInspectionStatusState& MemberAccountEc2DeepInspectionStatusState::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("accountId")) { m_accountId = jsonValue.GetString("accountId"); m_accountIdHasBeenSet = true; } if(jsonValue.ValueExists("errorMessage")) { m_errorMessage = jsonValue.GetString("errorMessage"); m_errorMessageHasBeenSet = true; } if(jsonValue.ValueExists("status")) { m_status = Ec2DeepInspectionStatusMapper::GetEc2DeepInspectionStatusForName(jsonValue.GetString("status")); m_statusHasBeenSet = true; } return *this; } JsonValue MemberAccountEc2DeepInspectionStatusState::Jsonize() const { JsonValue payload; if(m_accountIdHasBeenSet) { payload.WithString("accountId", m_accountId); } if(m_errorMessageHasBeenSet) { payload.WithString("errorMessage", m_errorMessage); } if(m_statusHasBeenSet) { payload.WithString("status", Ec2DeepInspectionStatusMapper::GetNameForEc2DeepInspectionStatus(m_status)); } return payload; } } // namespace Model } // namespace Inspector2 } // namespace Aws