/*
* Copyright 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 lambda-2015-03-31.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Lambda.Model
{
///
/// Specific configuration settings for a DocumentDB event source.
///
public partial class DocumentDBEventSourceConfig
{
private string _collectionName;
private string _databaseName;
private FullDocument _fullDocument;
///
/// Gets and sets the property CollectionName.
///
/// The name of the collection to consume within the database. If you do not specify
/// a collection, Lambda consumes all collections.
///
///
[AWSProperty(Min=1, Max=57)]
public string CollectionName
{
get { return this._collectionName; }
set { this._collectionName = value; }
}
// Check to see if CollectionName property is set
internal bool IsSetCollectionName()
{
return this._collectionName != null;
}
///
/// Gets and sets the property DatabaseName.
///
/// The name of the database to consume within the DocumentDB cluster.
///
///
[AWSProperty(Min=1, Max=63)]
public string DatabaseName
{
get { return this._databaseName; }
set { this._databaseName = value; }
}
// Check to see if DatabaseName property is set
internal bool IsSetDatabaseName()
{
return this._databaseName != null;
}
///
/// Gets and sets the property FullDocument.
///
/// Determines what DocumentDB sends to your event stream during document update operations.
/// If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with
/// a copy of the entire document. Otherwise, DocumentDB sends only a partial document
/// that contains the changes.
///
///
public FullDocument FullDocument
{
get { return this._fullDocument; }
set { this._fullDocument = value; }
}
// Check to see if FullDocument property is set
internal bool IsSetFullDocument()
{
return this._fullDocument != null;
}
}
}