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/UpdateTeamMemberRequest.cpp

66 lines
1.3 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/codestar/model/UpdateTeamMemberRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::CodeStar::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
UpdateTeamMemberRequest::UpdateTeamMemberRequest() :
m_projectIdHasBeenSet(false),
m_userArnHasBeenSet(false),
m_projectRoleHasBeenSet(false),
m_remoteAccessAllowed(false),
m_remoteAccessAllowedHasBeenSet(false)
{
}
Aws::String UpdateTeamMemberRequest::SerializePayload() const
{
JsonValue payload;
if(m_projectIdHasBeenSet)
{
payload.WithString("projectId", m_projectId);
}
if(m_userArnHasBeenSet)
{
payload.WithString("userArn", m_userArn);
}
if(m_projectRoleHasBeenSet)
{
payload.WithString("projectRole", m_projectRole);
}
if(m_remoteAccessAllowedHasBeenSet)
{
payload.WithBool("remoteAccessAllowed", m_remoteAccessAllowed);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection UpdateTeamMemberRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "CodeStar_20170419.UpdateTeamMember"));
return headers;
}