7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appflow/model/OAuth2GrantType.h>
11#include <aws/appflow/model/OAuth2CustomParameter.h>
50 template<
typename OauthScopesT = Aws::Vector<Aws::String>>
51 void SetOauthScopes(OauthScopesT&& value) { m_oauthScopesHasBeenSet =
true; m_oauthScopes = std::forward<OauthScopesT>(value); }
52 template<
typename OauthScopesT = Aws::Vector<Aws::String>>
54 template<
typename OauthScopesT = Aws::String>
55 OAuth2Defaults&
AddOauthScopes(OauthScopesT&& value) { m_oauthScopesHasBeenSet =
true; m_oauthScopes.emplace_back(std::forward<OauthScopesT>(value));
return *
this; }
64 template<
typename TokenUrlsT = Aws::Vector<Aws::String>>
65 void SetTokenUrls(TokenUrlsT&& value) { m_tokenUrlsHasBeenSet =
true; m_tokenUrls = std::forward<TokenUrlsT>(value); }
66 template<
typename TokenUrlsT = Aws::Vector<Aws::String>>
68 template<
typename TokenUrlsT = Aws::String>
69 OAuth2Defaults&
AddTokenUrls(TokenUrlsT&& value) { m_tokenUrlsHasBeenSet =
true; m_tokenUrls.emplace_back(std::forward<TokenUrlsT>(value));
return *
this; }
78 template<
typename AuthCodeUrlsT = Aws::Vector<Aws::String>>
79 void SetAuthCodeUrls(AuthCodeUrlsT&& value) { m_authCodeUrlsHasBeenSet =
true; m_authCodeUrls = std::forward<AuthCodeUrlsT>(value); }
80 template<
typename AuthCodeUrlsT = Aws::Vector<Aws::String>>
82 template<
typename AuthCodeUrlsT = Aws::String>
83 OAuth2Defaults&
AddAuthCodeUrls(AuthCodeUrlsT&& value) { m_authCodeUrlsHasBeenSet =
true; m_authCodeUrls.emplace_back(std::forward<AuthCodeUrlsT>(value));
return *
this; }
92 template<
typename Oauth2GrantTypesSupportedT = Aws::Vector<OAuth2GrantType>>
93 void SetOauth2GrantTypesSupported(Oauth2GrantTypesSupportedT&& value) { m_oauth2GrantTypesSupportedHasBeenSet =
true; m_oauth2GrantTypesSupported = std::forward<Oauth2GrantTypesSupportedT>(value); }
94 template<
typename Oauth2GrantTypesSupportedT = Aws::Vector<OAuth2GrantType>>
105 template<
typename Oauth2CustomPropertiesT = Aws::Vector<OAuth2CustomParameter>>
106 void SetOauth2CustomProperties(Oauth2CustomPropertiesT&& value) { m_oauth2CustomPropertiesHasBeenSet =
true; m_oauth2CustomProperties = std::forward<Oauth2CustomPropertiesT>(value); }
107 template<
typename Oauth2CustomPropertiesT = Aws::Vector<OAuth2CustomParameter>>
109 template<
typename Oauth2CustomPropertiesT = OAuth2CustomParameter>
110 OAuth2Defaults&
AddOauth2CustomProperties(Oauth2CustomPropertiesT&& value) { m_oauth2CustomPropertiesHasBeenSet =
true; m_oauth2CustomProperties.emplace_back(std::forward<Oauth2CustomPropertiesT>(value));
return *
this; }
115 bool m_oauthScopesHasBeenSet =
false;
118 bool m_tokenUrlsHasBeenSet =
false;
121 bool m_authCodeUrlsHasBeenSet =
false;
124 bool m_oauth2GrantTypesSupportedHasBeenSet =
false;
127 bool m_oauth2CustomPropertiesHasBeenSet =
false;
OAuth2Defaults & WithOauthScopes(OauthScopesT &&value)
bool AuthCodeUrlsHasBeenSet() const
bool OauthScopesHasBeenSet() const
AWS_APPFLOW_API OAuth2Defaults(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< OAuth2CustomParameter > & GetOauth2CustomProperties() const
OAuth2Defaults & WithOauth2GrantTypesSupported(Oauth2GrantTypesSupportedT &&value)
void SetOauth2CustomProperties(Oauth2CustomPropertiesT &&value)
OAuth2Defaults & WithOauth2CustomProperties(Oauth2CustomPropertiesT &&value)
OAuth2Defaults & AddOauthScopes(OauthScopesT &&value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
bool Oauth2GrantTypesSupportedHasBeenSet() const
void SetOauthScopes(OauthScopesT &&value)
OAuth2Defaults & AddOauth2GrantTypesSupported(OAuth2GrantType value)
bool Oauth2CustomPropertiesHasBeenSet() const
void SetAuthCodeUrls(AuthCodeUrlsT &&value)
OAuth2Defaults & AddTokenUrls(TokenUrlsT &&value)
void SetTokenUrls(TokenUrlsT &&value)
OAuth2Defaults & AddAuthCodeUrls(AuthCodeUrlsT &&value)
void SetOauth2GrantTypesSupported(Oauth2GrantTypesSupportedT &&value)
OAuth2Defaults & AddOauth2CustomProperties(Oauth2CustomPropertiesT &&value)
bool TokenUrlsHasBeenSet() const
const Aws::Vector< OAuth2GrantType > & GetOauth2GrantTypesSupported() const
AWS_APPFLOW_API OAuth2Defaults & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetOauthScopes() const
const Aws::Vector< Aws::String > & GetTokenUrls() const
OAuth2Defaults & WithAuthCodeUrls(AuthCodeUrlsT &&value)
AWS_APPFLOW_API OAuth2Defaults()=default
const Aws::Vector< Aws::String > & GetAuthCodeUrls() const
OAuth2Defaults & WithTokenUrls(TokenUrlsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue