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