@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VirtualMachine extends Object implements Serializable, Cloneable, StructuredPojo
A virtual machine that is on a hypervisor.
Constructor and Description |
---|
VirtualMachine() |
Modifier and Type | Method and Description |
---|---|
VirtualMachine |
clone() |
boolean |
equals(Object obj) |
String |
getHostName()
The host name of the virtual machine.
|
String |
getHypervisorId()
The ID of the virtual machine's hypervisor.
|
Date |
getLastBackupDate()
The most recent date a virtual machine was backed up, in Unix format and UTC time.
|
String |
getName()
The name of the virtual machine.
|
String |
getPath()
The path of the virtual machine.
|
String |
getResourceArn()
The Amazon Resource Name (ARN) of the virtual machine.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHostName(String hostName)
The host name of the virtual machine.
|
void |
setHypervisorId(String hypervisorId)
The ID of the virtual machine's hypervisor.
|
void |
setLastBackupDate(Date lastBackupDate)
The most recent date a virtual machine was backed up, in Unix format and UTC time.
|
void |
setName(String name)
The name of the virtual machine.
|
void |
setPath(String path)
The path of the virtual machine.
|
void |
setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the virtual machine.
|
String |
toString()
Returns a string representation of this object.
|
VirtualMachine |
withHostName(String hostName)
The host name of the virtual machine.
|
VirtualMachine |
withHypervisorId(String hypervisorId)
The ID of the virtual machine's hypervisor.
|
VirtualMachine |
withLastBackupDate(Date lastBackupDate)
The most recent date a virtual machine was backed up, in Unix format and UTC time.
|
VirtualMachine |
withName(String name)
The name of the virtual machine.
|
VirtualMachine |
withPath(String path)
The path of the virtual machine.
|
VirtualMachine |
withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the virtual machine.
|
public void setHostName(String hostName)
The host name of the virtual machine.
hostName
- The host name of the virtual machine.public String getHostName()
The host name of the virtual machine.
public VirtualMachine withHostName(String hostName)
The host name of the virtual machine.
hostName
- The host name of the virtual machine.public void setHypervisorId(String hypervisorId)
The ID of the virtual machine's hypervisor.
hypervisorId
- The ID of the virtual machine's hypervisor.public String getHypervisorId()
The ID of the virtual machine's hypervisor.
public VirtualMachine withHypervisorId(String hypervisorId)
The ID of the virtual machine's hypervisor.
hypervisorId
- The ID of the virtual machine's hypervisor.public void setLastBackupDate(Date lastBackupDate)
The most recent date a virtual machine was backed up, in Unix format and UTC time.
lastBackupDate
- The most recent date a virtual machine was backed up, in Unix format and UTC time.public Date getLastBackupDate()
The most recent date a virtual machine was backed up, in Unix format and UTC time.
public VirtualMachine withLastBackupDate(Date lastBackupDate)
The most recent date a virtual machine was backed up, in Unix format and UTC time.
lastBackupDate
- The most recent date a virtual machine was backed up, in Unix format and UTC time.public void setName(String name)
The name of the virtual machine.
name
- The name of the virtual machine.public String getName()
The name of the virtual machine.
public VirtualMachine withName(String name)
The name of the virtual machine.
name
- The name of the virtual machine.public void setPath(String path)
The path of the virtual machine.
path
- The path of the virtual machine.public String getPath()
The path of the virtual machine.
public VirtualMachine withPath(String path)
The path of the virtual machine.
path
- The path of the virtual machine.public void setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the virtual machine. For example,
arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL
.
resourceArn
- The Amazon Resource Name (ARN) of the virtual machine. For example,
arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL
.public String getResourceArn()
The Amazon Resource Name (ARN) of the virtual machine. For example,
arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL
.
arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL
.public VirtualMachine withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the virtual machine. For example,
arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL
.
resourceArn
- The Amazon Resource Name (ARN) of the virtual machine. For example,
arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL
.public String toString()
toString
in class Object
Object.toString()
public VirtualMachine clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.