public ImportCertificateRequest withUsage(CertificateUsageType usage) {
        this.usage = usage.toString();
        return this;
    }
<p>
Specifies how this certificate is used. It can be used in the following ways:
</p>
<ul>
<li>
<p>
<code>SIGNING</code>: For signing AS2 messages
</p>
</li>
<li>
<p>
<code>ENCRYPTION</code>: For encrypting AS2 messages
</p>
</li>
<li>
<p>
<code>TLS</code>: For securing AS2 communications sent over HTTPS
</p>
</li>
</ul>

@param usage
       Specifies how this certificate is used. It can be used in the following ways:</p>
       <ul>
       <li>
       <p>
       <code>SIGNING</code>: For signing AS2 messages
       </p>
       </li>
       <li>
       <p>
       <code>ENCRYPTION</code>: For encrypting AS2 messages
       </p>
       </li>
       <li>
       <p>
       <code>TLS</code>: For securing AS2 communications sent over HTTPS
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see CertificateUsageType
aws-java-sdk-transfer/src/main/java/com/amazonaws/services/transfer/model/ImportCertificateRequest.java