public CreateFunctionRequest withCode(String code) {
        setCode(code);
        return this;
    }
<p>
The <code>function</code> code that contains the request and response functions. When code is used, the
<code>runtime</code> is required. The <code>runtime</code> value must be <code>APPSYNC_JS</code>.
</p>

@param code
       The <code>function</code> code that contains the request and response functions. When code is used, the
       <code>runtime</code> is required. The <code>runtime</code> value must be <code>APPSYNC_JS</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-appsync/src/main/java/com/amazonaws/services/appsync/model/CreateFunctionRequest.java