public Bounce withDiagnosticCode(String diagnosticCode) {
        setDiagnosticCode(diagnosticCode);
        return this;
    }
<p>
The status code issued by the reporting Message Transfer Authority (MTA). This field only appears if a delivery
status notification (DSN) was attached to the bounce and the <code>Diagnostic-Code</code> was provided in the
DSN.
</p>

@param diagnosticCode
       The status code issued by the reporting Message Transfer Authority (MTA). This field only appears if a
       delivery status notification (DSN) was attached to the bounce and the <code>Diagnostic-Code</code> was
       provided in the DSN.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sesv2/src/main/java/com/amazonaws/services/simpleemailv2/model/Bounce.java