/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.backupgateway.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Your VirtualMachine
objects, ordered by their Amazon Resource Names (ARNs).
*
* The host name of the virtual machine. *
*/ private String hostName; /** ** The ID of the virtual machine's hypervisor. *
*/ private String hypervisorId; /** ** The most recent date a virtual machine was backed up, in Unix format and UTC time. *
*/ private java.util.Date lastBackupDate; /** ** The name of the virtual machine. *
*/ private String name; /** ** The path of the virtual machine. *
*/ private String path; /** *
* The Amazon Resource Name (ARN) of the virtual machine. For example,
* arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL
.
*
* These are the details of the VMware tags associated with the specified virtual machine. *
*/ private java.util.List* The host name of the virtual machine. *
* * @param hostName * The host name of the virtual machine. */ public void setHostName(String hostName) { this.hostName = hostName; } /** ** The host name of the virtual machine. *
* * @return The host name of the virtual machine. */ public String getHostName() { return this.hostName; } /** ** The host name of the virtual machine. *
* * @param hostName * The host name of the virtual machine. * @return Returns a reference to this object so that method calls can be chained together. */ public VirtualMachineDetails withHostName(String hostName) { setHostName(hostName); return this; } /** ** The ID of the virtual machine's hypervisor. *
* * @param hypervisorId * The ID of the virtual machine's hypervisor. */ public void setHypervisorId(String hypervisorId) { this.hypervisorId = hypervisorId; } /** ** The ID of the virtual machine's hypervisor. *
* * @return The ID of the virtual machine's hypervisor. */ public String getHypervisorId() { return this.hypervisorId; } /** ** The ID of the virtual machine's hypervisor. *
* * @param hypervisorId * The ID of the virtual machine's hypervisor. * @return Returns a reference to this object so that method calls can be chained together. */ public VirtualMachineDetails withHypervisorId(String hypervisorId) { setHypervisorId(hypervisorId); return this; } /** ** The most recent date a virtual machine was backed up, in Unix format and UTC time. *
* * @param lastBackupDate * The most recent date a virtual machine was backed up, in Unix format and UTC time. */ public void setLastBackupDate(java.util.Date lastBackupDate) { this.lastBackupDate = lastBackupDate; } /** ** The most recent date a virtual machine was backed up, in Unix format and UTC time. *
* * @return The most recent date a virtual machine was backed up, in Unix format and UTC time. */ public java.util.Date getLastBackupDate() { return this.lastBackupDate; } /** ** The most recent date a virtual machine was backed up, in Unix format and UTC time. *
* * @param lastBackupDate * The most recent date a virtual machine was backed up, in Unix format and UTC time. * @return Returns a reference to this object so that method calls can be chained together. */ public VirtualMachineDetails withLastBackupDate(java.util.Date lastBackupDate) { setLastBackupDate(lastBackupDate); return this; } /** ** The name of the virtual machine. *
* * @param name * The name of the virtual machine. */ public void setName(String name) { this.name = name; } /** ** The name of the virtual machine. *
* * @return The name of the virtual machine. */ public String getName() { return this.name; } /** ** The name of the virtual machine. *
* * @param name * The name of the virtual machine. * @return Returns a reference to this object so that method calls can be chained together. */ public VirtualMachineDetails withName(String name) { setName(name); return this; } /** ** The path of the virtual machine. *
* * @param path * The path of the virtual machine. */ public void setPath(String path) { this.path = path; } /** ** The path of the virtual machine. *
* * @return The path of the virtual machine. */ public String getPath() { return this.path; } /** ** The path of the virtual machine. *
* * @param path * The path of the virtual machine. * @return Returns a reference to this object so that method calls can be chained together. */ public VirtualMachineDetails withPath(String path) { setPath(path); return this; } /** *
* 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 void setResourceArn(String resourceArn) {
this.resourceArn = resourceArn;
}
/**
*
* 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 String getResourceArn() {
return this.resourceArn;
}
/**
*
* 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
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VirtualMachineDetails withResourceArn(String resourceArn) {
setResourceArn(resourceArn);
return this;
}
/**
* * These are the details of the VMware tags associated with the specified virtual machine. *
* * @return These are the details of the VMware tags associated with the specified virtual machine. */ public java.util.List* These are the details of the VMware tags associated with the specified virtual machine. *
* * @param vmwareTags * These are the details of the VMware tags associated with the specified virtual machine. */ public void setVmwareTags(java.util.Collection* These are the details of the VMware tags associated with the specified virtual machine. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setVmwareTags(java.util.Collection)} or {@link #withVmwareTags(java.util.Collection)} if you want to * override the existing values. *
* * @param vmwareTags * These are the details of the VMware tags associated with the specified virtual machine. * @return Returns a reference to this object so that method calls can be chained together. */ public VirtualMachineDetails withVmwareTags(VmwareTag... vmwareTags) { if (this.vmwareTags == null) { setVmwareTags(new java.util.ArrayList* These are the details of the VMware tags associated with the specified virtual machine. *
* * @param vmwareTags * These are the details of the VMware tags associated with the specified virtual machine. * @return Returns a reference to this object so that method calls can be chained together. */ public VirtualMachineDetails withVmwareTags(java.util.Collection