AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OAuth2Properties.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/model/OAuth2GrantType.h>
9#include <aws/glue/model/OAuth2ClientApplication.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.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 Glue
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_GLUE_API OAuth2Properties();
42
43
45
49 inline const OAuth2GrantType& GetOAuth2GrantType() const{ return m_oAuth2GrantType; }
50 inline bool OAuth2GrantTypeHasBeenSet() const { return m_oAuth2GrantTypeHasBeenSet; }
51 inline void SetOAuth2GrantType(const OAuth2GrantType& value) { m_oAuth2GrantTypeHasBeenSet = true; m_oAuth2GrantType = value; }
52 inline void SetOAuth2GrantType(OAuth2GrantType&& value) { m_oAuth2GrantTypeHasBeenSet = true; m_oAuth2GrantType = std::move(value); }
53 inline OAuth2Properties& WithOAuth2GrantType(const OAuth2GrantType& value) { SetOAuth2GrantType(value); return *this;}
54 inline OAuth2Properties& WithOAuth2GrantType(OAuth2GrantType&& value) { SetOAuth2GrantType(std::move(value)); return *this;}
56
58
61 inline const OAuth2ClientApplication& GetOAuth2ClientApplication() const{ return m_oAuth2ClientApplication; }
62 inline bool OAuth2ClientApplicationHasBeenSet() const { return m_oAuth2ClientApplicationHasBeenSet; }
63 inline void SetOAuth2ClientApplication(const OAuth2ClientApplication& value) { m_oAuth2ClientApplicationHasBeenSet = true; m_oAuth2ClientApplication = value; }
64 inline void SetOAuth2ClientApplication(OAuth2ClientApplication&& value) { m_oAuth2ClientApplicationHasBeenSet = true; m_oAuth2ClientApplication = std::move(value); }
68
70
74 inline const Aws::String& GetTokenUrl() const{ return m_tokenUrl; }
75 inline bool TokenUrlHasBeenSet() const { return m_tokenUrlHasBeenSet; }
76 inline void SetTokenUrl(const Aws::String& value) { m_tokenUrlHasBeenSet = true; m_tokenUrl = value; }
77 inline void SetTokenUrl(Aws::String&& value) { m_tokenUrlHasBeenSet = true; m_tokenUrl = std::move(value); }
78 inline void SetTokenUrl(const char* value) { m_tokenUrlHasBeenSet = true; m_tokenUrl.assign(value); }
79 inline OAuth2Properties& WithTokenUrl(const Aws::String& value) { SetTokenUrl(value); return *this;}
80 inline OAuth2Properties& WithTokenUrl(Aws::String&& value) { SetTokenUrl(std::move(value)); return *this;}
81 inline OAuth2Properties& WithTokenUrl(const char* value) { SetTokenUrl(value); return *this;}
83
85
88 inline const Aws::Map<Aws::String, Aws::String>& GetTokenUrlParametersMap() const{ return m_tokenUrlParametersMap; }
89 inline bool TokenUrlParametersMapHasBeenSet() const { return m_tokenUrlParametersMapHasBeenSet; }
90 inline void SetTokenUrlParametersMap(const Aws::Map<Aws::String, Aws::String>& value) { m_tokenUrlParametersMapHasBeenSet = true; m_tokenUrlParametersMap = value; }
91 inline void SetTokenUrlParametersMap(Aws::Map<Aws::String, Aws::String>&& value) { m_tokenUrlParametersMapHasBeenSet = true; m_tokenUrlParametersMap = std::move(value); }
94 inline OAuth2Properties& AddTokenUrlParametersMap(const Aws::String& key, const Aws::String& value) { m_tokenUrlParametersMapHasBeenSet = true; m_tokenUrlParametersMap.emplace(key, value); return *this; }
95 inline OAuth2Properties& AddTokenUrlParametersMap(Aws::String&& key, const Aws::String& value) { m_tokenUrlParametersMapHasBeenSet = true; m_tokenUrlParametersMap.emplace(std::move(key), value); return *this; }
96 inline OAuth2Properties& AddTokenUrlParametersMap(const Aws::String& key, Aws::String&& value) { m_tokenUrlParametersMapHasBeenSet = true; m_tokenUrlParametersMap.emplace(key, std::move(value)); return *this; }
97 inline OAuth2Properties& AddTokenUrlParametersMap(Aws::String&& key, Aws::String&& value) { m_tokenUrlParametersMapHasBeenSet = true; m_tokenUrlParametersMap.emplace(std::move(key), std::move(value)); return *this; }
98 inline OAuth2Properties& AddTokenUrlParametersMap(const char* key, Aws::String&& value) { m_tokenUrlParametersMapHasBeenSet = true; m_tokenUrlParametersMap.emplace(key, std::move(value)); return *this; }
99 inline OAuth2Properties& AddTokenUrlParametersMap(Aws::String&& key, const char* value) { m_tokenUrlParametersMapHasBeenSet = true; m_tokenUrlParametersMap.emplace(std::move(key), value); return *this; }
100 inline OAuth2Properties& AddTokenUrlParametersMap(const char* key, const char* value) { m_tokenUrlParametersMapHasBeenSet = true; m_tokenUrlParametersMap.emplace(key, value); return *this; }
102 private:
103
104 OAuth2GrantType m_oAuth2GrantType;
105 bool m_oAuth2GrantTypeHasBeenSet = false;
106
107 OAuth2ClientApplication m_oAuth2ClientApplication;
108 bool m_oAuth2ClientApplicationHasBeenSet = false;
109
110 Aws::String m_tokenUrl;
111 bool m_tokenUrlHasBeenSet = false;
112
113 Aws::Map<Aws::String, Aws::String> m_tokenUrlParametersMap;
114 bool m_tokenUrlParametersMapHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace Glue
119} // namespace Aws
void SetOAuth2GrantType(const OAuth2GrantType &value)
void SetTokenUrlParametersMap(Aws::Map< Aws::String, Aws::String > &&value)
OAuth2Properties & AddTokenUrlParametersMap(const char *key, const char *value)
void SetOAuth2ClientApplication(const OAuth2ClientApplication &value)
void SetOAuth2GrantType(OAuth2GrantType &&value)
AWS_GLUE_API OAuth2Properties & operator=(Aws::Utils::Json::JsonView jsonValue)
OAuth2Properties & WithTokenUrl(const Aws::String &value)
OAuth2Properties & WithOAuth2GrantType(OAuth2GrantType &&value)
OAuth2Properties & WithOAuth2GrantType(const OAuth2GrantType &value)
AWS_GLUE_API OAuth2Properties(Aws::Utils::Json::JsonView jsonValue)
void SetTokenUrl(const Aws::String &value)
OAuth2Properties & WithTokenUrlParametersMap(Aws::Map< Aws::String, Aws::String > &&value)
OAuth2Properties & WithTokenUrlParametersMap(const Aws::Map< Aws::String, Aws::String > &value)
const OAuth2GrantType & GetOAuth2GrantType() const
OAuth2Properties & AddTokenUrlParametersMap(Aws::String &&key, const Aws::String &value)
OAuth2Properties & WithTokenUrl(const char *value)
void SetTokenUrl(Aws::String &&value)
OAuth2Properties & AddTokenUrlParametersMap(Aws::String &&key, const char *value)
OAuth2Properties & WithOAuth2ClientApplication(const OAuth2ClientApplication &value)
void SetTokenUrl(const char *value)
OAuth2Properties & WithOAuth2ClientApplication(OAuth2ClientApplication &&value)
OAuth2Properties & WithTokenUrl(Aws::String &&value)
OAuth2Properties & AddTokenUrlParametersMap(const char *key, Aws::String &&value)
OAuth2Properties & AddTokenUrlParametersMap(Aws::String &&key, Aws::String &&value)
OAuth2Properties & AddTokenUrlParametersMap(const Aws::String &key, const Aws::String &value)
OAuth2Properties & AddTokenUrlParametersMap(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTokenUrlParametersMap() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOAuth2ClientApplication(OAuth2ClientApplication &&value)
const Aws::String & GetTokenUrl() const
const OAuth2ClientApplication & GetOAuth2ClientApplication() const
void SetTokenUrlParametersMap(const Aws::Map< Aws::String, Aws::String > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue