/** * 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 kendra { namespace Model { MemberUser::MemberUser() : m_userIdHasBeenSet(false) { } MemberUser::MemberUser(JsonView jsonValue) : m_userIdHasBeenSet(false) { *this = jsonValue; } MemberUser& MemberUser::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("UserId")) { m_userId = jsonValue.GetString("UserId"); m_userIdHasBeenSet = true; } return *this; } JsonValue MemberUser::Jsonize() const { JsonValue payload; if(m_userIdHasBeenSet) { payload.WithString("UserId", m_userId); } return payload; } } // namespace Model } // namespace kendra } // namespace Aws