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-accessanalyzer/source/model/ListFindingsRequest.cpp

70 lines
1.3 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/accessanalyzer/model/ListFindingsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::AccessAnalyzer::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListFindingsRequest::ListFindingsRequest() :
m_analyzerArnHasBeenSet(false),
m_filterHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_sortHasBeenSet(false)
{
}
Aws::String ListFindingsRequest::SerializePayload() const
{
JsonValue payload;
if(m_analyzerArnHasBeenSet)
{
payload.WithString("analyzerArn", m_analyzerArn);
}
if(m_filterHasBeenSet)
{
JsonValue filterJsonMap;
for(auto& filterItem : m_filter)
{
filterJsonMap.WithObject(filterItem.first, filterItem.second.Jsonize());
}
payload.WithObject("filter", std::move(filterJsonMap));
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("maxResults", m_maxResults);
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("nextToken", m_nextToken);
}
if(m_sortHasBeenSet)
{
payload.WithObject("sort", m_sort.Jsonize());
}
return payload.View().WriteReadable();
}