public CustomConnectorProfileProperties withOAuth2Properties(OAuth2Properties oAuth2Properties) {
        setOAuth2Properties(oAuth2Properties);
        return this;
    }
@param oAuth2Properties
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-appflow/src/main/java/com/amazonaws/services/appflow/model/CustomConnectorProfileProperties.java