* This object contains the basic attributes of VirtualMachine
contained by the output of
* GetVirtualMachine
*
* This object contains the basic attributes of VirtualMachine
contained by the output of
* GetVirtualMachine
*
VirtualMachine
contained by the output of
* GetVirtualMachine
*/
public void setVirtualMachine(VirtualMachineDetails virtualMachine) {
this.virtualMachine = virtualMachine;
}
/**
*
* This object contains the basic attributes of VirtualMachine
contained by the output of
* GetVirtualMachine
*
VirtualMachine
contained by the output of
* GetVirtualMachine
*/
public VirtualMachineDetails getVirtualMachine() {
return this.virtualMachine;
}
/**
*
* This object contains the basic attributes of VirtualMachine
contained by the output of
* GetVirtualMachine
*
VirtualMachine
contained by the output of
* GetVirtualMachine
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetVirtualMachineResult withVirtualMachine(VirtualMachineDetails virtualMachine) {
setVirtualMachine(virtualMachine);
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 (getVirtualMachine() != null)
sb.append("VirtualMachine: ").append(getVirtualMachine());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetVirtualMachineResult == false)
return false;
GetVirtualMachineResult other = (GetVirtualMachineResult) obj;
if (other.getVirtualMachine() == null ^ this.getVirtualMachine() == null)
return false;
if (other.getVirtualMachine() != null && other.getVirtualMachine().equals(this.getVirtualMachine()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getVirtualMachine() == null) ? 0 : getVirtualMachine().hashCode());
return hashCode;
}
@Override
public GetVirtualMachineResult clone() {
try {
return (GetVirtualMachineResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}