/** * 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 FSx { namespace Model { /** *

The request object for DescribeBackups operation.

See * Also:

AWS * API Reference

*/ class AWS_FSX_API DescribeBackupsRequest : public FSxRequest { public: DescribeBackupsRequest(); // 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 "DescribeBackups"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

IDs of the backups you want to retrieve (String). This overrides any filters. * If any IDs are not found, BackupNotFound will be thrown.

*/ inline const Aws::Vector& GetBackupIds() const{ return m_backupIds; } /** *

IDs of the backups you want to retrieve (String). This overrides any filters. * If any IDs are not found, BackupNotFound will be thrown.

*/ inline bool BackupIdsHasBeenSet() const { return m_backupIdsHasBeenSet; } /** *

IDs of the backups you want to retrieve (String). This overrides any filters. * If any IDs are not found, BackupNotFound will be thrown.

*/ inline void SetBackupIds(const Aws::Vector& value) { m_backupIdsHasBeenSet = true; m_backupIds = value; } /** *

IDs of the backups you want to retrieve (String). This overrides any filters. * If any IDs are not found, BackupNotFound will be thrown.

*/ inline void SetBackupIds(Aws::Vector&& value) { m_backupIdsHasBeenSet = true; m_backupIds = std::move(value); } /** *

IDs of the backups you want to retrieve (String). This overrides any filters. * If any IDs are not found, BackupNotFound will be thrown.

*/ inline DescribeBackupsRequest& WithBackupIds(const Aws::Vector& value) { SetBackupIds(value); return *this;} /** *

IDs of the backups you want to retrieve (String). This overrides any filters. * If any IDs are not found, BackupNotFound will be thrown.

*/ inline DescribeBackupsRequest& WithBackupIds(Aws::Vector&& value) { SetBackupIds(std::move(value)); return *this;} /** *

IDs of the backups you want to retrieve (String). This overrides any filters. * If any IDs are not found, BackupNotFound will be thrown.

*/ inline DescribeBackupsRequest& AddBackupIds(const Aws::String& value) { m_backupIdsHasBeenSet = true; m_backupIds.push_back(value); return *this; } /** *

IDs of the backups you want to retrieve (String). This overrides any filters. * If any IDs are not found, BackupNotFound will be thrown.

*/ inline DescribeBackupsRequest& AddBackupIds(Aws::String&& value) { m_backupIdsHasBeenSet = true; m_backupIds.push_back(std::move(value)); return *this; } /** *

IDs of the backups you want to retrieve (String). This overrides any filters. * If any IDs are not found, BackupNotFound will be thrown.

*/ inline DescribeBackupsRequest& AddBackupIds(const char* value) { m_backupIdsHasBeenSet = true; m_backupIds.push_back(value); return *this; } /** *

Filters structure. Supported names are file-system-id and backup-type.

*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

Filters structure. Supported names are file-system-id and backup-type.

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

Filters structure. Supported names are file-system-id and backup-type.

*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

Filters structure. Supported names are file-system-id and backup-type.

*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

Filters structure. Supported names are file-system-id and backup-type.

*/ inline DescribeBackupsRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

Filters structure. Supported names are file-system-id and backup-type.

*/ inline DescribeBackupsRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

Filters structure. Supported names are file-system-id and backup-type.

*/ inline DescribeBackupsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

Filters structure. Supported names are file-system-id and backup-type.

*/ inline DescribeBackupsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } /** *

Maximum number of backups to return in the response (integer). This parameter * value must be greater than 0. The number of items that Amazon FSx returns is the * minimum of the MaxResults parameter specified in the request and * the service's internal maximum number of items per page.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

Maximum number of backups to return in the response (integer). This parameter * value must be greater than 0. The number of items that Amazon FSx returns is the * minimum of the MaxResults parameter specified in the request and * the service's internal maximum number of items per page.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

Maximum number of backups to return in the response (integer). This parameter * value must be greater than 0. The number of items that Amazon FSx returns is the * minimum of the MaxResults parameter specified in the request and * the service's internal maximum number of items per page.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

Maximum number of backups to return in the response (integer). This parameter * value must be greater than 0. The number of items that Amazon FSx returns is the * minimum of the MaxResults parameter specified in the request and * the service's internal maximum number of items per page.

*/ inline DescribeBackupsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

Opaque pagination token returned from a previous DescribeBackups * operation (String). If a token present, the action continues the list from where * the returning call left off.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

Opaque pagination token returned from a previous DescribeBackups * operation (String). If a token present, the action continues the list from where * the returning call left off.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

Opaque pagination token returned from a previous DescribeBackups * operation (String). If a token present, the action continues the list from where * the returning call left off.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

Opaque pagination token returned from a previous DescribeBackups * operation (String). If a token present, the action continues the list from where * the returning call left off.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

Opaque pagination token returned from a previous DescribeBackups * operation (String). If a token present, the action continues the list from where * the returning call left off.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

Opaque pagination token returned from a previous DescribeBackups * operation (String). If a token present, the action continues the list from where * the returning call left off.

*/ inline DescribeBackupsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

Opaque pagination token returned from a previous DescribeBackups * operation (String). If a token present, the action continues the list from where * the returning call left off.

*/ inline DescribeBackupsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

Opaque pagination token returned from a previous DescribeBackups * operation (String). If a token present, the action continues the list from where * the returning call left off.

*/ inline DescribeBackupsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Vector m_backupIds; bool m_backupIdsHasBeenSet; Aws::Vector m_filters; bool m_filtersHasBeenSet; int m_maxResults; bool m_maxResultsHasBeenSet; Aws::String m_nextToken; bool m_nextTokenHasBeenSet; }; } // namespace Model } // namespace FSx } // namespace Aws