76 lines
1.6 KiB
C++
76 lines
1.6 KiB
C++
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#include <aws/pinpoint-email/model/CreateConfigurationSetRequest.h>
|
|||
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|||
|
|
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
using namespace Aws::PinpointEmail::Model;
|
|||
|
|
using namespace Aws::Utils::Json;
|
|||
|
|
using namespace Aws::Utils;
|
|||
|
|
|
|||
|
|
CreateConfigurationSetRequest::CreateConfigurationSetRequest() :
|
|||
|
|
m_configurationSetNameHasBeenSet(false),
|
|||
|
|
m_trackingOptionsHasBeenSet(false),
|
|||
|
|
m_deliveryOptionsHasBeenSet(false),
|
|||
|
|
m_reputationOptionsHasBeenSet(false),
|
|||
|
|
m_sendingOptionsHasBeenSet(false),
|
|||
|
|
m_tagsHasBeenSet(false)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
Aws::String CreateConfigurationSetRequest::SerializePayload() const
|
|||
|
|
{
|
|||
|
|
JsonValue payload;
|
|||
|
|
|
|||
|
|
if(m_configurationSetNameHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("ConfigurationSetName", m_configurationSetName);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_trackingOptionsHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithObject("TrackingOptions", m_trackingOptions.Jsonize());
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_deliveryOptionsHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithObject("DeliveryOptions", m_deliveryOptions.Jsonize());
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_reputationOptionsHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithObject("ReputationOptions", m_reputationOptions.Jsonize());
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_sendingOptionsHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithObject("SendingOptions", m_sendingOptions.Jsonize());
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_tagsHasBeenSet)
|
|||
|
|
{
|
|||
|
|
Array<JsonValue> tagsJsonList(m_tags.size());
|
|||
|
|
for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex)
|
|||
|
|
{
|
|||
|
|
tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize());
|
|||
|
|
}
|
|||
|
|
payload.WithArray("Tags", std::move(tagsJsonList));
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return payload.View().WriteReadable();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|