AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ConnectorOAuth2Properties.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/model/ClientCredentialsProperties.h>
9#include <aws/glue/model/ConnectorAuthorizationCodeProperties.h>
10#include <aws/glue/model/ConnectorOAuth2GrantType.h>
11#include <aws/glue/model/JWTBearerProperties.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue {
23namespace Model {
24
33 public:
34 AWS_GLUE_API ConnectorOAuth2Properties() = default;
38
40
44 inline ConnectorOAuth2GrantType GetOAuth2GrantType() const { return m_oAuth2GrantType; }
45 inline bool OAuth2GrantTypeHasBeenSet() const { return m_oAuth2GrantTypeHasBeenSet; }
47 m_oAuth2GrantTypeHasBeenSet = true;
48 m_oAuth2GrantType = value;
49 }
51 SetOAuth2GrantType(value);
52 return *this;
53 }
55
57
61 inline const ClientCredentialsProperties& GetClientCredentialsProperties() const { return m_clientCredentialsProperties; }
62 inline bool ClientCredentialsPropertiesHasBeenSet() const { return m_clientCredentialsPropertiesHasBeenSet; }
63 template <typename ClientCredentialsPropertiesT = ClientCredentialsProperties>
64 void SetClientCredentialsProperties(ClientCredentialsPropertiesT&& value) {
65 m_clientCredentialsPropertiesHasBeenSet = true;
66 m_clientCredentialsProperties = std::forward<ClientCredentialsPropertiesT>(value);
67 }
68 template <typename ClientCredentialsPropertiesT = ClientCredentialsProperties>
69 ConnectorOAuth2Properties& WithClientCredentialsProperties(ClientCredentialsPropertiesT&& value) {
70 SetClientCredentialsProperties(std::forward<ClientCredentialsPropertiesT>(value));
71 return *this;
72 }
74
76
80 inline const JWTBearerProperties& GetJWTBearerProperties() const { return m_jWTBearerProperties; }
81 inline bool JWTBearerPropertiesHasBeenSet() const { return m_jWTBearerPropertiesHasBeenSet; }
82 template <typename JWTBearerPropertiesT = JWTBearerProperties>
83 void SetJWTBearerProperties(JWTBearerPropertiesT&& value) {
84 m_jWTBearerPropertiesHasBeenSet = true;
85 m_jWTBearerProperties = std::forward<JWTBearerPropertiesT>(value);
86 }
87 template <typename JWTBearerPropertiesT = JWTBearerProperties>
88 ConnectorOAuth2Properties& WithJWTBearerProperties(JWTBearerPropertiesT&& value) {
89 SetJWTBearerProperties(std::forward<JWTBearerPropertiesT>(value));
90 return *this;
91 }
93
95
99 inline const ConnectorAuthorizationCodeProperties& GetAuthorizationCodeProperties() const { return m_authorizationCodeProperties; }
100 inline bool AuthorizationCodePropertiesHasBeenSet() const { return m_authorizationCodePropertiesHasBeenSet; }
101 template <typename AuthorizationCodePropertiesT = ConnectorAuthorizationCodeProperties>
102 void SetAuthorizationCodeProperties(AuthorizationCodePropertiesT&& value) {
103 m_authorizationCodePropertiesHasBeenSet = true;
104 m_authorizationCodeProperties = std::forward<AuthorizationCodePropertiesT>(value);
105 }
106 template <typename AuthorizationCodePropertiesT = ConnectorAuthorizationCodeProperties>
107 ConnectorOAuth2Properties& WithAuthorizationCodeProperties(AuthorizationCodePropertiesT&& value) {
108 SetAuthorizationCodeProperties(std::forward<AuthorizationCodePropertiesT>(value));
109 return *this;
110 }
112 private:
114
115 ClientCredentialsProperties m_clientCredentialsProperties;
116
117 JWTBearerProperties m_jWTBearerProperties;
118
119 ConnectorAuthorizationCodeProperties m_authorizationCodeProperties;
120 bool m_oAuth2GrantTypeHasBeenSet = false;
121 bool m_clientCredentialsPropertiesHasBeenSet = false;
122 bool m_jWTBearerPropertiesHasBeenSet = false;
123 bool m_authorizationCodePropertiesHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace Glue
128} // namespace Aws
void SetJWTBearerProperties(JWTBearerPropertiesT &&value)
ConnectorOAuth2Properties & WithJWTBearerProperties(JWTBearerPropertiesT &&value)
ConnectorOAuth2GrantType GetOAuth2GrantType() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectorOAuth2Properties & WithOAuth2GrantType(ConnectorOAuth2GrantType value)
AWS_GLUE_API ConnectorOAuth2Properties()=default
void SetAuthorizationCodeProperties(AuthorizationCodePropertiesT &&value)
AWS_GLUE_API ConnectorOAuth2Properties(Aws::Utils::Json::JsonView jsonValue)
const JWTBearerProperties & GetJWTBearerProperties() const
AWS_GLUE_API ConnectorOAuth2Properties & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectorOAuth2Properties & WithClientCredentialsProperties(ClientCredentialsPropertiesT &&value)
const ConnectorAuthorizationCodeProperties & GetAuthorizationCodeProperties() const
ConnectorOAuth2Properties & WithAuthorizationCodeProperties(AuthorizationCodePropertiesT &&value)
void SetClientCredentialsProperties(ClientCredentialsPropertiesT &&value)
void SetOAuth2GrantType(ConnectorOAuth2GrantType value)
const ClientCredentialsProperties & GetClientCredentialsProperties() const
Aws::Utils::Json::JsonValue JsonValue