AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
OAuth2PropertiesPatch.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/OAuth2ClientApplication.h>
11#include <aws/datazone/model/OAuth2GrantType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DataZone {
23namespace Model {
24
33 public:
34 AWS_DATAZONE_API OAuth2PropertiesPatch() = default;
37 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline OAuth2GrantType GetOAuth2GrantType() const { return m_oAuth2GrantType; }
44 inline bool OAuth2GrantTypeHasBeenSet() const { return m_oAuth2GrantTypeHasBeenSet; }
46 m_oAuth2GrantTypeHasBeenSet = true;
47 m_oAuth2GrantType = value;
48 }
50 SetOAuth2GrantType(value);
51 return *this;
52 }
54
56
59 inline const OAuth2ClientApplication& GetOAuth2ClientApplication() const { return m_oAuth2ClientApplication; }
60 inline bool OAuth2ClientApplicationHasBeenSet() const { return m_oAuth2ClientApplicationHasBeenSet; }
61 template <typename OAuth2ClientApplicationT = OAuth2ClientApplication>
62 void SetOAuth2ClientApplication(OAuth2ClientApplicationT&& value) {
63 m_oAuth2ClientApplicationHasBeenSet = true;
64 m_oAuth2ClientApplication = std::forward<OAuth2ClientApplicationT>(value);
65 }
66 template <typename OAuth2ClientApplicationT = OAuth2ClientApplication>
67 OAuth2PropertiesPatch& WithOAuth2ClientApplication(OAuth2ClientApplicationT&& value) {
68 SetOAuth2ClientApplication(std::forward<OAuth2ClientApplicationT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetTokenUrl() const { return m_tokenUrl; }
78 inline bool TokenUrlHasBeenSet() const { return m_tokenUrlHasBeenSet; }
79 template <typename TokenUrlT = Aws::String>
80 void SetTokenUrl(TokenUrlT&& value) {
81 m_tokenUrlHasBeenSet = true;
82 m_tokenUrl = std::forward<TokenUrlT>(value);
83 }
84 template <typename TokenUrlT = Aws::String>
85 OAuth2PropertiesPatch& WithTokenUrl(TokenUrlT&& value) {
86 SetTokenUrl(std::forward<TokenUrlT>(value));
87 return *this;
88 }
90
92
97 inline const Aws::Map<Aws::String, Aws::String>& GetTokenUrlParametersMap() const { return m_tokenUrlParametersMap; }
98 inline bool TokenUrlParametersMapHasBeenSet() const { return m_tokenUrlParametersMapHasBeenSet; }
99 template <typename TokenUrlParametersMapT = Aws::Map<Aws::String, Aws::String>>
100 void SetTokenUrlParametersMap(TokenUrlParametersMapT&& value) {
101 m_tokenUrlParametersMapHasBeenSet = true;
102 m_tokenUrlParametersMap = std::forward<TokenUrlParametersMapT>(value);
103 }
104 template <typename TokenUrlParametersMapT = Aws::Map<Aws::String, Aws::String>>
105 OAuth2PropertiesPatch& WithTokenUrlParametersMap(TokenUrlParametersMapT&& value) {
106 SetTokenUrlParametersMap(std::forward<TokenUrlParametersMapT>(value));
107 return *this;
108 }
109 template <typename TokenUrlParametersMapKeyT = Aws::String, typename TokenUrlParametersMapValueT = Aws::String>
110 OAuth2PropertiesPatch& AddTokenUrlParametersMap(TokenUrlParametersMapKeyT&& key, TokenUrlParametersMapValueT&& value) {
111 m_tokenUrlParametersMapHasBeenSet = true;
112 m_tokenUrlParametersMap.emplace(std::forward<TokenUrlParametersMapKeyT>(key), std::forward<TokenUrlParametersMapValueT>(value));
113 return *this;
114 }
116 private:
117 OAuth2GrantType m_oAuth2GrantType{OAuth2GrantType::NOT_SET};
118
119 OAuth2ClientApplication m_oAuth2ClientApplication;
120
121 Aws::String m_tokenUrl;
122
123 Aws::Map<Aws::String, Aws::String> m_tokenUrlParametersMap;
124 bool m_oAuth2GrantTypeHasBeenSet = false;
125 bool m_oAuth2ClientApplicationHasBeenSet = false;
126 bool m_tokenUrlHasBeenSet = false;
127 bool m_tokenUrlParametersMapHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace DataZone
132} // namespace Aws
AWS_DATAZONE_API OAuth2PropertiesPatch(Aws::Utils::Json::JsonView jsonValue)
OAuth2PropertiesPatch & WithOAuth2ClientApplication(OAuth2ClientApplicationT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTokenUrlParametersMap(TokenUrlParametersMapT &&value)
OAuth2PropertiesPatch & AddTokenUrlParametersMap(TokenUrlParametersMapKeyT &&key, TokenUrlParametersMapValueT &&value)
const OAuth2ClientApplication & GetOAuth2ClientApplication() const
AWS_DATAZONE_API OAuth2PropertiesPatch()=default
OAuth2PropertiesPatch & WithTokenUrlParametersMap(TokenUrlParametersMapT &&value)
AWS_DATAZONE_API OAuth2PropertiesPatch & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOAuth2ClientApplication(OAuth2ClientApplicationT &&value)
OAuth2PropertiesPatch & WithTokenUrl(TokenUrlT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTokenUrlParametersMap() const
OAuth2PropertiesPatch & WithOAuth2GrantType(OAuth2GrantType 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