/** * 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 IoTAnalytics { namespace Model { IotEventsDestinationConfiguration::IotEventsDestinationConfiguration() : m_inputNameHasBeenSet(false), m_roleArnHasBeenSet(false) { } IotEventsDestinationConfiguration::IotEventsDestinationConfiguration(JsonView jsonValue) : m_inputNameHasBeenSet(false), m_roleArnHasBeenSet(false) { *this = jsonValue; } IotEventsDestinationConfiguration& IotEventsDestinationConfiguration::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("inputName")) { m_inputName = jsonValue.GetString("inputName"); m_inputNameHasBeenSet = true; } if(jsonValue.ValueExists("roleArn")) { m_roleArn = jsonValue.GetString("roleArn"); m_roleArnHasBeenSet = true; } return *this; } JsonValue IotEventsDestinationConfiguration::Jsonize() const { JsonValue payload; if(m_inputNameHasBeenSet) { payload.WithString("inputName", m_inputName); } if(m_roleArnHasBeenSet) { payload.WithString("roleArn", m_roleArn); } return payload; } } // namespace Model } // namespace IoTAnalytics } // namespace Aws