41 lines
999 B
C++
41 lines
999 B
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/securityhub/model/CreateMembersRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::SecurityHub::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
CreateMembersRequest::CreateMembersRequest() :
|
|
m_accountDetailsHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String CreateMembersRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_accountDetailsHasBeenSet)
|
|
{
|
|
Array<JsonValue> accountDetailsJsonList(m_accountDetails.size());
|
|
for(unsigned accountDetailsIndex = 0; accountDetailsIndex < accountDetailsJsonList.GetLength(); ++accountDetailsIndex)
|
|
{
|
|
accountDetailsJsonList[accountDetailsIndex].AsObject(m_accountDetails[accountDetailsIndex].Jsonize());
|
|
}
|
|
payload.WithArray("AccountDetails", std::move(accountDetailsJsonList));
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
|
|
|
|
|