/* * 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 information about the authentication config that the connector supports. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AuthenticationConfig implements Serializable, Cloneable, StructuredPojo { /** ** Indicates whether basic authentication is supported by the connector. *
*/ private Boolean isBasicAuthSupported; /** ** Indicates whether API key authentication is supported by the connector *
*/ private Boolean isApiKeyAuthSupported; /** ** Indicates whether OAuth 2.0 authentication is supported by the connector. *
*/ private Boolean isOAuth2Supported; /** ** Indicates whether custom authentication is supported by the connector *
*/ private Boolean isCustomAuthSupported; /** ** Contains the default values required for OAuth 2.0 authentication. *
*/ private OAuth2Defaults oAuth2Defaults; /** ** Contains information required for custom authentication. *
*/ private java.util.List* Indicates whether basic authentication is supported by the connector. *
* * @param isBasicAuthSupported * Indicates whether basic authentication is supported by the connector. */ public void setIsBasicAuthSupported(Boolean isBasicAuthSupported) { this.isBasicAuthSupported = isBasicAuthSupported; } /** ** Indicates whether basic authentication is supported by the connector. *
* * @return Indicates whether basic authentication is supported by the connector. */ public Boolean getIsBasicAuthSupported() { return this.isBasicAuthSupported; } /** ** Indicates whether basic authentication is supported by the connector. *
* * @param isBasicAuthSupported * Indicates whether basic authentication is supported by the connector. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthenticationConfig withIsBasicAuthSupported(Boolean isBasicAuthSupported) { setIsBasicAuthSupported(isBasicAuthSupported); return this; } /** ** Indicates whether basic authentication is supported by the connector. *
* * @return Indicates whether basic authentication is supported by the connector. */ public Boolean isBasicAuthSupported() { return this.isBasicAuthSupported; } /** ** Indicates whether API key authentication is supported by the connector *
* * @param isApiKeyAuthSupported * Indicates whether API key authentication is supported by the connector */ public void setIsApiKeyAuthSupported(Boolean isApiKeyAuthSupported) { this.isApiKeyAuthSupported = isApiKeyAuthSupported; } /** ** Indicates whether API key authentication is supported by the connector *
* * @return Indicates whether API key authentication is supported by the connector */ public Boolean getIsApiKeyAuthSupported() { return this.isApiKeyAuthSupported; } /** ** Indicates whether API key authentication is supported by the connector *
* * @param isApiKeyAuthSupported * Indicates whether API key authentication is supported by the connector * @return Returns a reference to this object so that method calls can be chained together. */ public AuthenticationConfig withIsApiKeyAuthSupported(Boolean isApiKeyAuthSupported) { setIsApiKeyAuthSupported(isApiKeyAuthSupported); return this; } /** ** Indicates whether API key authentication is supported by the connector *
* * @return Indicates whether API key authentication is supported by the connector */ public Boolean isApiKeyAuthSupported() { return this.isApiKeyAuthSupported; } /** ** Indicates whether OAuth 2.0 authentication is supported by the connector. *
* * @param isOAuth2Supported * Indicates whether OAuth 2.0 authentication is supported by the connector. */ public void setIsOAuth2Supported(Boolean isOAuth2Supported) { this.isOAuth2Supported = isOAuth2Supported; } /** ** Indicates whether OAuth 2.0 authentication is supported by the connector. *
* * @return Indicates whether OAuth 2.0 authentication is supported by the connector. */ public Boolean getIsOAuth2Supported() { return this.isOAuth2Supported; } /** ** Indicates whether OAuth 2.0 authentication is supported by the connector. *
* * @param isOAuth2Supported * Indicates whether OAuth 2.0 authentication is supported by the connector. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthenticationConfig withIsOAuth2Supported(Boolean isOAuth2Supported) { setIsOAuth2Supported(isOAuth2Supported); return this; } /** ** Indicates whether OAuth 2.0 authentication is supported by the connector. *
* * @return Indicates whether OAuth 2.0 authentication is supported by the connector. */ public Boolean isOAuth2Supported() { return this.isOAuth2Supported; } /** ** Indicates whether custom authentication is supported by the connector *
* * @param isCustomAuthSupported * Indicates whether custom authentication is supported by the connector */ public void setIsCustomAuthSupported(Boolean isCustomAuthSupported) { this.isCustomAuthSupported = isCustomAuthSupported; } /** ** Indicates whether custom authentication is supported by the connector *
* * @return Indicates whether custom authentication is supported by the connector */ public Boolean getIsCustomAuthSupported() { return this.isCustomAuthSupported; } /** ** Indicates whether custom authentication is supported by the connector *
* * @param isCustomAuthSupported * Indicates whether custom authentication is supported by the connector * @return Returns a reference to this object so that method calls can be chained together. */ public AuthenticationConfig withIsCustomAuthSupported(Boolean isCustomAuthSupported) { setIsCustomAuthSupported(isCustomAuthSupported); return this; } /** ** Indicates whether custom authentication is supported by the connector *
* * @return Indicates whether custom authentication is supported by the connector */ public Boolean isCustomAuthSupported() { return this.isCustomAuthSupported; } /** ** Contains the default values required for OAuth 2.0 authentication. *
* * @param oAuth2Defaults * Contains the default values required for OAuth 2.0 authentication. */ public void setOAuth2Defaults(OAuth2Defaults oAuth2Defaults) { this.oAuth2Defaults = oAuth2Defaults; } /** ** Contains the default values required for OAuth 2.0 authentication. *
* * @return Contains the default values required for OAuth 2.0 authentication. */ public OAuth2Defaults getOAuth2Defaults() { return this.oAuth2Defaults; } /** ** Contains the default values required for OAuth 2.0 authentication. *
* * @param oAuth2Defaults * Contains the default values required for OAuth 2.0 authentication. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthenticationConfig withOAuth2Defaults(OAuth2Defaults oAuth2Defaults) { setOAuth2Defaults(oAuth2Defaults); return this; } /** ** Contains information required for custom authentication. *
* * @return Contains information required for custom authentication. */ public java.util.List* Contains information required for custom authentication. *
* * @param customAuthConfigs * Contains information required for custom authentication. */ public void setCustomAuthConfigs(java.util.Collection* Contains information required for custom authentication. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCustomAuthConfigs(java.util.Collection)} or {@link #withCustomAuthConfigs(java.util.Collection)} if * you want to override the existing values. *
* * @param customAuthConfigs * Contains information required for custom authentication. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthenticationConfig withCustomAuthConfigs(CustomAuthConfig... customAuthConfigs) { if (this.customAuthConfigs == null) { setCustomAuthConfigs(new java.util.ArrayList* Contains information required for custom authentication. *
* * @param customAuthConfigs * Contains information required for custom authentication. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthenticationConfig withCustomAuthConfigs(java.util.Collection