/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace BackupGateway { namespace Model { /** *

Represents the hypervisor's permissions to which the gateway will * connect.

A hypervisor is hardware, software, or firmware that creates and * manages virtual machines, and allocates resources to them.

See * Also:

AWS * API Reference

*/ class Hypervisor { public: AWS_BACKUPGATEWAY_API Hypervisor(); AWS_BACKUPGATEWAY_API Hypervisor(Aws::Utils::Json::JsonView jsonValue); AWS_BACKUPGATEWAY_API Hypervisor& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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

The Amazon Resource Name (ARN) of the hypervisor.

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

The Amazon Resource Name (ARN) of the hypervisor.

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

The Amazon Resource Name (ARN) of the hypervisor.

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

The Amazon Resource Name (ARN) of the hypervisor.

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

The Amazon Resource Name (ARN) of the hypervisor.

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

The Amazon Resource Name (ARN) of the hypervisor.

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

The Amazon Resource Name (ARN) of the hypervisor.

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

The Amazon Resource Name (ARN) of the hypervisor.

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

The Amazon Resource Name (ARN) of the Key Management Service used to encrypt * the hypervisor.

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

The Amazon Resource Name (ARN) of the Key Management Service used to encrypt * the hypervisor.

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

The Amazon Resource Name (ARN) of the Key Management Service used to encrypt * the hypervisor.

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

The Amazon Resource Name (ARN) of the Key Management Service used to encrypt * the hypervisor.

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

The Amazon Resource Name (ARN) of the Key Management Service used to encrypt * the hypervisor.

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

The Amazon Resource Name (ARN) of the Key Management Service used to encrypt * the hypervisor.

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

The Amazon Resource Name (ARN) of the Key Management Service used to encrypt * the hypervisor.

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

The Amazon Resource Name (ARN) of the Key Management Service used to encrypt * the hypervisor.

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

The name of the hypervisor.

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

The name of the hypervisor.

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

The state of the hypervisor.

*/ inline const HypervisorState& GetState() const{ return m_state; } /** *

The state of the hypervisor.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the hypervisor.

*/ inline void SetState(const HypervisorState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the hypervisor.

*/ inline void SetState(HypervisorState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the hypervisor.

*/ inline Hypervisor& WithState(const HypervisorState& value) { SetState(value); return *this;} /** *

The state of the hypervisor.

*/ inline Hypervisor& WithState(HypervisorState&& value) { SetState(std::move(value)); return *this;} private: Aws::String m_host; bool m_hostHasBeenSet = false; Aws::String m_hypervisorArn; bool m_hypervisorArnHasBeenSet = false; Aws::String m_kmsKeyArn; bool m_kmsKeyArnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; HypervisorState m_state; bool m_stateHasBeenSet = false; }; } // namespace Model } // namespace BackupGateway } // namespace Aws