/** * 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 TestHypervisorConfigurationRequest : public BackupGatewayRequest { public: AWS_BACKUPGATEWAY_API TestHypervisorConfigurationRequest(); // 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 "TestHypervisorConfiguration"; } AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override; AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the gateway to the hypervisor to test.

*/ inline const Aws::String& GetGatewayArn() const{ return m_gatewayArn; } /** *

The Amazon Resource Name (ARN) of the gateway to the hypervisor to test.

*/ inline bool GatewayArnHasBeenSet() const { return m_gatewayArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the gateway to the hypervisor to test.

*/ inline void SetGatewayArn(const Aws::String& value) { m_gatewayArnHasBeenSet = true; m_gatewayArn = value; } /** *

The Amazon Resource Name (ARN) of the gateway to the hypervisor to test.

*/ inline void SetGatewayArn(Aws::String&& value) { m_gatewayArnHasBeenSet = true; m_gatewayArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the gateway to the hypervisor to test.

*/ inline void SetGatewayArn(const char* value) { m_gatewayArnHasBeenSet = true; m_gatewayArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the gateway to the hypervisor to test.

*/ inline TestHypervisorConfigurationRequest& WithGatewayArn(const Aws::String& value) { SetGatewayArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the gateway to the hypervisor to test.

*/ inline TestHypervisorConfigurationRequest& WithGatewayArn(Aws::String&& value) { SetGatewayArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the gateway to the hypervisor to test.

*/ inline TestHypervisorConfigurationRequest& WithGatewayArn(const char* value) { SetGatewayArn(value); return *this;} /** *

The server host of the hypervisor. This can be either an IP address or a * fully-qualified domain name (FQDN).

*/ inline const Aws::String& GetHost() const{ return m_host; } /** *

The server host of the hypervisor. This can be either an IP address or a * fully-qualified domain name (FQDN).

*/ inline bool HostHasBeenSet() const { return m_hostHasBeenSet; } /** *

The server host of the hypervisor. This can be either an IP address or a * fully-qualified domain name (FQDN).

*/ inline void SetHost(const Aws::String& value) { m_hostHasBeenSet = true; m_host = value; } /** *

The server host of the hypervisor. This can be either an IP address or a * fully-qualified domain name (FQDN).

*/ inline void SetHost(Aws::String&& value) { m_hostHasBeenSet = true; m_host = std::move(value); } /** *

The server host of the hypervisor. This can be either an IP address or a * fully-qualified domain name (FQDN).

*/ inline void SetHost(const char* value) { m_hostHasBeenSet = true; m_host.assign(value); } /** *

The server host of the hypervisor. This can be either an IP address or a * fully-qualified domain name (FQDN).

*/ inline TestHypervisorConfigurationRequest& WithHost(const Aws::String& value) { SetHost(value); return *this;} /** *

The server host of the hypervisor. This can be either an IP address or a * fully-qualified domain name (FQDN).

*/ inline TestHypervisorConfigurationRequest& WithHost(Aws::String&& value) { SetHost(std::move(value)); return *this;} /** *

The server host of the hypervisor. This can be either an IP address or a * fully-qualified domain name (FQDN).

*/ inline TestHypervisorConfigurationRequest& WithHost(const char* value) { SetHost(value); return *this;} /** *

The password for the hypervisor.

*/ inline const Aws::String& GetPassword() const{ return m_password; } /** *

The password for the hypervisor.

*/ inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; } /** *

The password for the hypervisor.

*/ inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; } /** *

The password for the hypervisor.

*/ inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); } /** *

The password for the hypervisor.

*/ inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); } /** *

The password for the hypervisor.

*/ inline TestHypervisorConfigurationRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;} /** *

The password for the hypervisor.

*/ inline TestHypervisorConfigurationRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;} /** *

The password for the hypervisor.

*/ inline TestHypervisorConfigurationRequest& WithPassword(const char* value) { SetPassword(value); return *this;} /** *

The username for the hypervisor.

*/ inline const Aws::String& GetUsername() const{ return m_username; } /** *

The username for the hypervisor.

*/ inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; } /** *

The username for the hypervisor.

*/ inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; } /** *

The username for the hypervisor.

*/ inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); } /** *

The username for the hypervisor.

*/ inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); } /** *

The username for the hypervisor.

*/ inline TestHypervisorConfigurationRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;} /** *

The username for the hypervisor.

*/ inline TestHypervisorConfigurationRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;} /** *

The username for the hypervisor.

*/ inline TestHypervisorConfigurationRequest& WithUsername(const char* value) { SetUsername(value); return *this;} private: Aws::String m_gatewayArn; bool m_gatewayArnHasBeenSet = false; Aws::String m_host; bool m_hostHasBeenSet = false; Aws::String m_password; bool m_passwordHasBeenSet = false; Aws::String m_username; bool m_usernameHasBeenSet = false; }; } // namespace Model } // namespace BackupGateway } // namespace Aws