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-appsync/source/model/PipelineConfig.cpp

68 lines
1.4 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/appsync/model/PipelineConfig.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace AppSync
{
namespace Model
{
PipelineConfig::PipelineConfig() :
m_functionsHasBeenSet(false)
{
}
PipelineConfig::PipelineConfig(JsonView jsonValue) :
m_functionsHasBeenSet(false)
{
*this = jsonValue;
}
PipelineConfig& PipelineConfig::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("functions"))
{
Array<JsonView> functionsJsonList = jsonValue.GetArray("functions");
for(unsigned functionsIndex = 0; functionsIndex < functionsJsonList.GetLength(); ++functionsIndex)
{
m_functions.push_back(functionsJsonList[functionsIndex].AsString());
}
m_functionsHasBeenSet = true;
}
return *this;
}
JsonValue PipelineConfig::Jsonize() const
{
JsonValue payload;
if(m_functionsHasBeenSet)
{
Array<JsonValue> functionsJsonList(m_functions.size());
for(unsigned functionsIndex = 0; functionsIndex < functionsJsonList.GetLength(); ++functionsIndex)
{
functionsJsonList[functionsIndex].AsString(m_functions[functionsIndex]);
}
payload.WithArray("functions", std::move(functionsJsonList));
}
return payload;
}
} // namespace Model
} // namespace AppSync
} // namespace Aws