/** * 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 { /** *

Your VirtualMachine objects, ordered by their Amazon Resource * Names (ARNs).

See Also:

AWS * API Reference

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

The host name of the virtual machine.

*/ inline const Aws::String& GetHostName() const{ return m_hostName; } /** *

The host name of the virtual machine.

*/ inline bool HostNameHasBeenSet() const { return m_hostNameHasBeenSet; } /** *

The host name of the virtual machine.

*/ inline void SetHostName(const Aws::String& value) { m_hostNameHasBeenSet = true; m_hostName = value; } /** *

The host name of the virtual machine.

*/ inline void SetHostName(Aws::String&& value) { m_hostNameHasBeenSet = true; m_hostName = std::move(value); } /** *

The host name of the virtual machine.

*/ inline void SetHostName(const char* value) { m_hostNameHasBeenSet = true; m_hostName.assign(value); } /** *

The host name of the virtual machine.

*/ inline VirtualMachineDetails& WithHostName(const Aws::String& value) { SetHostName(value); return *this;} /** *

The host name of the virtual machine.

*/ inline VirtualMachineDetails& WithHostName(Aws::String&& value) { SetHostName(std::move(value)); return *this;} /** *

The host name of the virtual machine.

*/ inline VirtualMachineDetails& WithHostName(const char* value) { SetHostName(value); return *this;} /** *

The ID of the virtual machine's hypervisor.

*/ inline const Aws::String& GetHypervisorId() const{ return m_hypervisorId; } /** *

The ID of the virtual machine's hypervisor.

*/ inline bool HypervisorIdHasBeenSet() const { return m_hypervisorIdHasBeenSet; } /** *

The ID of the virtual machine's hypervisor.

*/ inline void SetHypervisorId(const Aws::String& value) { m_hypervisorIdHasBeenSet = true; m_hypervisorId = value; } /** *

The ID of the virtual machine's hypervisor.

*/ inline void SetHypervisorId(Aws::String&& value) { m_hypervisorIdHasBeenSet = true; m_hypervisorId = std::move(value); } /** *

The ID of the virtual machine's hypervisor.

*/ inline void SetHypervisorId(const char* value) { m_hypervisorIdHasBeenSet = true; m_hypervisorId.assign(value); } /** *

The ID of the virtual machine's hypervisor.

*/ inline VirtualMachineDetails& WithHypervisorId(const Aws::String& value) { SetHypervisorId(value); return *this;} /** *

The ID of the virtual machine's hypervisor.

*/ inline VirtualMachineDetails& WithHypervisorId(Aws::String&& value) { SetHypervisorId(std::move(value)); return *this;} /** *

The ID of the virtual machine's hypervisor.

*/ inline VirtualMachineDetails& WithHypervisorId(const char* value) { SetHypervisorId(value); return *this;} /** *

The most recent date a virtual machine was backed up, in Unix format and UTC * time.

*/ inline const Aws::Utils::DateTime& GetLastBackupDate() const{ return m_lastBackupDate; } /** *

The most recent date a virtual machine was backed up, in Unix format and UTC * time.

*/ inline bool LastBackupDateHasBeenSet() const { return m_lastBackupDateHasBeenSet; } /** *

The most recent date a virtual machine was backed up, in Unix format and UTC * time.

*/ inline void SetLastBackupDate(const Aws::Utils::DateTime& value) { m_lastBackupDateHasBeenSet = true; m_lastBackupDate = value; } /** *

The most recent date a virtual machine was backed up, in Unix format and UTC * time.

*/ inline void SetLastBackupDate(Aws::Utils::DateTime&& value) { m_lastBackupDateHasBeenSet = true; m_lastBackupDate = std::move(value); } /** *

The most recent date a virtual machine was backed up, in Unix format and UTC * time.

*/ inline VirtualMachineDetails& WithLastBackupDate(const Aws::Utils::DateTime& value) { SetLastBackupDate(value); return *this;} /** *

The most recent date a virtual machine was backed up, in Unix format and UTC * time.

*/ inline VirtualMachineDetails& WithLastBackupDate(Aws::Utils::DateTime&& value) { SetLastBackupDate(std::move(value)); return *this;} /** *

The name of the virtual machine.

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

The name of the virtual machine.

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

The name of the virtual machine.

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

The name of the virtual machine.

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

The name of the virtual machine.

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

The name of the virtual machine.

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

The name of the virtual machine.

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

The name of the virtual machine.

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

The path of the virtual machine.

*/ inline const Aws::String& GetPath() const{ return m_path; } /** *

The path of the virtual machine.

*/ inline bool PathHasBeenSet() const { return m_pathHasBeenSet; } /** *

The path of the virtual machine.

*/ inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; } /** *

The path of the virtual machine.

*/ inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); } /** *

The path of the virtual machine.

*/ inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); } /** *

The path of the virtual machine.

*/ inline VirtualMachineDetails& WithPath(const Aws::String& value) { SetPath(value); return *this;} /** *

The path of the virtual machine.

*/ inline VirtualMachineDetails& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;} /** *

The path of the virtual machine.

*/ inline VirtualMachineDetails& WithPath(const char* value) { SetPath(value); return *this;} /** *

The Amazon Resource Name (ARN) of the virtual machine. For example, * arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The Amazon Resource Name (ARN) of the virtual machine. For example, * arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the virtual machine. For example, * arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The Amazon Resource Name (ARN) of the virtual machine. For example, * arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the virtual machine. For example, * arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the virtual machine. For example, * arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL.

*/ inline VirtualMachineDetails& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the virtual machine. For example, * arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL.

