71 lines
1.5 KiB
C++
71 lines
1.5 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/codestar/model/CreateUserProfileResult.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
#include <aws/core/AmazonWebServiceResult.h>
|
|
#include <aws/core/utils/StringUtils.h>
|
|
#include <aws/core/utils/UnreferencedParam.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::CodeStar::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
using namespace Aws;
|
|
|
|
CreateUserProfileResult::CreateUserProfileResult()
|
|
{
|
|
}
|
|
|
|
CreateUserProfileResult::CreateUserProfileResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
|
|
{
|
|
*this = result;
|
|
}
|
|
|
|
CreateUserProfileResult& CreateUserProfileResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
|
|
{
|
|
JsonView jsonValue = result.GetPayload().View();
|
|
if(jsonValue.ValueExists("userArn"))
|
|
{
|
|
m_userArn = jsonValue.GetString("userArn");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("displayName"))
|
|
{
|
|
m_displayName = jsonValue.GetString("displayName");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("emailAddress"))
|
|
{
|
|
m_emailAddress = jsonValue.GetString("emailAddress");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("sshPublicKey"))
|
|
{
|
|
m_sshPublicKey = jsonValue.GetString("sshPublicKey");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("createdTimestamp"))
|
|
{
|
|
m_createdTimestamp = jsonValue.GetDouble("createdTimestamp");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("lastModifiedTimestamp"))
|
|
{
|
|
m_lastModifiedTimestamp = jsonValue.GetDouble("lastModifiedTimestamp");
|
|
|
|
}
|
|
|
|
|
|
|
|
return *this;
|
|
}
|