/** * 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 finspace { namespace Model { SuperuserParameters::SuperuserParameters() : m_emailAddressHasBeenSet(false), m_firstNameHasBeenSet(false), m_lastNameHasBeenSet(false) { } SuperuserParameters::SuperuserParameters(JsonView jsonValue) : m_emailAddressHasBeenSet(false), m_firstNameHasBeenSet(false), m_lastNameHasBeenSet(false) { *this = jsonValue; } SuperuserParameters& SuperuserParameters::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("emailAddress")) { m_emailAddress = jsonValue.GetString("emailAddress"); m_emailAddressHasBeenSet = true; } if(jsonValue.ValueExists("firstName")) { m_firstName = jsonValue.GetString("firstName"); m_firstNameHasBeenSet = true; } if(jsonValue.ValueExists("lastName")) { m_lastName = jsonValue.GetString("lastName"); m_lastNameHasBeenSet = true; } return *this; } JsonValue SuperuserParameters::Jsonize() const { JsonValue payload; if(m_emailAddressHasBeenSet) { payload.WithString("emailAddress", m_emailAddress); } if(m_firstNameHasBeenSet) { payload.WithString("firstName", m_firstName); } if(m_lastNameHasBeenSet) { payload.WithString("lastName", m_lastName); } return payload; } } // namespace Model } // namespace finspace } // namespace Aws