/*
* 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 dynamodb-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
{
///
/// Container for the parameters to the ListBackups operation.
/// List backups associated with an AWS account. To list backups for a given table, specify
/// TableName
. ListBackups
returns a paginated list of results
/// with at most 1 MB worth of items in a page. You can also specify a limit for the maximum
/// number of entries to be returned in a page.
///
///
///
/// In the request, start time is inclusive, but end time is exclusive. Note that these
/// limits are for the time at which the original backup was requested.
///
///
///
/// You can call ListBackups
a maximum of five times per second.
///
///
public partial class ListBackupsRequest : AmazonDynamoDBRequest
{
private BackupTypeFilter _backupType;
private string _exclusiveStartBackupArn;
private int? _limit;
private string _tableName;
private DateTime? _timeRangeLowerBound;
private DateTime? _timeRangeUpperBound;
///
/// Gets and sets the property BackupType.
///
/// The backups from the table specified by BackupType
are listed.
///
///
///
/// Where BackupType
can be:
///
/// -
///
///
USER
- On-demand backup created by you.
///
/// -
///
///
SYSTEM
- On-demand backup automatically created by DynamoDB.
///
/// -
///
///
ALL
- All types of on-demand backups (USER and SYSTEM).
///
///
///
public BackupTypeFilter BackupType
{
get { return this._backupType; }
set { this._backupType = value; }
}
// Check to see if BackupType property is set
internal bool IsSetBackupType()
{
return this._backupType != null;
}
///
/// Gets and sets the property ExclusiveStartBackupArn.
///
/// LastEvaluatedBackupArn
is the Amazon Resource Name (ARN) of the backup
/// last evaluated when the current page of results was returned, inclusive of the current
/// page of results. This value may be specified as the ExclusiveStartBackupArn
/// of a new ListBackups
operation in order to fetch the next page of results.
///
///
///
[AWSProperty(Min=37, Max=1024)]
public string ExclusiveStartBackupArn
{
get { return this._exclusiveStartBackupArn; }
set { this._exclusiveStartBackupArn = value; }
}
// Check to see if ExclusiveStartBackupArn property is set
internal bool IsSetExclusiveStartBackupArn()
{
return this._exclusiveStartBackupArn != null;
}
///
/// Gets and sets the property Limit.
///
/// Maximum number of backups to return at once.
///
///
[AWSProperty(Min=1, Max=100)]
public int Limit
{
get { return this._limit.GetValueOrDefault(); }
set { this._limit = value; }
}
// Check to see if Limit property is set
internal bool IsSetLimit()
{
return this._limit.HasValue;
}
///
/// Gets and sets the property TableName.
///
/// The backups from the table specified by TableName
are listed.
///
///
[AWSProperty(Min=3, Max=255)]
public string TableName
{
get { return this._tableName; }
set { this._tableName = value; }
}
// Check to see if TableName property is set
internal bool IsSetTableName()
{
return this._tableName != null;
}
///
/// Gets and sets the property TimeRangeLowerBound.
///
/// Only backups created after this time are listed. TimeRangeLowerBound
/// is inclusive.
///
///
public DateTime TimeRangeLowerBound
{
get { return this._timeRangeLowerBound.GetValueOrDefault(); }
set { this._timeRangeLowerBound = value; }
}
// Check to see if TimeRangeLowerBound property is set
internal bool IsSetTimeRangeLowerBound()
{
return this._timeRangeLowerBound.HasValue;
}
///
/// Gets and sets the property TimeRangeUpperBound.
///
/// Only backups created before this time are listed. TimeRangeUpperBound
/// is exclusive.
///
///
public DateTime TimeRangeUpperBound
{
get { return this._timeRangeUpperBound.GetValueOrDefault(); }
set { this._timeRangeUpperBound = value; }
}
// Check to see if TimeRangeUpperBound property is set
internal bool IsSetTimeRangeUpperBound()
{
return this._timeRangeUpperBound.HasValue;
}
}
}