/** * 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 DynamoDBStreams { namespace Model { Stream::Stream() : m_streamArnHasBeenSet(false), m_tableNameHasBeenSet(false), m_streamLabelHasBeenSet(false) { } Stream::Stream(JsonView jsonValue) : m_streamArnHasBeenSet(false), m_tableNameHasBeenSet(false), m_streamLabelHasBeenSet(false) { *this = jsonValue; } Stream& Stream::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("StreamArn")) { m_streamArn = jsonValue.GetString("StreamArn"); m_streamArnHasBeenSet = true; } if(jsonValue.ValueExists("TableName")) { m_tableName = jsonValue.GetString("TableName"); m_tableNameHasBeenSet = true; } if(jsonValue.ValueExists("StreamLabel")) { m_streamLabel = jsonValue.GetString("StreamLabel"); m_streamLabelHasBeenSet = true; } return *this; } JsonValue Stream::Jsonize() const { JsonValue payload; if(m_streamArnHasBeenSet) { payload.WithString("StreamArn", m_streamArn); } if(m_tableNameHasBeenSet) { payload.WithString("TableName", m_tableName); } if(m_streamLabelHasBeenSet) { payload.WithString("StreamLabel", m_streamLabel); } return payload; } } // namespace Model } // namespace DynamoDBStreams } // namespace Aws