@Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;

    if (obj instanceof IamInstanceProfileSpecification == false) return false;
    IamInstanceProfileSpecification other = (IamInstanceProfileSpecification) obj;
    if (other.getArn() == null ^ this.getArn() == null) return false;
    if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false;
    if (other.getName() == null ^ this.getName() == null) return false;
    if (other.getName() != null && other.getName().equals(this.getName()) == false) return false;
    return true;
  }