/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace DynamoDB { namespace Model { /** */ class ListBackupsRequest : public DynamoDBRequest { public: AWS_DYNAMODB_API ListBackupsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ListBackups"; } AWS_DYNAMODB_API Aws::String SerializePayload() const override; AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The backups from the table specified by TableName are listed. *

*/ inline const Aws::String& GetTableName() const{ return m_tableName; } /** *

The backups from the table specified by TableName are listed. *

*/ inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; } /** *

The backups from the table specified by TableName are listed. *

*/ inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; } /** *

The backups from the table specified by TableName are listed. *

*/ inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); } /** *

The backups from the table specified by TableName are listed. *

*/ inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); } /** *

The backups from the table specified by TableName are listed. *

*/ inline ListBackupsRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;} /** *

The backups from the table specified by TableName are listed. *

*/ inline ListBackupsRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;} /** *

The backups from the table specified by TableName are listed. *

*/ inline ListBackupsRequest& WithTableName(const char* value) { SetTableName(value); return *this;} /** *

Maximum number of backups to return at once.

*/ inline int GetLimit() const{ return m_limit; } /** *

Maximum number of backups to return at once.

*/ inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; } /** *

Maximum number of backups to return at once.

*/ inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; } /** *

Maximum number of backups to return at once.

*/ inline ListBackupsRequest& WithLimit(int value) { SetLimit(value); return *this;} /** *

Only backups created after this time are listed. * TimeRangeLowerBound is inclusive.

*/ inline const Aws::Utils::DateTime& GetTimeRangeLowerBound() const{ return m_timeRangeLowerBound; } /** *

Only backups created after this time are listed. * TimeRangeLowerBound is inclusive.

*/ inline bool TimeRangeLowerBoundHasBeenSet() const { return m_timeRangeLowerBoundHasBeenSet; } /** *

Only backups created after this time are listed. * TimeRangeLowerBound is inclusive.

*/ inline void SetTimeRangeLowerBound(const Aws::Utils::DateTime& value) { m_timeRangeLowerBoundHasBeenSet = true; m_timeRangeLowerBound = value; } /** *

Only backups created after this time are listed. * TimeRangeLowerBound is inclusive.

*/ inline void SetTimeRangeLowerBound(Aws::Utils::DateTime&& value) { m_timeRangeLowerBoundHasBeenSet = true; m_timeRangeLowerBound = std::move(value); } /** *

Only backups created after this time are listed. * TimeRangeLowerBound is inclusive.

*/ inline ListBackupsRequest& WithTimeRangeLowerBound(const Aws::Utils::DateTime& value) { SetTimeRangeLowerBound(value); return *this;} /** *

Only backups created after this time are listed. * TimeRangeLowerBound is inclusive.

*/ inline ListBackupsRequest& WithTimeRangeLowerBound(Aws::Utils::DateTime&& value) { SetTimeRangeLowerBound(std::move(value)); return *this;} /** *

Only backups created before this time are listed. * TimeRangeUpperBound is exclusive.

*/ inline const Aws::Utils::DateTime& GetTimeRangeUpperBound() const{ return m_timeRangeUpperBound; } /** *

Only backups created before this time are listed. * TimeRangeUpperBound is exclusive.

*/ inline bool TimeRangeUpperBoundHasBeenSet() const { return m_timeRangeUpperBoundHasBeenSet; } /** *

Only backups created before this time are listed. * TimeRangeUpperBound is exclusive.

*/ inline void SetTimeRangeUpperBound(const Aws::Utils::DateTime& value) { m_timeRangeUpperBoundHasBeenSet = true; m_timeRangeUpperBound = value; } /** *

Only backups created before this time are listed. * TimeRangeUpperBound is exclusive.

*/ inline void SetTimeRangeUpperBound(Aws::Utils::DateTime&& value) { m_timeRangeUpperBoundHasBeenSet = true; m_timeRangeUpperBound = std::move(value); } /** *

Only backups created before this time are listed. * TimeRangeUpperBound is exclusive.

*/ inline ListBackupsRequest& WithTimeRangeUpperBound(const Aws::Utils::DateTime& value) { SetTimeRangeUpperBound(value); return *this;} /** *

Only backups created before this time are listed. * TimeRangeUpperBound is exclusive.

*/ inline ListBackupsRequest& WithTimeRangeUpperBound(Aws::Utils::DateTime&& value) { SetTimeRangeUpperBound(std::move(value)); return *this;} /** *

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.

*/ inline const Aws::String& GetExclusiveStartBackupArn() const{ return m_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.

*/ inline bool ExclusiveStartBackupArnHasBeenSet() const { return m_exclusiveStartBackupArnHasBeenSet; } /** *

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.

*/ inline void SetExclusiveStartBackupArn(const Aws::String& value) { m_exclusiveStartBackupArnHasBeenSet = true; m_exclusiveStartBackupArn = value; } /** *

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.

*/ inline void SetExclusiveStartBackupArn(Aws::String&& value) { m_exclusiveStartBackupArnHasBeenSet = true; m_exclusiveStartBackupArn = std::move(value); } /** *

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.

*/ inline void SetExclusiveStartBackupArn(const char* value) { m_exclusiveStartBackupArnHasBeenSet = true; m_exclusiveStartBackupArn.assign(value); } /** *

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.

*/ inline ListBackupsRequest& WithExclusiveStartBackupArn(const Aws::String& value) { SetExclusiveStartBackupArn(value); return *this;} /** *

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.

*/ inline ListBackupsRequest& WithExclusiveStartBackupArn(Aws::String&& value) { SetExclusiveStartBackupArn(std::move(value)); return *this;} /** *

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.

*/ inline ListBackupsRequest& WithExclusiveStartBackupArn(const char* value) { SetExclusiveStartBackupArn(value); return *this;} /** *

The backups from the table specified by BackupType are * listed.

Where BackupType can be:

  • * USER - On-demand backup created by you. (The default setting if no * other backup types are specified.)

  • SYSTEM - * On-demand backup automatically created by DynamoDB.

  • * ALL - All types of on-demand backups (USER and SYSTEM).

  • *
*/ inline const BackupTypeFilter& GetBackupType() const{ return m_backupType; } /** *

The backups from the table specified by BackupType are * listed.

Where BackupType can be:

  • * USER - On-demand backup created by you. (The default setting if no * other backup types are specified.)

  • SYSTEM - * On-demand backup automatically created by DynamoDB.

  • * ALL - All types of on-demand backups (USER and SYSTEM).

  • *
*/ inline bool BackupTypeHasBeenSet() const { return m_backupTypeHasBeenSet; } /** *

The backups from the table specified by BackupType are * listed.

Where BackupType can be:

  • * USER - On-demand backup created by you. (The default setting if no * other backup types are specified.)

  • SYSTEM - * On-demand backup automatically created by DynamoDB.

  • * ALL - All types of on-demand backups (USER and SYSTEM).

  • *
*/ inline void SetBackupType(const BackupTypeFilter& value) { m_backupTypeHasBeenSet = true; m_backupType = value; } /** *

The backups from the table specified by BackupType are * listed.

Where BackupType can be:

  • * USER - On-demand backup created by you. (The default setting if no * other backup types are specified.)

  • SYSTEM - * On-demand backup automatically created by DynamoDB.

  • * ALL - All types of on-demand backups (USER and SYSTEM).

  • *
*/ inline void SetBackupType(BackupTypeFilter&& value) { m_backupTypeHasBeenSet = true; m_backupType = std::move(value); } /** *

The backups from the table specified by BackupType are * listed.

Where BackupType can be:

  • * USER - On-demand backup created by you. (The default setting if no * other backup types are specified.)

  • SYSTEM - * On-demand backup automatically created by DynamoDB.

  • * ALL - All types of on-demand backups (USER and SYSTEM).

  • *
*/ inline ListBackupsRequest& WithBackupType(const BackupTypeFilter& value) { SetBackupType(value); return *this;} /** *

The backups from the table specified by BackupType are * listed.

Where BackupType can be:

  • * USER - On-demand backup created by you. (The default setting if no * other backup types are specified.)

  • SYSTEM - * On-demand backup automatically created by DynamoDB.

  • * ALL - All types of on-demand backups (USER and SYSTEM).

  • *
*/ inline ListBackupsRequest& WithBackupType(BackupTypeFilter&& value) { SetBackupType(std::move(value)); return *this;} private: Aws::String m_tableName; bool m_tableNameHasBeenSet = false; int m_limit; bool m_limitHasBeenSet = false; Aws::Utils::DateTime m_timeRangeLowerBound; bool m_timeRangeLowerBoundHasBeenSet = false; Aws::Utils::DateTime m_timeRangeUpperBound; bool m_timeRangeUpperBoundHasBeenSet = false; Aws::String m_exclusiveStartBackupArn; bool m_exclusiveStartBackupArnHasBeenSet = false; BackupTypeFilter m_backupType; bool m_backupTypeHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws