72 lines
1.9 KiB
C++
72 lines
1.9 KiB
C++
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#include <aws/codecommit/model/GetMergeOptionsRequest.h>
|
|||
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|||
|
|
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
using namespace Aws::CodeCommit::Model;
|
|||
|
|
using namespace Aws::Utils::Json;
|
|||
|
|
using namespace Aws::Utils;
|
|||
|
|
|
|||
|
|
GetMergeOptionsRequest::GetMergeOptionsRequest() :
|
|||
|
|
m_repositoryNameHasBeenSet(false),
|
|||
|
|
m_sourceCommitSpecifierHasBeenSet(false),
|
|||
|
|
m_destinationCommitSpecifierHasBeenSet(false),
|
|||
|
|
m_conflictDetailLevel(ConflictDetailLevelTypeEnum::NOT_SET),
|
|||
|
|
m_conflictDetailLevelHasBeenSet(false),
|
|||
|
|
m_conflictResolutionStrategy(ConflictResolutionStrategyTypeEnum::NOT_SET),
|
|||
|
|
m_conflictResolutionStrategyHasBeenSet(false)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
Aws::String GetMergeOptionsRequest::SerializePayload() const
|
|||
|
|
{
|
|||
|
|
JsonValue payload;
|
|||
|
|
|
|||
|
|
if(m_repositoryNameHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("repositoryName", m_repositoryName);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_sourceCommitSpecifierHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("sourceCommitSpecifier", m_sourceCommitSpecifier);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_destinationCommitSpecifierHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("destinationCommitSpecifier", m_destinationCommitSpecifier);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_conflictDetailLevelHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("conflictDetailLevel", ConflictDetailLevelTypeEnumMapper::GetNameForConflictDetailLevelTypeEnum(m_conflictDetailLevel));
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_conflictResolutionStrategyHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("conflictResolutionStrategy", ConflictResolutionStrategyTypeEnumMapper::GetNameForConflictResolutionStrategyTypeEnum(m_conflictResolutionStrategy));
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return payload.View().WriteReadable();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
Aws::Http::HeaderValueCollection GetMergeOptionsRequest::GetRequestSpecificHeaders() const
|
|||
|
|
{
|
|||
|
|
Aws::Http::HeaderValueCollection headers;
|
|||
|
|
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "CodeCommit_20150413.GetMergeOptions"));
|
|||
|
|
return headers;
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|