1 /**
2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 * SPDX-License-Identifier: Apache-2.0.
4 */
5
6 #include <aws/iotsitewise/model/UpdateDashboardRequest.h>
7 #include <aws/core/utils/json/JsonSerializer.h>
8
9 #include <utility>
10
11 using namespace Aws::IoTSiteWise::Model;
12 using namespace Aws::Utils::Json;
13 using namespace Aws::Utils;
14
UpdateDashboardRequest()15 UpdateDashboardRequest::UpdateDashboardRequest() :
16 m_dashboardIdHasBeenSet(false),
17 m_dashboardNameHasBeenSet(false),
18 m_dashboardDescriptionHasBeenSet(false),
19 m_dashboardDefinitionHasBeenSet(false),
20 m_clientToken(Aws::Utils::UUID::RandomUUID()),
21 m_clientTokenHasBeenSet(true)
22 {
23 }
24
SerializePayload() const25 Aws::String UpdateDashboardRequest::SerializePayload() const
26 {
27 JsonValue payload;
28
29 if(m_dashboardNameHasBeenSet)
30 {
31 payload.WithString("dashboardName", m_dashboardName);
32
33 }
34
35 if(m_dashboardDescriptionHasBeenSet)
36 {
37 payload.WithString("dashboardDescription", m_dashboardDescription);
38
39 }
40
41 if(m_dashboardDefinitionHasBeenSet)
42 {
43 payload.WithString("dashboardDefinition", m_dashboardDefinition);
44
45 }
46
47 if(m_clientTokenHasBeenSet)
48 {
49 payload.WithString("clientToken", m_clientToken);
50
51 }
52
53 return payload.View().WriteReadable();
54 }
55
56
57
58
59