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

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

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

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

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

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

*/ inline ListVirtualMachinesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

A list of your VirtualMachine objects, ordered by their Amazon * Resource Names (ARNs).

*/ inline const Aws::Vector& GetVirtualMachines() const{ return m_virtualMachines; } /** *

A list of your VirtualMachine objects, ordered by their Amazon * Resource Names (ARNs).

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

A list of your VirtualMachine objects, ordered by their Amazon * Resource Names (ARNs).

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

A list of your VirtualMachine objects, ordered by their Amazon * Resource Names (ARNs).

*/ inline ListVirtualMachinesResult& WithVirtualMachines(const Aws::Vector& value) { SetVirtualMachines(value); return *this;} /** *

A list of your VirtualMachine objects, ordered by their Amazon * Resource Names (ARNs).

*/ inline ListVirtualMachinesResult& WithVirtualMachines(Aws::Vector&& value) { SetVirtualMachines(std::move(value)); return *this;} /** *

A list of your VirtualMachine objects, ordered by their Amazon * Resource Names (ARNs).

*/ inline ListVirtualMachinesResult& AddVirtualMachines(const VirtualMachine& value) { m_virtualMachines.push_back(value); return *this; } /** *

A list of your VirtualMachine objects, ordered by their Amazon * Resource Names (ARNs).

*/ inline ListVirtualMachinesResult& AddVirtualMachines(VirtualMachine&& value) { m_virtualMachines.push_back(std::move(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 ListVirtualMachinesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListVirtualMachinesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListVirtualMachinesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_nextToken; Aws::Vector m_virtualMachines; Aws::String m_requestId; }; } // namespace Model } // namespace BackupGateway } // namespace Aws