/* * 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 properties required for OAuth type authentication. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class OAuthProperties implements Serializable, Cloneable, StructuredPojo { /** ** The token url required to fetch access/refresh tokens using authorization code and also to refresh expired access * token using refresh token. *
*/ private String tokenUrl; /** ** The authorization code url required to redirect to SAP Login Page to fetch authorization code for OAuth type * authentication. *
*/ private String authCodeUrl; /** ** The OAuth scopes required for OAuth type authentication. *
*/ private java.util.List* The token url required to fetch access/refresh tokens using authorization code and also to refresh expired access * token using refresh token. *
* * @param tokenUrl * The token url required to fetch access/refresh tokens using authorization code and also to refresh expired * access token using refresh token. */ public void setTokenUrl(String tokenUrl) { this.tokenUrl = tokenUrl; } /** ** The token url required to fetch access/refresh tokens using authorization code and also to refresh expired access * token using refresh token. *
* * @return The token url required to fetch access/refresh tokens using authorization code and also to refresh * expired access token using refresh token. */ public String getTokenUrl() { return this.tokenUrl; } /** ** The token url required to fetch access/refresh tokens using authorization code and also to refresh expired access * token using refresh token. *
* * @param tokenUrl * The token url required to fetch access/refresh tokens using authorization code and also to refresh expired * access token using refresh token. * @return Returns a reference to this object so that method calls can be chained together. */ public OAuthProperties withTokenUrl(String tokenUrl) { setTokenUrl(tokenUrl); return this; } /** ** The authorization code url required to redirect to SAP Login Page to fetch authorization code for OAuth type * authentication. *
* * @param authCodeUrl * The authorization code url required to redirect to SAP Login Page to fetch authorization code for OAuth * type authentication. */ public void setAuthCodeUrl(String authCodeUrl) { this.authCodeUrl = authCodeUrl; } /** ** The authorization code url required to redirect to SAP Login Page to fetch authorization code for OAuth type * authentication. *
* * @return The authorization code url required to redirect to SAP Login Page to fetch authorization code for OAuth * type authentication. */ public String getAuthCodeUrl() { return this.authCodeUrl; } /** ** The authorization code url required to redirect to SAP Login Page to fetch authorization code for OAuth type * authentication. *
* * @param authCodeUrl * The authorization code url required to redirect to SAP Login Page to fetch authorization code for OAuth * type authentication. * @return Returns a reference to this object so that method calls can be chained together. */ public OAuthProperties withAuthCodeUrl(String authCodeUrl) { setAuthCodeUrl(authCodeUrl); return this; } /** ** The OAuth scopes required for OAuth type authentication. *
* * @return The OAuth scopes required for OAuth type authentication. */ public java.util.List* The OAuth scopes required for OAuth type authentication. *
* * @param oAuthScopes * The OAuth scopes required for OAuth type authentication. */ public void setOAuthScopes(java.util.Collection* The OAuth scopes required for OAuth type authentication. *
** 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 * The OAuth scopes required for OAuth type authentication. * @return Returns a reference to this object so that method calls can be chained together. */ public OAuthProperties withOAuthScopes(String... oAuthScopes) { if (this.oAuthScopes == null) { setOAuthScopes(new java.util.ArrayList* The OAuth scopes required for OAuth type authentication. *
* * @param oAuthScopes * The OAuth scopes required for OAuth type authentication. * @return Returns a reference to this object so that method calls can be chained together. */ public OAuthProperties withOAuthScopes(java.util.Collection