@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getConfluenceLocation() != null)
            sb.append("ConfluenceLocation: ").append(getConfluenceLocation()).append(",");
        if (getS3Location() != null)
            sb.append("S3Location: ").append(getS3Location()).append(",");
        if (getSalesforceLocation() != null)
            sb.append("SalesforceLocation: ").append(getSalesforceLocation()).append(",");
        if (getSharePointLocation() != null)
            sb.append("SharePointLocation: ").append(getSharePointLocation()).append(",");
        if (getType() != null)
            sb.append("Type: ").append(getType()).append(",");
        if (getWebLocation() != null)
            sb.append("WebLocation: ").append(getWebLocation());
        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-bedrockagentruntime/src/main/java/com/amazonaws/services/bedrockagentruntime/model/RetrievalResultLocation.java