58 lines
1.3 KiB
C++
58 lines
1.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/codecommit/model/CreatePullRequestApprovalRuleRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::CodeCommit::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
CreatePullRequestApprovalRuleRequest::CreatePullRequestApprovalRuleRequest() :
|
|
m_pullRequestIdHasBeenSet(false),
|
|
m_approvalRuleNameHasBeenSet(false),
|
|
m_approvalRuleContentHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String CreatePullRequestApprovalRuleRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_pullRequestIdHasBeenSet)
|
|
{
|
|
payload.WithString("pullRequestId", m_pullRequestId);
|
|
|
|
}
|
|
|
|
if(m_approvalRuleNameHasBeenSet)
|
|
{
|
|
payload.WithString("approvalRuleName", m_approvalRuleName);
|
|
|
|
}
|
|
|
|
if(m_approvalRuleContentHasBeenSet)
|
|
{
|
|
payload.WithString("approvalRuleContent", m_approvalRuleContent);
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
Aws::Http::HeaderValueCollection CreatePullRequestApprovalRuleRequest::GetRequestSpecificHeaders() const
|
|
{
|
|
Aws::Http::HeaderValueCollection headers;
|
|
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "CodeCommit_20150413.CreatePullRequestApprovalRule"));
|
|
return headers;
|
|
|
|
}
|
|
|
|
|
|
|
|
|