public OAuth2PropertiesInput withOAuth2GrantType(OAuth2GrantType oAuth2GrantType) {
        this.oAuth2GrantType = oAuth2GrantType.toString();
        return this;
    }
<p>
The OAuth2 grant type in the CreateConnection request. For example, <code>AUTHORIZATION_CODE</code>,
<code>JWT_BEARER</code>, or <code>CLIENT_CREDENTIALS</code>.
</p>

@param oAuth2GrantType
       The OAuth2 grant type in the CreateConnection request. For example, <code>AUTHORIZATION_CODE</code>,
       <code>JWT_BEARER</code>, or <code>CLIENT_CREDENTIALS</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see OAuth2GrantType
aws-java-sdk-glue/src/main/java/com/amazonaws/services/glue/model/OAuth2PropertiesInput.java