/* * 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.mgn.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Identification hints. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class IdentificationHints implements Serializable, Cloneable, StructuredPojo { /** ** AWS Instance ID identification hint. *
*/ private String awsInstanceID; /** ** FQDN address identification hint. *
*/ private String fqdn; /** ** Hostname identification hint. *
*/ private String hostname; /** ** vCenter VM path identification hint. *
*/ private String vmPath; /** ** vmWare UUID identification hint. *
*/ private String vmWareUuid; /** ** AWS Instance ID identification hint. *
* * @param awsInstanceID * AWS Instance ID identification hint. */ public void setAwsInstanceID(String awsInstanceID) { this.awsInstanceID = awsInstanceID; } /** ** AWS Instance ID identification hint. *
* * @return AWS Instance ID identification hint. */ public String getAwsInstanceID() { return this.awsInstanceID; } /** ** AWS Instance ID identification hint. *
* * @param awsInstanceID * AWS Instance ID identification hint. * @return Returns a reference to this object so that method calls can be chained together. */ public IdentificationHints withAwsInstanceID(String awsInstanceID) { setAwsInstanceID(awsInstanceID); return this; } /** ** FQDN address identification hint. *
* * @param fqdn * FQDN address identification hint. */ public void setFqdn(String fqdn) { this.fqdn = fqdn; } /** ** FQDN address identification hint. *
* * @return FQDN address identification hint. */ public String getFqdn() { return this.fqdn; } /** ** FQDN address identification hint. *
* * @param fqdn * FQDN address identification hint. * @return Returns a reference to this object so that method calls can be chained together. */ public IdentificationHints withFqdn(String fqdn) { setFqdn(fqdn); return this; } /** ** Hostname identification hint. *
* * @param hostname * Hostname identification hint. */ public void setHostname(String hostname) { this.hostname = hostname; } /** ** Hostname identification hint. *
* * @return Hostname identification hint. */ public String getHostname() { return this.hostname; } /** ** Hostname identification hint. *
* * @param hostname * Hostname identification hint. * @return Returns a reference to this object so that method calls can be chained together. */ public IdentificationHints withHostname(String hostname) { setHostname(hostname); return this; } /** ** vCenter VM path identification hint. *
* * @param vmPath * vCenter VM path identification hint. */ public void setVmPath(String vmPath) { this.vmPath = vmPath; } /** ** vCenter VM path identification hint. *
* * @return vCenter VM path identification hint. */ public String getVmPath() { return this.vmPath; } /** ** vCenter VM path identification hint. *
* * @param vmPath * vCenter VM path identification hint. * @return Returns a reference to this object so that method calls can be chained together. */ public IdentificationHints withVmPath(String vmPath) { setVmPath(vmPath); return this; } /** ** vmWare UUID identification hint. *
* * @param vmWareUuid * vmWare UUID identification hint. */ public void setVmWareUuid(String vmWareUuid) { this.vmWareUuid = vmWareUuid; } /** ** vmWare UUID identification hint. *
* * @return vmWare UUID identification hint. */ public String getVmWareUuid() { return this.vmWareUuid; } /** ** vmWare UUID identification hint. *
* * @param vmWareUuid * vmWare UUID identification hint. * @return Returns a reference to this object so that method calls can be chained together. */ public IdentificationHints withVmWareUuid(String vmWareUuid) { setVmWareUuid(vmWareUuid); 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 (getAwsInstanceID() != null) sb.append("AwsInstanceID: ").append(getAwsInstanceID()).append(","); if (getFqdn() != null) sb.append("Fqdn: ").append(getFqdn()).append(","); if (getHostname() != null) sb.append("Hostname: ").append(getHostname()).append(","); if (getVmPath() != null) sb.append("VmPath: ").append(getVmPath()).append(","); if (getVmWareUuid() != null) sb.append("VmWareUuid: ").append(getVmWareUuid()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof IdentificationHints == false) return false; IdentificationHints other = (IdentificationHints) obj; if (other.getAwsInstanceID() == null ^ this.getAwsInstanceID() == null) return false; if (other.getAwsInstanceID() != null && other.getAwsInstanceID().equals(this.getAwsInstanceID()) == false) return false; if (other.getFqdn() == null ^ this.getFqdn() == null) return false; if (other.getFqdn() != null && other.getFqdn().equals(this.getFqdn()) == false) return false; if (other.getHostname() == null ^ this.getHostname() == null) return false; if (other.getHostname() != null && other.getHostname().equals(this.getHostname()) == false) return false; if (other.getVmPath() == null ^ this.getVmPath() == null) return false; if (other.getVmPath() != null && other.getVmPath().equals(this.getVmPath()) == false) return false; if (other.getVmWareUuid() == null ^ this.getVmWareUuid() == null) return false; if (other.getVmWareUuid() != null && other.getVmWareUuid().equals(this.getVmWareUuid()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAwsInstanceID() == null) ? 0 : getAwsInstanceID().hashCode()); hashCode = prime * hashCode + ((getFqdn() == null) ? 0 : getFqdn().hashCode()); hashCode = prime * hashCode + ((getHostname() == null) ? 0 : getHostname().hashCode()); hashCode = prime * hashCode + ((getVmPath() == null) ? 0 : getVmPath().hashCode()); hashCode = prime * hashCode + ((getVmWareUuid() == null) ? 0 : getVmWareUuid().hashCode()); return hashCode; } @Override public IdentificationHints clone() { try { return (IdentificationHints) 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.mgn.model.transform.IdentificationHintsMarshaller.getInstance().marshall(this, protocolMarshaller); } }