/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace IoTSiteWise { namespace Model { GatewayPlatform::GatewayPlatform() : m_greengrassHasBeenSet(false) { } GatewayPlatform::GatewayPlatform(JsonView jsonValue) : m_greengrassHasBeenSet(false) { *this = jsonValue; } GatewayPlatform& GatewayPlatform::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("greengrass")) { m_greengrass = jsonValue.GetObject("greengrass"); m_greengrassHasBeenSet = true; } return *this; } JsonValue GatewayPlatform::Jsonize() const { JsonValue payload; if(m_greengrassHasBeenSet) { payload.WithObject("greengrass", m_greengrass.Jsonize()); } return payload; } } // namespace Model } // namespace IoTSiteWise } // namespace Aws