public CreateTokenWithIAMRequest withCode(String code) {
        setCode(code);
        return this;
    }
<p>
Used only when calling this API for the Authorization Code grant type. This short-term code is used to identify
this authorization request. The code is obtained through a redirect from IAM Identity Center to a redirect URI
persisted in the Authorization Code GrantOptions for the application.
</p>

@param code
       Used only when calling this API for the Authorization Code grant type. This short-term code is used to
       identify this authorization request. The code is obtained through a redirect from IAM Identity Center to a
       redirect URI persisted in the Authorization Code GrantOptions for the application.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssooidc/src/main/java/com/amazonaws/services/ssooidc/model/CreateTokenWithIAMRequest.java