72 lines
1.5 KiB
C++
72 lines
1.5 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/budgets/model/UpdateSubscriberRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::Budgets::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
UpdateSubscriberRequest::UpdateSubscriberRequest() :
|
|
m_accountIdHasBeenSet(false),
|
|
m_budgetNameHasBeenSet(false),
|
|
m_notificationHasBeenSet(false),
|
|
m_oldSubscriberHasBeenSet(false),
|
|
m_newSubscriberHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String UpdateSubscriberRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_accountIdHasBeenSet)
|
|
{
|
|
payload.WithString("AccountId", m_accountId);
|
|
|
|
}
|
|
|
|
if(m_budgetNameHasBeenSet)
|
|
{
|
|
payload.WithString("BudgetName", m_budgetName);
|
|
|
|
}
|
|
|
|
if(m_notificationHasBeenSet)
|
|
{
|
|
payload.WithObject("Notification", m_notification.Jsonize());
|
|
|
|
}
|
|
|
|
if(m_oldSubscriberHasBeenSet)
|
|
{
|
|
payload.WithObject("OldSubscriber", m_oldSubscriber.Jsonize());
|
|
|
|
}
|
|
|
|
if(m_newSubscriberHasBeenSet)
|
|
{
|
|
payload.WithObject("NewSubscriber", m_newSubscriber.Jsonize());
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
Aws::Http::HeaderValueCollection UpdateSubscriberRequest::GetRequestSpecificHeaders() const
|
|
{
|
|
Aws::Http::HeaderValueCollection headers;
|
|
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSBudgetServiceGateway.UpdateSubscriber"));
|
|
return headers;
|
|
|
|
}
|
|
|
|
|
|
|
|
|