@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getRealm() != null)
            sb.append("Realm: ").append(getRealm()).append(",");
        if (getKdcAdminPassword() != null)
            sb.append("KdcAdminPassword: ").append(getKdcAdminPassword()).append(",");
        if (getCrossRealmTrustPrincipalPassword() != null)
            sb.append("CrossRealmTrustPrincipalPassword: ").append(getCrossRealmTrustPrincipalPassword()).append(",");
        if (getADDomainJoinUser() != null)
            sb.append("ADDomainJoinUser: ").append(getADDomainJoinUser()).append(",");
        if (getADDomainJoinPassword() != null)
            sb.append("ADDomainJoinPassword: ").append(getADDomainJoinPassword());
        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-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/KerberosAttributes.java