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

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 ImportHypervisorConfigurationRequest& 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 ImportHypervisorConfigurationRequest& 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 ImportHypervisorConfigurationRequest& WithHost(const char* value) { SetHost(value); return *this;} /** *

The Key Management Service for the hypervisor.

*/ inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; } /** *

The Key Management Service for the hypervisor.

*/ inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; } /** *

The Key Management Service for the hypervisor.

*/ inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; } /** *

The Key Management Service for the hypervisor.

*/ inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); } /** *

The Key Management Service for the hypervisor.

*/ inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); } /** *

The Key Management Service for the hypervisor.

*/ inline ImportHypervisorConfigurationRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;} /** *

The Key Management Service for the hypervisor.

*/ inline ImportHypervisorConfigurationRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;} /** *

The Key Management Service for the hypervisor.

*/ inline ImportHypervisorConfigurationRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;} /** *

The name of the hypervisor.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the hypervisor.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the hypervisor.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the hypervisor.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the hypervisor.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the hypervisor.

*/ inline ImportHypervisorConfigurationRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the hypervisor.

*/ inline ImportHypervisorConfigurationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the hypervisor.

*/ inline ImportHypervisorConfigurationRequest& WithName(const char* value) { SetName(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 ImportHypervisorConfigurationRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;} /** *

The password for the hypervisor.

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

The password for the hypervisor.

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

The tags of the hypervisor configuration to import.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags of the hypervisor configuration to import.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags of the hypervisor configuration to import.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags of the hypervisor configuration to import.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags of the hypervisor configuration to import.

*/ inline ImportHypervisorConfigurationRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags of the hypervisor configuration to import.

*/ inline ImportHypervisorConfigurationRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags of the hypervisor configuration to import.

*/ inline ImportHypervisorConfigurationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags of the hypervisor configuration to import.

*/ inline ImportHypervisorConfigurationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(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 ImportHypervisorConfigurationRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;} /** *

The username for the hypervisor.

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

The username for the hypervisor.

*/ inline ImportHypervisorConfigurationRequest& WithUsername(const char* value) { SetUsername(value); return *this;} private: Aws::String m_host; bool m_hostHasBeenSet = false; Aws::String m_kmsKeyArn; bool m_kmsKeyArnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_password; bool m_passwordHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_username; bool m_usernameHasBeenSet = false; }; } // namespace Model } // namespace BackupGateway } // namespace Aws