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

        if (obj instanceof Ipam == false)
            return false;
        Ipam other = (Ipam) obj;
        if (other.getOwnerId() == null ^ this.getOwnerId() == null)
            return false;
        if (other.getOwnerId() != null && other.getOwnerId().equals(this.getOwnerId()) == false)
            return false;
        if (other.getIpamId() == null ^ this.getIpamId() == null)
            return false;
        if (other.getIpamId() != null && other.getIpamId().equals(this.getIpamId()) == false)
            return false;
        if (other.getIpamArn() == null ^ this.getIpamArn() == null)
            return false;
        if (other.getIpamArn() != null && other.getIpamArn().equals(this.getIpamArn()) == false)
            return false;
        if (other.getIpamRegion() == null ^ this.getIpamRegion() == null)
            return false;
        if (other.getIpamRegion() != null && other.getIpamRegion().equals(this.getIpamRegion()) == false)
            return false;
        if (other.getPublicDefaultScopeId() == null ^ this.getPublicDefaultScopeId() == null)
            return false;
        if (other.getPublicDefaultScopeId() != null && other.getPublicDefaultScopeId().equals(this.getPublicDefaultScopeId()) == false)
            return false;
        if (other.getPrivateDefaultScopeId() == null ^ this.getPrivateDefaultScopeId() == null)
            return false;
        if (other.getPrivateDefaultScopeId() != null && other.getPrivateDefaultScopeId().equals(this.getPrivateDefaultScopeId()) == false)
            return false;
        if (other.getScopeCount() == null ^ this.getScopeCount() == null)
            return false;
        if (other.getScopeCount() != null && other.getScopeCount().equals(this.getScopeCount()) == false)
            return false;
        if (other.getDescription() == null ^ this.getDescription() == null)
            return false;
        if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
            return false;
        if (other.getOperatingRegions() == null ^ this.getOperatingRegions() == null)
            return false;
        if (other.getOperatingRegions() != null && other.getOperatingRegions().equals(this.getOperatingRegions()) == false)
            return false;
        if (other.getState() == null ^ this.getState() == null)
            return false;
        if (other.getState() != null && other.getState().equals(this.getState()) == false)
            return false;
        if (other.getTags() == null ^ this.getTags() == null)
            return false;
        if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
            return false;
        if (other.getDefaultResourceDiscoveryId() == null ^ this.getDefaultResourceDiscoveryId() == null)
            return false;
        if (other.getDefaultResourceDiscoveryId() != null && other.getDefaultResourceDiscoveryId().equals(this.getDefaultResourceDiscoveryId()) == false)
            return false;
        if (other.getDefaultResourceDiscoveryAssociationId() == null ^ this.getDefaultResourceDiscoveryAssociationId() == null)
            return false;
        if (other.getDefaultResourceDiscoveryAssociationId() != null
                && other.getDefaultResourceDiscoveryAssociationId().equals(this.getDefaultResourceDiscoveryAssociationId()) == false)
            return false;
        if (other.getResourceDiscoveryAssociationCount() == null ^ this.getResourceDiscoveryAssociationCount() == null)
            return false;
        if (other.getResourceDiscoveryAssociationCount() != null
                && other.getResourceDiscoveryAssociationCount().equals(this.getResourceDiscoveryAssociationCount()) == false)
            return false;
        if (other.getStateMessage() == null ^ this.getStateMessage() == null)
            return false;
        if (other.getStateMessage() != null && other.getStateMessage().equals(this.getStateMessage()) == false)
            return false;
        if (other.getTier() == null ^ this.getTier() == null)
            return false;
        if (other.getTier() != null && other.getTier().equals(this.getTier()) == false)
            return false;
        return true;
    }
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()
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/Ipam.java