/** * 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 CodeStar { namespace Model { UserProfileSummary::UserProfileSummary() : m_userArnHasBeenSet(false), m_displayNameHasBeenSet(false), m_emailAddressHasBeenSet(false), m_sshPublicKeyHasBeenSet(false) { } UserProfileSummary::UserProfileSummary(JsonView jsonValue) : m_userArnHasBeenSet(false), m_displayNameHasBeenSet(false), m_emailAddressHasBeenSet(false), m_sshPublicKeyHasBeenSet(false) { *this = jsonValue; } UserProfileSummary& UserProfileSummary::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("userArn")) { m_userArn = jsonValue.GetString("userArn"); m_userArnHasBeenSet = true; } if(jsonValue.ValueExists("displayName")) { m_displayName = jsonValue.GetString("displayName"); m_displayNameHasBeenSet = true; } if(jsonValue.ValueExists("emailAddress")) { m_emailAddress = jsonValue.GetString("emailAddress"); m_emailAddressHasBeenSet = true; } if(jsonValue.ValueExists("sshPublicKey")) { m_sshPublicKey = jsonValue.GetString("sshPublicKey"); m_sshPublicKeyHasBeenSet = true; } return *this; } JsonValue UserProfileSummary::Jsonize() const { JsonValue payload; if(m_userArnHasBeenSet) { payload.WithString("userArn", m_userArn); } if(m_displayNameHasBeenSet) { payload.WithString("displayName", m_displayName); } if(m_emailAddressHasBeenSet) { payload.WithString("emailAddress", m_emailAddress); } if(m_sshPublicKeyHasBeenSet) { payload.WithString("sshPublicKey", m_sshPublicKey); } return payload; } } // namespace Model } // namespace CodeStar } // namespace Aws