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-macie2/source/model/DescribeBucketsRequest.cpp

63 lines
1.2 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/macie2/model/DescribeBucketsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Macie2::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DescribeBucketsRequest::DescribeBucketsRequest() :
m_criteriaHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_sortCriteriaHasBeenSet(false)
{
}
Aws::String DescribeBucketsRequest::SerializePayload() const
{
JsonValue payload;
if(m_criteriaHasBeenSet)
{
JsonValue criteriaJsonMap;
for(auto& criteriaItem : m_criteria)
{
criteriaJsonMap.WithObject(criteriaItem.first, criteriaItem.second.Jsonize());
}
payload.WithObject("criteria", std::move(criteriaJsonMap));
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("maxResults", m_maxResults);
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("nextToken", m_nextToken);
}
if(m_sortCriteriaHasBeenSet)
{
payload.WithObject("sortCriteria", m_sortCriteria.Jsonize());
}
return payload.View().WriteReadable();
}