public TestConnectionResult withStatusMessage(String statusMessage) {
        setStatusMessage(statusMessage);
        return this;
    }
<p>
Returns <code>Connection succeeded</code> if the test is successful. Or, returns a descriptive error message if
the test fails. The following list provides troubleshooting details, depending on the error message that you
receive.
</p>
<ul>
<li>
<p>
Verify that your secret name aligns with the one in Transfer Role permissions.
</p>
</li>
<li>
<p>
Verify the server URL in the connector configuration , and verify that the login credentials work successfully
outside of the connector.
</p>
</li>
<li>
<p>
Verify that the secret exists and is formatted correctly.
</p>
</li>
<li>
<p>
Verify that the trusted host key in the connector configuration matches the <code>ssh-keyscan</code> output.
</p>
</li>
</ul>

@param statusMessage
       Returns <code>Connection succeeded</code> if the test is successful. Or, returns a descriptive error
       message if the test fails. The following list provides troubleshooting details, depending on the error
       message that you receive.</p>
       <ul>
       <li>
       <p>
       Verify that your secret name aligns with the one in Transfer Role permissions.
       </p>
       </li>
       <li>
       <p>
       Verify the server URL in the connector configuration , and verify that the login credentials work
       successfully outside of the connector.
       </p>
       </li>
       <li>
       <p>
       Verify that the secret exists and is formatted correctly.
       </p>
       </li>
       <li>
       <p>
       Verify that the trusted host key in the connector configuration matches the <code>ssh-keyscan</code>
       output.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-transfer/src/main/java/com/amazonaws/services/transfer/model/TestConnectionResult.java