/** * 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 KinesisAnalyticsV2 { namespace Model { CloudWatchLoggingOptionUpdate::CloudWatchLoggingOptionUpdate() : m_cloudWatchLoggingOptionIdHasBeenSet(false), m_logStreamARNUpdateHasBeenSet(false) { } CloudWatchLoggingOptionUpdate::CloudWatchLoggingOptionUpdate(JsonView jsonValue) : m_cloudWatchLoggingOptionIdHasBeenSet(false), m_logStreamARNUpdateHasBeenSet(false) { *this = jsonValue; } CloudWatchLoggingOptionUpdate& CloudWatchLoggingOptionUpdate::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("CloudWatchLoggingOptionId")) { m_cloudWatchLoggingOptionId = jsonValue.GetString("CloudWatchLoggingOptionId"); m_cloudWatchLoggingOptionIdHasBeenSet = true; } if(jsonValue.ValueExists("LogStreamARNUpdate")) { m_logStreamARNUpdate = jsonValue.GetString("LogStreamARNUpdate"); m_logStreamARNUpdateHasBeenSet = true; } return *this; } JsonValue CloudWatchLoggingOptionUpdate::Jsonize() const { JsonValue payload; if(m_cloudWatchLoggingOptionIdHasBeenSet) { payload.WithString("CloudWatchLoggingOptionId", m_cloudWatchLoggingOptionId); } if(m_logStreamARNUpdateHasBeenSet) { payload.WithString("LogStreamARNUpdate", m_logStreamARNUpdate); } return payload; } } // namespace Model } // namespace KinesisAnalyticsV2 } // namespace Aws