/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.appflow.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains the default values required for OAuth 2.0 authentication. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class OAuth2Defaults implements Serializable, Cloneable, StructuredPojo { /** ** OAuth 2.0 scopes that the connector supports. *
*/ private java.util.List* Token URLs that can be used for OAuth 2.0 authentication. *
*/ private java.util.List* Auth code URLs that can be used for OAuth 2.0 authentication. *
*/ private java.util.List* OAuth 2.0 grant types supported by the connector. *
*/ private java.util.List* List of custom parameters required for OAuth 2.0 authentication. *
*/ private java.util.List* OAuth 2.0 scopes that the connector supports. *
* * @return OAuth 2.0 scopes that the connector supports. */ public java.util.List* OAuth 2.0 scopes that the connector supports. *
* * @param oauthScopes * OAuth 2.0 scopes that the connector supports. */ public void setOauthScopes(java.util.Collection* OAuth 2.0 scopes that the connector supports. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setOauthScopes(java.util.Collection)} or {@link #withOauthScopes(java.util.Collection)} if you want to * override the existing values. *
* * @param oauthScopes * OAuth 2.0 scopes that the connector supports. * @return Returns a reference to this object so that method calls can be chained together. */ public OAuth2Defaults withOauthScopes(String... oauthScopes) { if (this.oauthScopes == null) { setOauthScopes(new java.util.ArrayList* OAuth 2.0 scopes that the connector supports. *
* * @param oauthScopes * OAuth 2.0 scopes that the connector supports. * @return Returns a reference to this object so that method calls can be chained together. */ public OAuth2Defaults withOauthScopes(java.util.Collection* Token URLs that can be used for OAuth 2.0 authentication. *
* * @return Token URLs that can be used for OAuth 2.0 authentication. */ public java.util.List* Token URLs that can be used for OAuth 2.0 authentication. *
* * @param tokenUrls * Token URLs that can be used for OAuth 2.0 authentication. */ public void setTokenUrls(java.util.Collection* Token URLs that can be used for OAuth 2.0 authentication. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTokenUrls(java.util.Collection)} or {@link #withTokenUrls(java.util.Collection)} if you want to * override the existing values. *
* * @param tokenUrls * Token URLs that can be used for OAuth 2.0 authentication. * @return Returns a reference to this object so that method calls can be chained together. */ public OAuth2Defaults withTokenUrls(String... tokenUrls) { if (this.tokenUrls == null) { setTokenUrls(new java.util.ArrayList* Token URLs that can be used for OAuth 2.0 authentication. *
* * @param tokenUrls * Token URLs that can be used for OAuth 2.0 authentication. * @return Returns a reference to this object so that method calls can be chained together. */ public OAuth2Defaults withTokenUrls(java.util.Collection* Auth code URLs that can be used for OAuth 2.0 authentication. *
* * @return Auth code URLs that can be used for OAuth 2.0 authentication. */ public java.util.List* Auth code URLs that can be used for OAuth 2.0 authentication. *
* * @param authCodeUrls * Auth code URLs that can be used for OAuth 2.0 authentication. */ public void setAuthCodeUrls(java.util.Collection* Auth code URLs that can be used for OAuth 2.0 authentication. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAuthCodeUrls(java.util.Collection)} or {@link #withAuthCodeUrls(java.util.Collection)} if you want to * override the existing values. *
* * @param authCodeUrls * Auth code URLs that can be used for OAuth 2.0 authentication. * @return Returns a reference to this object so that method calls can be chained together. */ public OAuth2Defaults withAuthCodeUrls(String... authCodeUrls) { if (this.authCodeUrls == null) { setAuthCodeUrls(new java.util.ArrayList* Auth code URLs that can be used for OAuth 2.0 authentication. *
* * @param authCodeUrls * Auth code URLs that can be used for OAuth 2.0 authentication. * @return Returns a reference to this object so that method calls can be chained together. */ public OAuth2Defaults withAuthCodeUrls(java.util.Collection* OAuth 2.0 grant types supported by the connector. *
* * @return OAuth 2.0 grant types supported by the connector. * @see OAuth2GrantType */ public java.util.List* OAuth 2.0 grant types supported by the connector. *
* * @param oauth2GrantTypesSupported * OAuth 2.0 grant types supported by the connector. * @see OAuth2GrantType */ public void setOauth2GrantTypesSupported(java.util.Collection* OAuth 2.0 grant types supported by the connector. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setOauth2GrantTypesSupported(java.util.Collection)} or * {@link #withOauth2GrantTypesSupported(java.util.Collection)} if you want to override the existing values. *
* * @param oauth2GrantTypesSupported * OAuth 2.0 grant types supported by the connector. * @return Returns a reference to this object so that method calls can be chained together. * @see OAuth2GrantType */ public OAuth2Defaults withOauth2GrantTypesSupported(String... oauth2GrantTypesSupported) { if (this.oauth2GrantTypesSupported == null) { setOauth2GrantTypesSupported(new java.util.ArrayList* OAuth 2.0 grant types supported by the connector. *
* * @param oauth2GrantTypesSupported * OAuth 2.0 grant types supported by the connector. * @return Returns a reference to this object so that method calls can be chained together. * @see OAuth2GrantType */ public OAuth2Defaults withOauth2GrantTypesSupported(java.util.Collection* OAuth 2.0 grant types supported by the connector. *
* * @param oauth2GrantTypesSupported * OAuth 2.0 grant types supported by the connector. * @return Returns a reference to this object so that method calls can be chained together. * @see OAuth2GrantType */ public OAuth2Defaults withOauth2GrantTypesSupported(OAuth2GrantType... oauth2GrantTypesSupported) { java.util.ArrayList* List of custom parameters required for OAuth 2.0 authentication. *
* * @return List of custom parameters required for OAuth 2.0 authentication. */ public java.util.List* List of custom parameters required for OAuth 2.0 authentication. *
* * @param oauth2CustomProperties * List of custom parameters required for OAuth 2.0 authentication. */ public void setOauth2CustomProperties(java.util.Collection* List of custom parameters required for OAuth 2.0 authentication. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setOauth2CustomProperties(java.util.Collection)} or * {@link #withOauth2CustomProperties(java.util.Collection)} if you want to override the existing values. *
* * @param oauth2CustomProperties * List of custom parameters required for OAuth 2.0 authentication. * @return Returns a reference to this object so that method calls can be chained together. */ public OAuth2Defaults withOauth2CustomProperties(OAuth2CustomParameter... oauth2CustomProperties) { if (this.oauth2CustomProperties == null) { setOauth2CustomProperties(new java.util.ArrayList* List of custom parameters required for OAuth 2.0 authentication. *
* * @param oauth2CustomProperties * List of custom parameters required for OAuth 2.0 authentication. * @return Returns a reference to this object so that method calls can be chained together. */ public OAuth2Defaults withOauth2CustomProperties(java.util.Collection