public TaxRegistrationEntry withLegalName(String legalName) {
        setLegalName(legalName);
        return this;
    }
<p>
The legal name associated with your TRN.
</p>
<note>
<p>
If you're setting a TRN in Brazil, you don't need to specify the legal name. For TRNs in other countries, you
must specify the legal name.
</p>
</note>

@param legalName
       The legal name associated with your TRN. </p> <note>
       <p>
       If you're setting a TRN in Brazil, you don't need to specify the legal name. For TRNs in other countries,
       you must specify the legal name.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-taxsettings/src/main/java/com/amazonaws/services/taxsettings/model/TaxRegistrationEntry.java