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

The updated 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 updated 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 updated 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 updated 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 updated 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 updated host of the hypervisor. This can be either an IP address or a * fully-qualified domain name (FQDN).

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The Amazon Resource Name (ARN) of the group of gateways within the requested * log.

*/ inline const Aws::String& GetLogGroupArn() const{ return m_logGroupArn; } /** *

The Amazon Resource Name (ARN) of the group of gateways within the requested * log.

*/ inline bool LogGroupArnHasBeenSet() const { return m_logGroupArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the group of gateways within the requested * log.

*/ inline void SetLogGroupArn(const Aws::String& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = value; } /** *

The Amazon Resource Name (ARN) of the group of gateways within the requested * log.

*/ inline void SetLogGroupArn(Aws::String&& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the group of gateways within the requested * log.

*/ inline void SetLogGroupArn(const char* value) { m_logGroupArnHasBeenSet = true; m_logGroupArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the group of gateways within the requested * log.

*/ inline UpdateHypervisorRequest& WithLogGroupArn(const Aws::String& value) { SetLogGroupArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the group of gateways within the requested * log.

*/ inline UpdateHypervisorRequest& WithLogGroupArn(Aws::String&& value) { SetLogGroupArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the group of gateways within the requested * log.

*/ inline UpdateHypervisorRequest& WithLogGroupArn(const char* value) { SetLogGroupArn(value); return *this;} /** *

The updated name for the hypervisor

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

The updated name for the hypervisor

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

The updated name for the hypervisor

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

The updated name for the hypervisor

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

The updated name for the hypervisor

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

The updated name for the hypervisor

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

The updated name for the hypervisor

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

The updated name for the hypervisor

*/ inline UpdateHypervisorRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The updated password for the hypervisor.

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

The updated password for the hypervisor.

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

The updated password for the hypervisor.

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

The updated password for the hypervisor.

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

The updated password for the hypervisor.

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

The updated password for the hypervisor.

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

The updated password for the hypervisor.

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

The updated password for the hypervisor.

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

The updated username for the hypervisor.

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

The updated username for the hypervisor.

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

The updated username for the hypervisor.

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

The updated username for the hypervisor.

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

The updated username for the hypervisor.

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

The updated username for the hypervisor.

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

The updated username for the hypervisor.

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

The updated username for the hypervisor.

*/ inline UpdateHypervisorRequest& WithUsername(const char* value) { SetUsername(value); return *this;} private: Aws::String m_host; bool m_hostHasBeenSet = false; Aws::String m_hypervisorArn; bool m_hypervisorArnHasBeenSet = false; Aws::String m_logGroupArn; bool m_logGroupArnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_password; bool m_passwordHasBeenSet = false; Aws::String m_username; bool m_usernameHasBeenSet = false; }; } // namespace Model } // namespace BackupGateway } // namespace Aws