AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetOauthScopes(const Aws::Vector<Aws::String>& value) { m_oauthScopesHasBeenSet = true; m_oauthScopes = value; }
51 inline void SetOauthScopes(Aws::Vector<Aws::String>&& value) { m_oauthScopesHasBeenSet = true; m_oauthScopes = std::move(value); }
52 inline OAuth2Defaults& WithOauthScopes(const Aws::Vector<Aws::String>& value) { SetOauthScopes(value); return *this;}
53 inline OAuth2Defaults& WithOauthScopes(Aws::Vector<Aws::String>&& value) { SetOauthScopes(std::move(value)); return *this;}
54 inline OAuth2Defaults& AddOauthScopes(const Aws::String& value) { m_oauthScopesHasBeenSet = true; m_oauthScopes.push_back(value); return *this; }
55 inline OAuth2Defaults& AddOauthScopes(Aws::String&& value) { m_oauthScopesHasBeenSet = true; m_oauthScopes.push_back(std::move(value)); return *this; }
56 inline OAuth2Defaults& AddOauthScopes(const char* value) { m_oauthScopesHasBeenSet = true; m_oauthScopes.push_back(value); return *this; }
58
60
63 inline const Aws::Vector<Aws::String>& GetTokenUrls() const{ return m_tokenUrls; }
64 inline bool TokenUrlsHasBeenSet() const { return m_tokenUrlsHasBeenSet; }
65 inline void SetTokenUrls(const Aws::Vector<Aws::String>& value) { m_tokenUrlsHasBeenSet = true; m_tokenUrls = value; }
66 inline void SetTokenUrls(Aws::Vector<Aws::String>&& value) { m_tokenUrlsHasBeenSet = true; m_tokenUrls = std::move(value); }
67 inline OAuth2Defaults& WithTokenUrls(const Aws::Vector<Aws::String>& value) { SetTokenUrls(value); return *this;}
68 inline OAuth2Defaults& WithTokenUrls(Aws::Vector<Aws::String>&& value) { SetTokenUrls(std::move(value)); return *this;}
69 inline OAuth2Defaults& AddTokenUrls(const Aws::String& value) { m_tokenUrlsHasBeenSet = true; m_tokenUrls.push_back(value); return *this; }
70 inline OAuth2Defaults& AddTokenUrls(Aws::String&& value) { m_tokenUrlsHasBeenSet = true; m_tokenUrls.push_back(std::move(value)); return *this; }
71 inline OAuth2Defaults& AddTokenUrls(const char* value) { m_tokenUrlsHasBeenSet = true; m_tokenUrls.push_back(value); return *this; }
73
75
78 inline const Aws::Vector<Aws::String>& GetAuthCodeUrls() const{ return m_authCodeUrls; }
79 inline bool AuthCodeUrlsHasBeenSet() const { return m_authCodeUrlsHasBeenSet; }
80 inline void SetAuthCodeUrls(const Aws::Vector<Aws::String>& value) { m_authCodeUrlsHasBeenSet = true; m_authCodeUrls = value; }
81 inline void SetAuthCodeUrls(Aws::Vector<Aws::String>&& value) { m_authCodeUrlsHasBeenSet = true; m_authCodeUrls = std::move(value); }
82 inline OAuth2Defaults& WithAuthCodeUrls(const Aws::Vector<Aws::String>& value) { SetAuthCodeUrls(value); return *this;}
83 inline OAuth2Defaults& WithAuthCodeUrls(Aws::Vector<Aws::String>&& value) { SetAuthCodeUrls(std::move(value)); return *this;}
84 inline OAuth2Defaults& AddAuthCodeUrls(const Aws::String& value) { m_authCodeUrlsHasBeenSet = true; m_authCodeUrls.push_back(value); return *this; }
85 inline OAuth2Defaults& AddAuthCodeUrls(Aws::String&& value) { m_authCodeUrlsHasBeenSet = true; m_authCodeUrls.push_back(std::move(value)); return *this; }
86 inline OAuth2Defaults& AddAuthCodeUrls(const char* value) { m_authCodeUrlsHasBeenSet = true; m_authCodeUrls.push_back(value); return *this; }
88
90
93 inline const Aws::Vector<OAuth2GrantType>& GetOauth2GrantTypesSupported() const{ return m_oauth2GrantTypesSupported; }
94 inline bool Oauth2GrantTypesSupportedHasBeenSet() const { return m_oauth2GrantTypesSupportedHasBeenSet; }
95 inline void SetOauth2GrantTypesSupported(const Aws::Vector<OAuth2GrantType>& value) { m_oauth2GrantTypesSupportedHasBeenSet = true; m_oauth2GrantTypesSupported = value; }
96 inline void SetOauth2GrantTypesSupported(Aws::Vector<OAuth2GrantType>&& value) { m_oauth2GrantTypesSupportedHasBeenSet = true; m_oauth2GrantTypesSupported = std::move(value); }
99 inline OAuth2Defaults& AddOauth2GrantTypesSupported(const OAuth2GrantType& value) { m_oauth2GrantTypesSupportedHasBeenSet = true; m_oauth2GrantTypesSupported.push_back(value); return *this; }
100 inline OAuth2Defaults& AddOauth2GrantTypesSupported(OAuth2GrantType&& value) { m_oauth2GrantTypesSupportedHasBeenSet = true; m_oauth2GrantTypesSupported.push_back(std::move(value)); return *this; }
102
104
107 inline const Aws::Vector<OAuth2CustomParameter>& GetOauth2CustomProperties() const{ return m_oauth2CustomProperties; }
108 inline bool Oauth2CustomPropertiesHasBeenSet() const { return m_oauth2CustomPropertiesHasBeenSet; }
109 inline void SetOauth2CustomProperties(const Aws::Vector<OAuth2CustomParameter>& value) { m_oauth2CustomPropertiesHasBeenSet = true; m_oauth2CustomProperties = value; }
110 inline void SetOauth2CustomProperties(Aws::Vector<OAuth2CustomParameter>&& value) { m_oauth2CustomPropertiesHasBeenSet = true; m_oauth2CustomProperties = std::move(value); }
113 inline OAuth2Defaults& AddOauth2CustomProperties(const OAuth2CustomParameter& value) { m_oauth2CustomPropertiesHasBeenSet = true; m_oauth2CustomProperties.push_back(value); return *this; }
114 inline OAuth2Defaults& AddOauth2CustomProperties(OAuth2CustomParameter&& value) { m_oauth2CustomPropertiesHasBeenSet = true; m_oauth2CustomProperties.push_back(std::move(value)); return *this; }
116 private:
117
118 Aws::Vector<Aws::String> m_oauthScopes;
119 bool m_oauthScopesHasBeenSet = false;
120
121 Aws::Vector<Aws::String> m_tokenUrls;
122 bool m_tokenUrlsHasBeenSet = false;
123
124 Aws::Vector<Aws::String> m_authCodeUrls;
125 bool m_authCodeUrlsHasBeenSet = false;
126
127 Aws::Vector<OAuth2GrantType> m_oauth2GrantTypesSupported;
128 bool m_oauth2GrantTypesSupportedHasBeenSet = false;
129
130 Aws::Vector<OAuth2CustomParameter> m_oauth2CustomProperties;
131 bool m_oauth2CustomPropertiesHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace Appflow
136} // namespace Aws
void SetOauth2GrantTypesSupported(const Aws::Vector< OAuth2GrantType > &value)
AWS_APPFLOW_API OAuth2Defaults(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< OAuth2CustomParameter > & GetOauth2CustomProperties() const
OAuth2Defaults & WithOauthScopes(const Aws::Vector< Aws::String > &value)
void SetTokenUrls(Aws::Vector< Aws::String > &&value)
OAuth2Defaults & AddOauth2CustomProperties(const OAuth2CustomParameter &value)
OAuth2Defaults & WithOauth2CustomProperties(const Aws::Vector< OAuth2CustomParameter > &value)
OAuth2Defaults & AddAuthCodeUrls(const Aws::String &value)
OAuth2Defaults & AddTokenUrls(const char *value)
OAuth2Defaults & WithTokenUrls(const Aws::Vector< Aws::String > &value)
void SetOauthScopes(Aws::Vector< Aws::String > &&value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOauth2GrantTypesSupported(Aws::Vector< OAuth2GrantType > &&value)
OAuth2Defaults & AddTokenUrls(const Aws::String &value)
OAuth2Defaults & AddOauth2GrantTypesSupported(OAuth2GrantType &&value)
void SetOauthScopes(const Aws::Vector< Aws::String > &value)
OAuth2Defaults & WithTokenUrls(Aws::Vector< Aws::String > &&value)
void SetOauth2CustomProperties(const Aws::Vector< OAuth2CustomParameter > &value)
OAuth2Defaults & AddAuthCodeUrls(const char *value)
void SetAuthCodeUrls(Aws::Vector< Aws::String > &&value)
OAuth2Defaults & WithOauth2CustomProperties(Aws::Vector< OAuth2CustomParameter > &&value)
OAuth2Defaults & WithOauth2GrantTypesSupported(Aws::Vector< OAuth2GrantType > &&value)
OAuth2Defaults & WithAuthCodeUrls(Aws::Vector< Aws::String > &&value)
OAuth2Defaults & WithOauth2GrantTypesSupported(const Aws::Vector< OAuth2GrantType > &value)
OAuth2Defaults & AddOauthScopes(const Aws::String &value)
void SetTokenUrls(const Aws::Vector< Aws::String > &value)
OAuth2Defaults & AddOauthScopes(const char *value)
OAuth2Defaults & AddOauthScopes(Aws::String &&value)
OAuth2Defaults & WithOauthScopes(Aws::Vector< Aws::String > &&value)
void SetAuthCodeUrls(const Aws::Vector< Aws::String > &value)
OAuth2Defaults & AddOauth2CustomProperties(OAuth2CustomParameter &&value)
void SetOauth2CustomProperties(Aws::Vector< OAuth2CustomParameter > &&value)
const Aws::Vector< OAuth2GrantType > & GetOauth2GrantTypesSupported() const
AWS_APPFLOW_API OAuth2Defaults & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetOauthScopes() const
OAuth2Defaults & AddTokenUrls(Aws::String &&value)
const Aws::Vector< Aws::String > & GetTokenUrls() const
OAuth2Defaults & WithAuthCodeUrls(const Aws::Vector< Aws::String > &value)
OAuth2Defaults & AddAuthCodeUrls(Aws::String &&value)
OAuth2Defaults & AddOauth2GrantTypesSupported(const OAuth2GrantType &value)
const Aws::Vector< Aws::String > & GetAuthCodeUrls() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue