/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace BackupGateway { namespace Model { /** */ class ListVirtualMachinesRequest : public BackupGatewayRequest { public: AWS_BACKUPGATEWAY_API ListVirtualMachinesRequest(); // 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 "ListVirtualMachines"; } AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override; AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the hypervisor connected to your virtual * machine.

*/ inline const Aws::String& GetHypervisorArn() const{ return m_hypervisorArn; } /** *

The Amazon Resource Name (ARN) of the hypervisor connected to your virtual * machine.

*/ inline bool HypervisorArnHasBeenSet() const { return m_hypervisorArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the hypervisor connected to your virtual * machine.

*/ inline void SetHypervisorArn(const Aws::String& value) { m_hypervisorArnHasBeenSet = true; m_hypervisorArn = value; } /** *

The Amazon Resource Name (ARN) of the hypervisor connected to your virtual * machine.

*/ inline void SetHypervisorArn(Aws::String&& value) { m_hypervisorArnHasBeenSet = true; m_hypervisorArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the hypervisor connected to your virtual * machine.

*/ inline void SetHypervisorArn(const char* value) { m_hypervisorArnHasBeenSet = true; m_hypervisorArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the hypervisor connected to your virtual * machine.

*/ inline ListVirtualMachinesRequest& WithHypervisorArn(const Aws::String& value) { SetHypervisorArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the hypervisor connected to your virtual * machine.

*/ inline ListVirtualMachinesRequest& WithHypervisorArn(Aws::String&& value) { SetHypervisorArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the hypervisor connected to your virtual * machine.

*/ inline ListVirtualMachinesRequest& WithHypervisorArn(const char* value) { SetHypervisorArn(value); return *this;} /** *

The maximum number of virtual machines to list.

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

The maximum number of virtual machines to list.

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

The maximum number of virtual machines to list.

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

The maximum number of virtual machines to list.

*/ inline ListVirtualMachinesRequest& WithMaxResults(int value) { SetMaxResults(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 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 bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

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_nextTokenHasBeenSet = true; 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_nextTokenHasBeenSet = true; 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_nextTokenHasBeenSet = true; 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 ListVirtualMachinesRequest& 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 ListVirtualMachinesRequest& 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 ListVirtualMachinesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_hypervisorArn; bool m_hypervisorArnHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace BackupGateway } // namespace Aws