/** * 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 Macie { namespace Model { MemberAccount::MemberAccount() : m_accountIdHasBeenSet(false) { } MemberAccount::MemberAccount(JsonView jsonValue) : m_accountIdHasBeenSet(false) { *this = jsonValue; } MemberAccount& MemberAccount::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("accountId")) { m_accountId = jsonValue.GetString("accountId"); m_accountIdHasBeenSet = true; } return *this; } JsonValue MemberAccount::Jsonize() const { JsonValue payload; if(m_accountIdHasBeenSet) { payload.WithString("accountId", m_accountId); } return payload; } } // namespace Model } // namespace Macie } // namespace Aws