public CanvasAppSettings withIdentityProviderOAuthSettings(IdentityProviderOAuthSetting... identityProviderOAuthSettings) {
        if (this.identityProviderOAuthSettings == null) {
            setIdentityProviderOAuthSettings(new java.util.ArrayList<IdentityProviderOAuthSetting>(identityProviderOAuthSettings.length));
        }
        for (IdentityProviderOAuthSetting ele : identityProviderOAuthSettings) {
            this.identityProviderOAuthSettings.add(ele);
        }
        return this;
    }
<p>
The settings for connecting to an external data source with OAuth.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setIdentityProviderOAuthSettings(java.util.Collection)} or
{@link #withIdentityProviderOAuthSettings(java.util.Collection)} if you want to override the existing values.
</p>

@param identityProviderOAuthSettings
       The settings for connecting to an external data source with OAuth.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/CanvasAppSettings.java