/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the dynamodbstreams-2012-08-10.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.DynamoDBv2.Model
{
///
/// A description of a single data modification that was performed on an item in a DynamoDB
/// table.
///
public partial class StreamRecord
{
private DateTime? _approximateCreationDateTime;
private Dictionary _keys = new Dictionary();
private Dictionary _newImage = new Dictionary();
private Dictionary _oldImage = new Dictionary();
private string _sequenceNumber;
private long? _sizeBytes;
private StreamViewType _streamViewType;
///
/// Gets and sets the property ApproximateCreationDateTime.
///
/// The approximate date and time when the stream record was created, in UNIX
/// epoch time format.
///
///
public DateTime ApproximateCreationDateTime
{
get { return this._approximateCreationDateTime.GetValueOrDefault(); }
set { this._approximateCreationDateTime = value; }
}
// Check to see if ApproximateCreationDateTime property is set
internal bool IsSetApproximateCreationDateTime()
{
return this._approximateCreationDateTime.HasValue;
}
///
/// Gets and sets the property Keys.
///
/// The primary key attribute(s) for the DynamoDB item that was modified.
///
///
public Dictionary Keys
{
get { return this._keys; }
set { this._keys = value; }
}
// Check to see if Keys property is set
internal bool IsSetKeys()
{
return this._keys != null && this._keys.Count > 0;
}
///
/// Gets and sets the property NewImage.
///
/// The item in the DynamoDB table as it appeared after it was modified.
///
///
public Dictionary NewImage
{
get { return this._newImage; }
set { this._newImage = value; }
}
// Check to see if NewImage property is set
internal bool IsSetNewImage()
{
return this._newImage != null && this._newImage.Count > 0;
}
///
/// Gets and sets the property OldImage.
///
/// The item in the DynamoDB table as it appeared before it was modified.
///
///
public Dictionary OldImage
{
get { return this._oldImage; }
set { this._oldImage = value; }
}
// Check to see if OldImage property is set
internal bool IsSetOldImage()
{
return this._oldImage != null && this._oldImage.Count > 0;
}
///
/// Gets and sets the property SequenceNumber.
///
/// The sequence number of the stream record.
///
///
[AWSProperty(Min=21, Max=40)]
public string SequenceNumber
{
get { return this._sequenceNumber; }
set { this._sequenceNumber = value; }
}
// Check to see if SequenceNumber property is set
internal bool IsSetSequenceNumber()
{
return this._sequenceNumber != null;
}
///
/// Gets and sets the property SizeBytes.
///
/// The size of the stream record, in bytes.
///
///
[AWSProperty(Min=1)]
public long SizeBytes
{
get { return this._sizeBytes.GetValueOrDefault(); }
set { this._sizeBytes = value; }
}
// Check to see if SizeBytes property is set
internal bool IsSetSizeBytes()
{
return this._sizeBytes.HasValue;
}
///
/// Gets and sets the property StreamViewType.
///
/// The type of data from the modified DynamoDB item that was captured in this stream
/// record:
///
/// -
///
///
KEYS_ONLY
- only the key attributes of the modified item.
///
/// -
///
///
NEW_IMAGE
- the entire item, as it appeared after it was modified.
///
/// -
///
///
OLD_IMAGE
- the entire item, as it appeared before it was modified.
///
/// -
///
///
NEW_AND_OLD_IMAGES
- both the new and the old item images of the item.
///
///
///
public StreamViewType StreamViewType
{
get { return this._streamViewType; }
set { this._streamViewType = value; }
}
// Check to see if StreamViewType property is set
internal bool IsSetStreamViewType()
{
return this._streamViewType != null;
}
}
}