This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-pinpoint-email/source/model/GetConfigurationSetResult.cpp

74 lines
1.7 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/pinpoint-email/model/GetConfigurationSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::PinpointEmail::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetConfigurationSetResult::GetConfigurationSetResult()
{
}
GetConfigurationSetResult::GetConfigurationSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetConfigurationSetResult& GetConfigurationSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ConfigurationSetName"))
{
m_configurationSetName = jsonValue.GetString("ConfigurationSetName");
}
if(jsonValue.ValueExists("TrackingOptions"))
{
m_trackingOptions = jsonValue.GetObject("TrackingOptions");
}
if(jsonValue.ValueExists("DeliveryOptions"))
{
m_deliveryOptions = jsonValue.GetObject("DeliveryOptions");
}
if(jsonValue.ValueExists("ReputationOptions"))
{
m_reputationOptions = jsonValue.GetObject("ReputationOptions");
}
if(jsonValue.ValueExists("SendingOptions"))
{
m_sendingOptions = jsonValue.GetObject("SendingOptions");
}
if(jsonValue.ValueExists("Tags"))
{
Array<JsonView> tagsJsonList = jsonValue.GetArray("Tags");
for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex)
{
m_tags.push_back(tagsJsonList[tagsIndex].AsObject());
}
}
return *this;
}