@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getRoleArn() != null)
            sb.append("RoleArn: " + getRoleArn() + ",");
        if (getRoleSessionName() != null)
            sb.append("RoleSessionName: " + getRoleSessionName() + ",");
        if (getExternalId() != null)
            sb.append("ExternalId: " + getExternalId() + ",");
        sb.append("}");
        return sb.toString();
    }
Returns a string representation of this object; useful for testing and
debugging.

@return A string representation of this object.
@see java.lang.Object#toString()
aws-java-sdk-core/src/main/java/com/amazonaws/auth/profile/internal/securitytoken/RoleInfo.java