*/ inline VirtualMachineDetails& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the virtual machine. For example, * arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL.

*/ inline VirtualMachineDetails& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

These are the details of the VMware tags associated with the specified * virtual machine.

*/ inline const Aws::Vector& GetVmwareTags() const{ return m_vmwareTags; } /** *

These are the details of the VMware tags associated with the specified * virtual machine.

*/ inline bool VmwareTagsHasBeenSet() const { return m_vmwareTagsHasBeenSet; } /** *

These are the details of the VMware tags associated with the specified * virtual machine.

*/ inline void SetVmwareTags(const Aws::Vector& value) { m_vmwareTagsHasBeenSet = true; m_vmwareTags = value; } /** *

These are the details of the VMware tags associated with the specified * virtual machine.

*/ inline void SetVmwareTags(Aws::Vector&& value) { m_vmwareTagsHasBeenSet = true; m_vmwareTags = std::move(value); } /** *

These are the details of the VMware tags associated with the specified * virtual machine.

*/ inline VirtualMachineDetails& WithVmwareTags(const Aws::Vector& value) { SetVmwareTags(value); return *this;} /** *

These are the details of the VMware tags associated with the specified * virtual machine.

*/ inline VirtualMachineDetails& WithVmwareTags(Aws::Vector&& value) { SetVmwareTags(std::move(value)); return *this;} /** *

These are the details of the VMware tags associated with the specified * virtual machine.

*/ inline VirtualMachineDetails& AddVmwareTags(const VmwareTag& value) { m_vmwareTagsHasBeenSet = true; m_vmwareTags.push_back(value); return *this; } /** *

These are the details of the VMware tags associated with the specified * virtual machine.

*/ inline VirtualMachineDetails& AddVmwareTags(VmwareTag&& value) { m_vmwareTagsHasBeenSet = true; m_vmwareTags.push_back(std::move(value)); return *this; } private: Aws::String m_hostName; bool m_hostNameHasBeenSet = false; Aws::String m_hypervisorId; bool m_hypervisorIdHasBeenSet = false; Aws::Utils::DateTime m_lastBackupDate; bool m_lastBackupDateHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_path; bool m_pathHasBeenSet = false; Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; Aws::Vector m_vmwareTags; bool m_vmwareTagsHasBeenSet = false; }; } // namespace Model } // namespace BackupGateway } // namespace Aws