@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getOwnerId() != null)
            sb.append("OwnerId: ").append(getOwnerId()).append(",");
        if (getIpamId() != null)
            sb.append("IpamId: ").append(getIpamId()).append(",");
        if (getIpamArn() != null)
            sb.append("IpamArn: ").append(getIpamArn()).append(",");
        if (getIpamRegion() != null)
            sb.append("IpamRegion: ").append(getIpamRegion()).append(",");
        if (getPublicDefaultScopeId() != null)
            sb.append("PublicDefaultScopeId: ").append(getPublicDefaultScopeId()).append(",");
        if (getPrivateDefaultScopeId() != null)
            sb.append("PrivateDefaultScopeId: ").append(getPrivateDefaultScopeId()).append(",");
        if (getScopeCount() != null)
            sb.append("ScopeCount: ").append(getScopeCount()).append(",");
        if (getDescription() != null)
            sb.append("Description: ").append(getDescription()).append(",");
        if (getOperatingRegions() != null)
            sb.append("OperatingRegions: ").append(getOperatingRegions()).append(",");
        if (getState() != null)
            sb.append("State: ").append(getState()).append(",");
        if (getTags() != null)
            sb.append("Tags: ").append(getTags()).append(",");
        if (getDefaultResourceDiscoveryId() != null)
            sb.append("DefaultResourceDiscoveryId: ").append(getDefaultResourceDiscoveryId()).append(",");
        if (getDefaultResourceDiscoveryAssociationId() != null)
            sb.append("DefaultResourceDiscoveryAssociationId: ").append(getDefaultResourceDiscoveryAssociationId()).append(",");
        if (getResourceDiscoveryAssociationCount() != null)
            sb.append("ResourceDiscoveryAssociationCount: ").append(getResourceDiscoveryAssociationCount()).append(",");
        if (getStateMessage() != null)
            sb.append("StateMessage: ").append(getStateMessage()).append(",");
        if (getTier() != null)
            sb.append("Tier: ").append(getTier());
        sb.append("}");
        return sb.toString();
    }
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