/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Appflow.Model
{
///
/// The OAuth properties required for OAuth type authentication.
///
public partial class OAuthProperties
{
private string _authCodeUrl;
private List _oAuthScopes = new List();
private string _tokenUrl;
///
/// Gets and sets the property AuthCodeUrl.
///
/// The authorization code url required to redirect to SAP Login Page to fetch authorization
/// code for OAuth type authentication.
///
///
[AWSProperty(Required=true, Max=256)]
public string AuthCodeUrl
{
get { return this._authCodeUrl; }
set { this._authCodeUrl = value; }
}
// Check to see if AuthCodeUrl property is set
internal bool IsSetAuthCodeUrl()
{
return this._authCodeUrl != null;
}
///
/// Gets and sets the property OAuthScopes.
///
/// The OAuth scopes required for OAuth type authentication.
///
///
[AWSProperty(Required=true)]
public List OAuthScopes
{
get { return this._oAuthScopes; }
set { this._oAuthScopes = value; }
}
// Check to see if OAuthScopes property is set
internal bool IsSetOAuthScopes()
{
return this._oAuthScopes != null && this._oAuthScopes.Count > 0;
}
///
/// Gets and sets the property TokenUrl.
///
/// The token url required to fetch access/refresh tokens using authorization code and
/// also to refresh expired access token using refresh token.
///
///
[AWSProperty(Required=true, Max=256)]
public string TokenUrl
{
get { return this._tokenUrl; }
set { this._tokenUrl = value; }
}
// Check to see if TokenUrl property is set
internal bool IsSetTokenUrl()
{
return this._tokenUrl != null;
}
}
}