/** * 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 Backup { namespace Model { class ListProtectedResourcesResult { public: AWS_BACKUP_API ListProtectedResourcesResult(); AWS_BACKUP_API ListProtectedResourcesResult(const Aws::AmazonWebServiceResult& result); AWS_BACKUP_API ListProtectedResourcesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An array of resources successfully backed up by Backup including the time the * resource was saved, an Amazon Resource Name (ARN) of the resource, and a * resource type.

*/ inline const Aws::Vector& GetResults() const{ return m_results; } /** *

An array of resources successfully backed up by Backup including the time the * resource was saved, an Amazon Resource Name (ARN) of the resource, and a * resource type.

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

An array of resources successfully backed up by Backup including the time the * resource was saved, an Amazon Resource Name (ARN) of the resource, and a * resource type.

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

An array of resources successfully backed up by Backup including the time the * resource was saved, an Amazon Resource Name (ARN) of the resource, and a * resource type.

*/ inline ListProtectedResourcesResult& WithResults(const Aws::Vector& value) { SetResults(value); return *this;} /** *

An array of resources successfully backed up by Backup including the time the * resource was saved, an Amazon Resource Name (ARN) of the resource, and a * resource type.

*/ inline ListProtectedResourcesResult& WithResults(Aws::Vector&& value) { SetResults(std::move(value)); return *this;} /** *

An array of resources successfully backed up by Backup including the time the * resource was saved, an Amazon Resource Name (ARN) of the resource, and a * resource type.

*/ inline ListProtectedResourcesResult& AddResults(const ProtectedResource& value) { m_results.push_back(value); return *this; } /** *

An array of resources successfully backed up by Backup including the time the * resource was saved, an Amazon Resource Name (ARN) of the resource, and a * resource type.

*/ inline ListProtectedResourcesResult& AddResults(ProtectedResource&& value) { m_results.push_back(std::move(value)); return *this; } /** *

The next item following a partial list of returned items. For example, if a * request is made to return maxResults number of items, * NextToken allows you to return more items in your list starting at * the location pointed to by the next token.

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

The next item following a partial list of returned items. For example, if a * request is made to return maxResults number of items, * NextToken allows you to return more items in your list starting at * the location pointed to by the next token.

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

The next item following a partial list of returned items. For example, if a * request is made to return maxResults number of items, * NextToken allows you to return more items in your list starting at * the location pointed to by the next token.

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

The next item following a partial list of returned items. For example, if a * request is made to return maxResults number of items, * NextToken allows you to return more items in your list starting at * the location pointed to by the next token.

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

The next item following a partial list of returned items. For example, if a * request is made to return maxResults number of items, * NextToken allows you to return more items in your list starting at * the location pointed to by the next token.

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

The next item following a partial list of returned items. For example, if a * request is made to return maxResults number of items, * NextToken allows you to return more items in your list starting at * the location pointed to by the next token.

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

The next item following a partial list of returned items. For example, if a * request is made to return maxResults number of items, * NextToken allows you to return more items in your list starting at * the location pointed to by the next token.

*/ inline ListProtectedResourcesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline ListProtectedResourcesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListProtectedResourcesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListProtectedResourcesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_results; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace Backup } // namespace Aws