/* * 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; /** *
* The OAuth 2.0 properties required for OAuth 2.0 authentication. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class OAuth2Properties implements Serializable, Cloneable, StructuredPojo { /** ** The token URL required for OAuth 2.0 authentication. *
*/ private String tokenUrl; /** ** The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication. *
*/ private String oAuth2GrantType; /** ** Associates your token URL with a map of properties that you define. Use this parameter to provide any additional * details that the connector requires to authenticate your request. *
*/ private java.util.Map* The token URL required for OAuth 2.0 authentication. *
* * @param tokenUrl * The token URL required for OAuth 2.0 authentication. */ public void setTokenUrl(String tokenUrl) { this.tokenUrl = tokenUrl; } /** ** The token URL required for OAuth 2.0 authentication. *
* * @return The token URL required for OAuth 2.0 authentication. */ public String getTokenUrl() { return this.tokenUrl; } /** ** The token URL required for OAuth 2.0 authentication. *
* * @param tokenUrl * The token URL required for OAuth 2.0 authentication. * @return Returns a reference to this object so that method calls can be chained together. */ public OAuth2Properties withTokenUrl(String tokenUrl) { setTokenUrl(tokenUrl); return this; } /** ** The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication. *
* * @param oAuth2GrantType * The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication. * @see OAuth2GrantType */ public void setOAuth2GrantType(String oAuth2GrantType) { this.oAuth2GrantType = oAuth2GrantType; } /** ** The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication. *
* * @return The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication. * @see OAuth2GrantType */ public String getOAuth2GrantType() { return this.oAuth2GrantType; } /** ** The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication. *
* * @param oAuth2GrantType * The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication. * @return Returns a reference to this object so that method calls can be chained together. * @see OAuth2GrantType */ public OAuth2Properties withOAuth2GrantType(String oAuth2GrantType) { setOAuth2GrantType(oAuth2GrantType); return this; } /** ** The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication. *
* * @param oAuth2GrantType * The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication. * @return Returns a reference to this object so that method calls can be chained together. * @see OAuth2GrantType */ public OAuth2Properties withOAuth2GrantType(OAuth2GrantType oAuth2GrantType) { this.oAuth2GrantType = oAuth2GrantType.toString(); return this; } /** ** Associates your token URL with a map of properties that you define. Use this parameter to provide any additional * details that the connector requires to authenticate your request. *
* * @return Associates your token URL with a map of properties that you define. Use this parameter to provide any * additional details that the connector requires to authenticate your request. */ public java.util.Map* Associates your token URL with a map of properties that you define. Use this parameter to provide any additional * details that the connector requires to authenticate your request. *
* * @param tokenUrlCustomProperties * Associates your token URL with a map of properties that you define. Use this parameter to provide any * additional details that the connector requires to authenticate your request. */ public void setTokenUrlCustomProperties(java.util.Map* Associates your token URL with a map of properties that you define. Use this parameter to provide any additional * details that the connector requires to authenticate your request. *
* * @param tokenUrlCustomProperties * Associates your token URL with a map of properties that you define. Use this parameter to provide any * additional details that the connector requires to authenticate your request. * @return Returns a reference to this object so that method calls can be chained together. */ public OAuth2Properties withTokenUrlCustomProperties(java.util.Map