AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OAuth2Defaults.h
1
6#pragma once
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>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Appflow
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_APPFLOW_API OAuth2Defaults() = default;
39 AWS_APPFLOW_API OAuth2Defaults(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<Aws::String>& GetOauthScopes() const { return m_oauthScopes; }
49 inline bool OauthScopesHasBeenSet() const { return m_oauthScopesHasBeenSet; }
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>>
53 OAuth2Defaults& WithOauthScopes(OauthScopesT&& value) { SetOauthScopes(std::forward<OauthScopesT>(value)); return *this;}
54 template<typename OauthScopesT = Aws::String>
55 OAuth2Defaults& AddOauthScopes(OauthScopesT&& value) { m_oauthScopesHasBeenSet = true; m_oauthScopes.emplace_back(std::forward<OauthScopesT>(value)); return *this; }
57
59
62 inline const Aws::Vector<Aws::String>& GetTokenUrls() const { return m_tokenUrls; }
63 inline bool TokenUrlsHasBeenSet() const { return m_tokenUrlsHasBeenSet; }
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>>
67 OAuth2Defaults& WithTokenUrls(TokenUrlsT&& value) { SetTokenUrls(std::forward<TokenUrlsT>(value)); return *this;}
68 template<typename TokenUrlsT = Aws::String>
69 OAuth2Defaults& AddTokenUrls(TokenUrlsT&& value) { m_tokenUrlsHasBeenSet = true; m_tokenUrls.emplace_back(std::forward<TokenUrlsT>(value)); return *this; }
71
73
76 inline const Aws::Vector<Aws::String>& GetAuthCodeUrls() const { return m_authCodeUrls; }
77 inline bool AuthCodeUrlsHasBeenSet() const { return m_authCodeUrlsHasBeenSet; }
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>>
81 OAuth2Defaults& WithAuthCodeUrls(AuthCodeUrlsT&& value) { SetAuthCodeUrls(std::forward<AuthCodeUrlsT>(value)); return *this;}
82 template<typename AuthCodeUrlsT = Aws::String>
83 OAuth2Defaults& AddAuthCodeUrls(AuthCodeUrlsT&& value) { m_authCodeUrlsHasBeenSet = true; m_authCodeUrls.emplace_back(std::forward<AuthCodeUrlsT>(value)); return *this; }
85
87
90 inline const Aws::Vector<OAuth2GrantType>& GetOauth2GrantTypesSupported() const { return m_oauth2GrantTypesSupported; }
91 inline bool Oauth2GrantTypesSupportedHasBeenSet() const { return m_oauth2GrantTypesSupportedHasBeenSet; }
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>>
95 OAuth2Defaults& WithOauth2GrantTypesSupported(Oauth2GrantTypesSupportedT&& value) { SetOauth2GrantTypesSupported(std::forward<Oauth2GrantTypesSupportedT>(value)); return *this;}
96 inline OAuth2Defaults& AddOauth2GrantTypesSupported(OAuth2GrantType value) { m_oauth2GrantTypesSupportedHasBeenSet = true; m_oauth2GrantTypesSupported.push_back(value); return *this; }
98
100
103 inline const Aws::Vector<OAuth2CustomParameter>& GetOauth2CustomProperties() const { return m_oauth2CustomProperties; }
104 inline bool Oauth2CustomPropertiesHasBeenSet() const { return m_oauth2CustomPropertiesHasBeenSet; }
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>>
108 OAuth2Defaults& WithOauth2CustomProperties(Oauth2CustomPropertiesT&& value) { SetOauth2CustomProperties(std::forward<Oauth2CustomPropertiesT>(value)); return *this;}
109 template<typename Oauth2CustomPropertiesT = OAuth2CustomParameter>
110 OAuth2Defaults& AddOauth2CustomProperties(Oauth2CustomPropertiesT&& value) { m_oauth2CustomPropertiesHasBeenSet = true; m_oauth2CustomProperties.emplace_back(std::forward<Oauth2CustomPropertiesT>(value)); return *this; }
112 private:
113
114 Aws::Vector<Aws::String> m_oauthScopes;
115 bool m_oauthScopesHasBeenSet = false;
116
117 Aws::Vector<Aws::String> m_tokenUrls;
118 bool m_tokenUrlsHasBeenSet = false;
119
120 Aws::Vector<Aws::String> m_authCodeUrls;
121 bool m_authCodeUrlsHasBeenSet = false;
122
123 Aws::Vector<OAuth2GrantType> m_oauth2GrantTypesSupported;
124 bool m_oauth2GrantTypesSupportedHasBeenSet = false;
125
126 Aws::Vector<OAuth2CustomParameter> m_oauth2CustomProperties;
127 bool m_oauth2CustomPropertiesHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace Appflow
132} // namespace Aws
OAuth2Defaults & WithOauthScopes(OauthScopesT &&value)
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
void SetOauthScopes(OauthScopesT &&value)
OAuth2Defaults & AddOauth2GrantTypesSupported(OAuth2GrantType value)
void SetAuthCodeUrls(AuthCodeUrlsT &&value)
OAuth2Defaults & AddTokenUrls(TokenUrlsT &&value)
void SetTokenUrls(TokenUrlsT &&value)
OAuth2Defaults & AddAuthCodeUrls(AuthCodeUrlsT &&value)
void SetOauth2GrantTypesSupported(Oauth2GrantTypesSupportedT &&value)
OAuth2Defaults & AddOauth2CustomProperties(Oauth2CustomPropertiesT &&value)
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