All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.backupgateway.model.VirtualMachineDetails Maven / Gradle / Ivy

/*
 * 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). *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class VirtualMachineDetails implements Serializable, Cloneable, StructuredPojo { /** *

* 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. *

*/ private String resourceArn; /** *

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

*/ private java.util.List vmwareTags; /** *

* 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. *

* * @param resourceArn * The Amazon Resource Name (ARN) of the virtual machine. For example, * 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. *

* * @return 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() { 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. *

* * @param resourceArn * The Amazon Resource Name (ARN) of the virtual machine. For example, * 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 getVmwareTags() { return vmwareTags; } /** *

* 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 vmwareTags) { if (vmwareTags == null) { this.vmwareTags = null; return; } this.vmwareTags = new java.util.ArrayList(vmwareTags); } /** *

* 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(vmwareTags.length)); } for (VmwareTag ele : vmwareTags) { this.vmwareTags.add(ele); } return this; } /** *

* 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 vmwareTags) { setVmwareTags(vmwareTags); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getHostName() != null) sb.append("HostName: ").append(getHostName()).append(","); if (getHypervisorId() != null) sb.append("HypervisorId: ").append(getHypervisorId()).append(","); if (getLastBackupDate() != null) sb.append("LastBackupDate: ").append(getLastBackupDate()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getPath() != null) sb.append("Path: ").append(getPath()).append(","); if (getResourceArn() != null) sb.append("ResourceArn: ").append(getResourceArn()).append(","); if (getVmwareTags() != null) sb.append("VmwareTags: ").append(getVmwareTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof VirtualMachineDetails == false) return false; VirtualMachineDetails other = (VirtualMachineDetails) obj; if (other.getHostName() == null ^ this.getHostName() == null) return false; if (other.getHostName() != null && other.getHostName().equals(this.getHostName()) == false) return false; if (other.getHypervisorId() == null ^ this.getHypervisorId() == null) return false; if (other.getHypervisorId() != null && other.getHypervisorId().equals(this.getHypervisorId()) == false) return false; if (other.getLastBackupDate() == null ^ this.getLastBackupDate() == null) return false; if (other.getLastBackupDate() != null && other.getLastBackupDate().equals(this.getLastBackupDate()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getPath() == null ^ this.getPath() == null) return false; if (other.getPath() != null && other.getPath().equals(this.getPath()) == false) return false; if (other.getResourceArn() == null ^ this.getResourceArn() == null) return false; if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == false) return false; if (other.getVmwareTags() == null ^ this.getVmwareTags() == null) return false; if (other.getVmwareTags() != null && other.getVmwareTags().equals(this.getVmwareTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHostName() == null) ? 0 : getHostName().hashCode()); hashCode = prime * hashCode + ((getHypervisorId() == null) ? 0 : getHypervisorId().hashCode()); hashCode = prime * hashCode + ((getLastBackupDate() == null) ? 0 : getLastBackupDate().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getPath() == null) ? 0 : getPath().hashCode()); hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode()); hashCode = prime * hashCode + ((getVmwareTags() == null) ? 0 : getVmwareTags().hashCode()); return hashCode; } @Override public VirtualMachineDetails clone() { try { return (VirtualMachineDetails) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.backupgateway.model.transform.VirtualMachineDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy