73 lines
1.4 KiB
C++
73 lines
1.4 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/iotsitewise/model/UpdatePortalRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::IoTSiteWise::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
UpdatePortalRequest::UpdatePortalRequest() :
|
|
m_portalIdHasBeenSet(false),
|
|
m_portalNameHasBeenSet(false),
|
|
m_portalDescriptionHasBeenSet(false),
|
|
m_portalContactEmailHasBeenSet(false),
|
|
m_portalLogoImageHasBeenSet(false),
|
|
m_roleArnHasBeenSet(false),
|
|
m_clientToken(Aws::Utils::UUID::RandomUUID()),
|
|
m_clientTokenHasBeenSet(true)
|
|
{
|
|
}
|
|
|
|
Aws::String UpdatePortalRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_portalNameHasBeenSet)
|
|
{
|
|
payload.WithString("portalName", m_portalName);
|
|
|
|
}
|
|
|
|
if(m_portalDescriptionHasBeenSet)
|
|
{
|
|
payload.WithString("portalDescription", m_portalDescription);
|
|
|
|
}
|
|
|
|
if(m_portalContactEmailHasBeenSet)
|
|
{
|
|
payload.WithString("portalContactEmail", m_portalContactEmail);
|
|
|
|
}
|
|
|
|
if(m_portalLogoImageHasBeenSet)
|
|
{
|
|
payload.WithObject("portalLogoImage", m_portalLogoImage.Jsonize());
|
|
|
|
}
|
|
|
|
if(m_roleArnHasBeenSet)
|
|
{
|
|
payload.WithString("roleArn", m_roleArn);
|
|
|
|
}
|
|
|
|
if(m_clientTokenHasBeenSet)
|
|
{
|
|
payload.WithString("clientToken", m_clientToken);
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
|
|
|
|
|