AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
OAuth2Defaults.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/appflow/model/OAuth2CustomParameter.h>
9#include <aws/appflow/model/OAuth2GrantType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Appflow {
23namespace Model {
24
32 public:
33 AWS_APPFLOW_API OAuth2Defaults() = default;
34 AWS_APPFLOW_API OAuth2Defaults(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<Aws::String>& GetOauthScopes() const { return m_oauthScopes; }
43 inline bool OauthScopesHasBeenSet() const { return m_oauthScopesHasBeenSet; }
44 template <typename OauthScopesT = Aws::Vector<Aws::String>>
45 void SetOauthScopes(OauthScopesT&& value) {
46 m_oauthScopesHasBeenSet = true;
47 m_oauthScopes = std::forward<OauthScopesT>(value);
48 }
49 template <typename OauthScopesT = Aws::Vector<Aws::String>>
50 OAuth2Defaults& WithOauthScopes(OauthScopesT&& value) {
51 SetOauthScopes(std::forward<OauthScopesT>(value));
52 return *this;
53 }
54 template <typename OauthScopesT = Aws::String>
55 OAuth2Defaults& AddOauthScopes(OauthScopesT&& value) {
56 m_oauthScopesHasBeenSet = true;
57 m_oauthScopes.emplace_back(std::forward<OauthScopesT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Vector<Aws::String>& GetTokenUrls() const { return m_tokenUrls; }
67 inline bool TokenUrlsHasBeenSet() const { return m_tokenUrlsHasBeenSet; }
68 template <typename TokenUrlsT = Aws::Vector<Aws::String>>
69 void SetTokenUrls(TokenUrlsT&& value) {
70 m_tokenUrlsHasBeenSet = true;
71 m_tokenUrls = std::forward<TokenUrlsT>(value);
72 }
73 template <typename TokenUrlsT = Aws::Vector<Aws::String>>
74 OAuth2Defaults& WithTokenUrls(TokenUrlsT&& value) {
75 SetTokenUrls(std::forward<TokenUrlsT>(value));
76 return *this;
77 }
78 template <typename TokenUrlsT = Aws::String>
79 OAuth2Defaults& AddTokenUrls(TokenUrlsT&& value) {
80 m_tokenUrlsHasBeenSet = true;
81 m_tokenUrls.emplace_back(std::forward<TokenUrlsT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Vector<Aws::String>& GetAuthCodeUrls() const { return m_authCodeUrls; }
91 inline bool AuthCodeUrlsHasBeenSet() const { return m_authCodeUrlsHasBeenSet; }
92 template <typename AuthCodeUrlsT = Aws::Vector<Aws::String>>
93 void SetAuthCodeUrls(AuthCodeUrlsT&& value) {
94 m_authCodeUrlsHasBeenSet = true;
95 m_authCodeUrls = std::forward<AuthCodeUrlsT>(value);
96 }
97 template <typename AuthCodeUrlsT = Aws::Vector<Aws::String>>
98 OAuth2Defaults& WithAuthCodeUrls(AuthCodeUrlsT&& value) {
99 SetAuthCodeUrls(std::forward<AuthCodeUrlsT>(value));
100 return *this;
101 }
102 template <typename AuthCodeUrlsT = Aws::String>
103 OAuth2Defaults& AddAuthCodeUrls(AuthCodeUrlsT&& value) {
104 m_authCodeUrlsHasBeenSet = true;
105 m_authCodeUrls.emplace_back(std::forward<AuthCodeUrlsT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<OAuth2GrantType>& GetOauth2GrantTypesSupported() const { return m_oauth2GrantTypesSupported; }
115 inline bool Oauth2GrantTypesSupportedHasBeenSet() const { return m_oauth2GrantTypesSupportedHasBeenSet; }
116 template <typename Oauth2GrantTypesSupportedT = Aws::Vector<OAuth2GrantType>>
117 void SetOauth2GrantTypesSupported(Oauth2GrantTypesSupportedT&& value) {
118 m_oauth2GrantTypesSupportedHasBeenSet = true;
119 m_oauth2GrantTypesSupported = std::forward<Oauth2GrantTypesSupportedT>(value);
120 }
121 template <typename Oauth2GrantTypesSupportedT = Aws::Vector<OAuth2GrantType>>
122 OAuth2Defaults& WithOauth2GrantTypesSupported(Oauth2GrantTypesSupportedT&& value) {
123 SetOauth2GrantTypesSupported(std::forward<Oauth2GrantTypesSupportedT>(value));
124 return *this;
125 }
127 m_oauth2GrantTypesSupportedHasBeenSet = true;
128 m_oauth2GrantTypesSupported.push_back(value);
129 return *this;
130 }
132
134
137 inline const Aws::Vector<OAuth2CustomParameter>& GetOauth2CustomProperties() const { return m_oauth2CustomProperties; }
138 inline bool Oauth2CustomPropertiesHasBeenSet() const { return m_oauth2CustomPropertiesHasBeenSet; }
139 template <typename Oauth2CustomPropertiesT = Aws::Vector<OAuth2CustomParameter>>
140 void SetOauth2CustomProperties(Oauth2CustomPropertiesT&& value) {
141 m_oauth2CustomPropertiesHasBeenSet = true;
142 m_oauth2CustomProperties = std::forward<Oauth2CustomPropertiesT>(value);
143 }
144 template <typename Oauth2CustomPropertiesT = Aws::Vector<OAuth2CustomParameter>>
145 OAuth2Defaults& WithOauth2CustomProperties(Oauth2CustomPropertiesT&& value) {
146 SetOauth2CustomProperties(std::forward<Oauth2CustomPropertiesT>(value));
147 return *this;
148 }
149 template <typename Oauth2CustomPropertiesT = OAuth2CustomParameter>
150 OAuth2Defaults& AddOauth2CustomProperties(Oauth2CustomPropertiesT&& value) {
151 m_oauth2CustomPropertiesHasBeenSet = true;
152 m_oauth2CustomProperties.emplace_back(std::forward<Oauth2CustomPropertiesT>(value));
153 return *this;
154 }
156 private:
157 Aws::Vector<Aws::String> m_oauthScopes;
158
159 Aws::Vector<Aws::String> m_tokenUrls;
160
161 Aws::Vector<Aws::String> m_authCodeUrls;
162
163 Aws::Vector<OAuth2GrantType> m_oauth2GrantTypesSupported;
164
165 Aws::Vector<OAuth2CustomParameter> m_oauth2CustomProperties;
166 bool m_oauthScopesHasBeenSet = false;
167 bool m_tokenUrlsHasBeenSet = false;
168 bool m_authCodeUrlsHasBeenSet = false;
169 bool m_oauth2GrantTypesSupportedHasBeenSet = false;
170 bool m_oauth2CustomPropertiesHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace Appflow
175} // 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