/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CloudHSMV2 { namespace Model { class AWS_CLOUDHSMV2_API DescribeBackupsResult { public: DescribeBackupsResult(); DescribeBackupsResult(const Aws::AmazonWebServiceResult& result); DescribeBackupsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of backups.

*/ inline const Aws::Vector& GetBackups() const{ return m_backups; } /** *

A list of backups.

*/ inline void SetBackups(const Aws::Vector& value) { m_backups = value; } /** *

A list of backups.

*/ inline void SetBackups(Aws::Vector&& value) { m_backups = std::move(value); } /** *

A list of backups.

*/ inline DescribeBackupsResult& WithBackups(const Aws::Vector& value) { SetBackups(value); return *this;} /** *

A list of backups.

*/ inline DescribeBackupsResult& WithBackups(Aws::Vector&& value) { SetBackups(std::move(value)); return *this;} /** *

A list of backups.

*/ inline DescribeBackupsResult& AddBackups(const Backup& value) { m_backups.push_back(value); return *this; } /** *

A list of backups.

*/ inline DescribeBackupsResult& AddBackups(Backup&& value) { m_backups.push_back(std::move(value)); return *this; } /** *

An opaque string that indicates that the response contains only a subset of * backups. Use this value in a subsequent DescribeBackups request to * get more backups.

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

An opaque string that indicates that the response contains only a subset of * backups. Use this value in a subsequent DescribeBackups request to * get more backups.

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

An opaque string that indicates that the response contains only a subset of * backups. Use this value in a subsequent DescribeBackups request to * get more backups.

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

An opaque string that indicates that the response contains only a subset of * backups. Use this value in a subsequent DescribeBackups request to * get more backups.

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

An opaque string that indicates that the response contains only a subset of * backups. Use this value in a subsequent DescribeBackups request to * get more backups.

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

An opaque string that indicates that the response contains only a subset of * backups. Use this value in a subsequent DescribeBackups request to * get more backups.

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

An opaque string that indicates that the response contains only a subset of * backups. Use this value in a subsequent DescribeBackups request to * get more backups.

*/ inline DescribeBackupsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Vector m_backups; Aws::String m_nextToken; }; } // namespace Model } // namespace CloudHSMV2 } // namespace Aws