44 lines
813 B
C++
44 lines
813 B
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/amplify/model/UpdateWebhookRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::Amplify::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
UpdateWebhookRequest::UpdateWebhookRequest() :
|
|
m_webhookIdHasBeenSet(false),
|
|
m_branchNameHasBeenSet(false),
|
|
m_descriptionHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String UpdateWebhookRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_branchNameHasBeenSet)
|
|
{
|
|
payload.WithString("branchName", m_branchName);
|
|
|
|
}
|
|
|
|
if(m_descriptionHasBeenSet)
|
|
{
|
|
payload.WithString("description", m_description);
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
|
|
|
|
|