/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include 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::PseudoRandomUUID()), m_clientTokenHasBeenSet(true), m_notificationSenderEmailHasBeenSet(false), m_alarmsHasBeenSet(false) { } 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); } if(m_notificationSenderEmailHasBeenSet) { payload.WithString("notificationSenderEmail", m_notificationSenderEmail); } if(m_alarmsHasBeenSet) { payload.WithObject("alarms", m_alarms.Jsonize()); } return payload.View().WriteReadable(); }