This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-codestar/source/model/UserProfileSummary.cpp

105 lines
1.9 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/codestar/model/UserProfileSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
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