public PutPermissionRequest withStatementId(String statementId) {
        setStatementId(statementId);
        return this;
    }
<p>
An identifier string for the external account that you are granting permissions to. If you later want to revoke
the permission for this external account, specify this <code>StatementId</code> when you run <a
href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_RemovePermission.html"
>RemovePermission</a>.
</p>
<note>
<p>
Each <code>StatementId</code> must be unique.
</p>
</note>

@param statementId
       An identifier string for the external account that you are granting permissions to. If you later want to
       revoke the permission for this external account, specify this <code>StatementId</code> when you run <a
       href
       ="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_RemovePermission.html">RemovePermission
       </a>.</p> <note>
       <p>
       Each <code>StatementId</code> must be unique.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/PutPermissionRequest.java