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

These are the details of the specified hypervisor. A hypervisor is hardware, * software, or firmware that creates and manages virtual machines, and allocates * resources to them.

See Also:

AWS * API Reference

*/ class HypervisorDetails { public: AWS_BACKUPGATEWAY_API HypervisorDetails(); AWS_BACKUPGATEWAY_API HypervisorDetails(Aws::Utils::Json::JsonView jsonValue); AWS_BACKUPGATEWAY_API HypervisorDetails& 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 HypervisorDetails& 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 HypervisorDetails& 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 HypervisorDetails& 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 HypervisorDetails& WithHypervisorArn(const Aws::String& value) { SetHypervisorArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the hypervisor.

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

The Amazon Resource Name (ARN) of the hypervisor.

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

The Amazon Resource Name (ARN) of the KMS used to encrypt the hypervisor.

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

The Amazon Resource Name (ARN) of the KMS used to encrypt the hypervisor.

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

The Amazon Resource Name (ARN) of the KMS 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 KMS 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 KMS 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 KMS used to encrypt the hypervisor.

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

The Amazon Resource Name (ARN) of the KMS used to encrypt the hypervisor.

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

The Amazon Resource Name (ARN) of the KMS used to encrypt the hypervisor.

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

This is the time when the most recent successful sync of metadata * occurred.

*/ inline const Aws::Utils::DateTime& GetLastSuccessfulMetadataSyncTime() const{ return m_lastSuccessfulMetadataSyncTime; } /** *

This is the time when the most recent successful sync of metadata * occurred.

*/ inline bool LastSuccessfulMetadataSyncTimeHasBeenSet() const { return m_lastSuccessfulMetadataSyncTimeHasBeenSet; } /** *

This is the time when the most recent successful sync of metadata * occurred.

*/ inline void SetLastSuccessfulMetadataSyncTime(const Aws::Utils::DateTime& value) { m_lastSuccessfulMetadataSyncTimeHasBeenSet = true; m_lastSuccessfulMetadataSyncTime = value; } /** *

This is the time when the most recent successful sync of metadata * occurred.

*/ inline void SetLastSuccessfulMetadataSyncTime(Aws::Utils::DateTime&& value) { m_lastSuccessfulMetadataSyncTimeHasBeenSet = true; m_lastSuccessfulMetadataSyncTime = std::move(value); } /** *

This is the time when the most recent successful sync of metadata * occurred.

*/ inline HypervisorDetails& WithLastSuccessfulMetadataSyncTime(const Aws::Utils::DateTime& value) { SetLastSuccessfulMetadataSyncTime(value); return *this;} /** *

This is the time when the most recent successful sync of metadata * occurred.

*/ inline HypervisorDetails& WithLastSuccessfulMetadataSyncTime(Aws::Utils::DateTime&& value) { SetLastSuccessfulMetadataSyncTime(std::move(value)); return *this;} /** *

This is the most recent status for the indicated metadata sync.

*/ inline const SyncMetadataStatus& GetLatestMetadataSyncStatus() const{ return m_latestMetadataSyncStatus; } /** *

This is the most recent status for the indicated metadata sync.

*/ inline bool LatestMetadataSyncStatusHasBeenSet() const { return m_latestMetadataSyncStatusHasBeenSet; } /** *

This is the most recent status for the indicated metadata sync.

*/ inline void SetLatestMetadataSyncStatus(const SyncMetadataStatus& value) { m_latestMetadataSyncStatusHasBeenSet = true; m_latestMetadataSyncStatus = value; } /** *

This is the most recent status for the indicated metadata sync.

*/ inline void SetLatestMetadataSyncStatus(SyncMetadataStatus&& value) { m_latestMetadataSyncStatusHasBeenSet = true; m_latestMetadataSyncStatus = std::move(value); } /** *

This is the most recent status for the indicated metadata sync.

*/ inline HypervisorDetails& WithLatestMetadataSyncStatus(const SyncMetadataStatus& value) { SetLatestMetadataSyncStatus(value); return *this;} /** *

This is the most recent status for the indicated metadata sync.

*/ inline HypervisorDetails& WithLatestMetadataSyncStatus(SyncMetadataStatus&& value) { SetLatestMetadataSyncStatus(std::move(value)); return *this;} /** *

This is the most recent status for the indicated metadata sync.

*/ inline const Aws::String& GetLatestMetadataSyncStatusMessage() const{ return m_latestMetadataSyncStatusMessage; } /** *

This is the most recent status for the indicated metadata sync.

*/ inline bool LatestMetadataSyncStatusMessageHasBeenSet() const { return m_latestMetadataSyncStatusMessageHasBeenSet; } /** *

This is the most recent status for the indicated metadata sync.

*/ inline void SetLatestMetadataSyncStatusMessage(const Aws::String& value) { m_latestMetadataSyncStatusMessageHasBeenSet = true; m_latestMetadataSyncStatusMessage = value; } /** *

This is the most recent status for the indicated metadata sync.

*/ inline void SetLatestMetadataSyncStatusMessage(Aws::String&& value) { m_latestMetadataSyncStatusMessageHasBeenSet = true; m_latestMetadataSyncStatusMessage = std::move(value); } /** *

This is the most recent status for the indicated metadata sync.

*/ inline void SetLatestMetadataSyncStatusMessage(const char* value) { m_latestMetadataSyncStatusMessageHasBeenSet = true; m_latestMetadataSyncStatusMessage.assign(value); } /** *

This is the most recent status for the indicated metadata sync.

*/ inline HypervisorDetails& WithLatestMetadataSyncStatusMessage(const Aws::String& value) { SetLatestMetadataSyncStatusMessage(value); return *this;} /** *

This is the most recent status for the indicated metadata sync.

*/ inline HypervisorDetails& WithLatestMetadataSyncStatusMessage(Aws::String&& value) { SetLatestMetadataSyncStatusMessage(std::move(value)); return *this;} /** *

This is the most recent status for the indicated metadata sync.

*/ inline HypervisorDetails& WithLatestMetadataSyncStatusMessage(const char* value) { SetLatestMetadataSyncStatusMessage(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 HypervisorDetails& WithLogGroupArn(const Aws::String& value) { SetLogGroupArn(value); return *this;} /** *

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

*/ inline HypervisorDetails& 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 HypervisorDetails& WithLogGroupArn(const char* value) { SetLogGroupArn(value); return *this;} /** *

This is the name of the specified hypervisor.

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

This is the name of the specified hypervisor.

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

This is the name of the specified hypervisor.

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

This is the name of the specified hypervisor.

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

This is the name of the specified hypervisor.

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

This is the name of the specified hypervisor.

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

This is the name of the specified hypervisor.

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

This is the name of the specified hypervisor.

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

This is the current state of the specified hypervisor.

The possible * states are PENDING, ONLINE, OFFLINE, or * ERROR.

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

This is the current state of the specified hypervisor.

The possible * states are PENDING, ONLINE, OFFLINE, or * ERROR.

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

This is the current state of the specified hypervisor.

The possible * states are PENDING, ONLINE, OFFLINE, or * ERROR.

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

This is the current state of the specified hypervisor.

The possible * states are PENDING, ONLINE, OFFLINE, or * ERROR.

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

This is the current state of the specified hypervisor.

The possible * states are PENDING, ONLINE, OFFLINE, or * ERROR.

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

This is the current state of the specified hypervisor.

The possible * states are PENDING, ONLINE, OFFLINE, or * ERROR.

*/ inline HypervisorDetails& 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::Utils::DateTime m_lastSuccessfulMetadataSyncTime; bool m_lastSuccessfulMetadataSyncTimeHasBeenSet = false; SyncMetadataStatus m_latestMetadataSyncStatus; bool m_latestMetadataSyncStatusHasBeenSet = false; Aws::String m_latestMetadataSyncStatusMessage; bool m_latestMetadataSyncStatusMessageHasBeenSet = false; Aws::String m_logGroupArn; bool m_logGroupArnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; HypervisorState m_state; bool m_stateHasBeenSet = false; }; } // namespace Model } // namespace BackupGateway } // namespace Aws