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/appflow/Appflow_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appflow/model/OAuth2GrantType.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Appflow
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_APPFLOW_API OAuth2Properties();
38 AWS_APPFLOW_API OAuth2Properties(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetTokenUrl() const{ return m_tokenUrl; }
48 inline bool TokenUrlHasBeenSet() const { return m_tokenUrlHasBeenSet; }
49 inline void SetTokenUrl(const Aws::String& value) { m_tokenUrlHasBeenSet = true; m_tokenUrl = value; }
50 inline void SetTokenUrl(Aws::String&& value) { m_tokenUrlHasBeenSet = true; m_tokenUrl = std::move(value); }
51 inline void SetTokenUrl(const char* value) { m_tokenUrlHasBeenSet = true; m_tokenUrl.assign(value); }
52 inline OAuth2Properties& WithTokenUrl(const Aws::String& value) { SetTokenUrl(value); return *this;}
53 inline OAuth2Properties& WithTokenUrl(Aws::String&& value) { SetTokenUrl(std::move(value)); return *this;}
54 inline OAuth2Properties& WithTokenUrl(const char* value) { SetTokenUrl(value); return *this;}
56
58
61 inline const OAuth2GrantType& GetOAuth2GrantType() const{ return m_oAuth2GrantType; }
62 inline bool OAuth2GrantTypeHasBeenSet() const { return m_oAuth2GrantTypeHasBeenSet; }
63 inline void SetOAuth2GrantType(const OAuth2GrantType& value) { m_oAuth2GrantTypeHasBeenSet = true; m_oAuth2GrantType = value; }
64 inline void SetOAuth2GrantType(OAuth2GrantType&& value) { m_oAuth2GrantTypeHasBeenSet = true; m_oAuth2GrantType = std::move(value); }
65 inline OAuth2Properties& WithOAuth2GrantType(const OAuth2GrantType& value) { SetOAuth2GrantType(value); return *this;}
66 inline OAuth2Properties& WithOAuth2GrantType(OAuth2GrantType&& value) { SetOAuth2GrantType(std::move(value)); return *this;}
68
70
75 inline const Aws::Map<Aws::String, Aws::String>& GetTokenUrlCustomProperties() const{ return m_tokenUrlCustomProperties; }
76 inline bool TokenUrlCustomPropertiesHasBeenSet() const { return m_tokenUrlCustomPropertiesHasBeenSet; }
77 inline void SetTokenUrlCustomProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_tokenUrlCustomPropertiesHasBeenSet = true; m_tokenUrlCustomProperties = value; }
78 inline void SetTokenUrlCustomProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_tokenUrlCustomPropertiesHasBeenSet = true; m_tokenUrlCustomProperties = std::move(value); }
81 inline OAuth2Properties& AddTokenUrlCustomProperties(const Aws::String& key, const Aws::String& value) { m_tokenUrlCustomPropertiesHasBeenSet = true; m_tokenUrlCustomProperties.emplace(key, value); return *this; }
82 inline OAuth2Properties& AddTokenUrlCustomProperties(Aws::String&& key, const Aws::String& value) { m_tokenUrlCustomPropertiesHasBeenSet = true; m_tokenUrlCustomProperties.emplace(std::move(key), value); return *this; }
83 inline OAuth2Properties& AddTokenUrlCustomProperties(const Aws::String& key, Aws::String&& value) { m_tokenUrlCustomPropertiesHasBeenSet = true; m_tokenUrlCustomProperties.emplace(key, std::move(value)); return *this; }
84 inline OAuth2Properties& AddTokenUrlCustomProperties(Aws::String&& key, Aws::String&& value) { m_tokenUrlCustomPropertiesHasBeenSet = true; m_tokenUrlCustomProperties.emplace(std::move(key), std::move(value)); return *this; }
85 inline OAuth2Properties& AddTokenUrlCustomProperties(const char* key, Aws::String&& value) { m_tokenUrlCustomPropertiesHasBeenSet = true; m_tokenUrlCustomProperties.emplace(key, std::move(value)); return *this; }
86 inline OAuth2Properties& AddTokenUrlCustomProperties(Aws::String&& key, const char* value) { m_tokenUrlCustomPropertiesHasBeenSet = true; m_tokenUrlCustomProperties.emplace(std::move(key), value); return *this; }
87 inline OAuth2Properties& AddTokenUrlCustomProperties(const char* key, const char* value) { m_tokenUrlCustomPropertiesHasBeenSet = true; m_tokenUrlCustomProperties.emplace(key, value); return *this; }
89 private:
90
91 Aws::String m_tokenUrl;
92 bool m_tokenUrlHasBeenSet = false;
93
94 OAuth2GrantType m_oAuth2GrantType;
95 bool m_oAuth2GrantTypeHasBeenSet = false;
96
97 Aws::Map<Aws::String, Aws::String> m_tokenUrlCustomProperties;
98 bool m_tokenUrlCustomPropertiesHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace Appflow
103} // namespace Aws
OAuth2Properties & WithTokenUrl(const Aws::String &value)
OAuth2Properties & AddTokenUrlCustomProperties(const char *key, Aws::String &&value)
const Aws::String & GetTokenUrl() const
OAuth2Properties & AddTokenUrlCustomProperties(Aws::String &&key, const char *value)
OAuth2Properties & WithTokenUrlCustomProperties(const Aws::Map< Aws::String, Aws::String > &value)
AWS_APPFLOW_API OAuth2Properties & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOAuth2GrantType(const OAuth2GrantType &value)
const OAuth2GrantType & GetOAuth2GrantType() const
OAuth2Properties & AddTokenUrlCustomProperties(const Aws::String &key, Aws::String &&value)
void SetTokenUrlCustomProperties(Aws::Map< Aws::String, Aws::String > &&value)
OAuth2Properties & AddTokenUrlCustomProperties(Aws::String &&key, const Aws::String &value)
OAuth2Properties & WithTokenUrl(const char *value)
OAuth2Properties & WithTokenUrl(Aws::String &&value)
void SetOAuth2GrantType(OAuth2GrantType &&value)
OAuth2Properties & WithOAuth2GrantType(const OAuth2GrantType &value)
OAuth2Properties & WithOAuth2GrantType(OAuth2GrantType &&value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTokenUrlCustomProperties(const Aws::Map< Aws::String, Aws::String > &value)
OAuth2Properties & WithTokenUrlCustomProperties(Aws::Map< Aws::String, Aws::String > &&value)
OAuth2Properties & AddTokenUrlCustomProperties(const char *key, const char *value)
OAuth2Properties & AddTokenUrlCustomProperties(const Aws::String &key, const Aws::String &value)
void SetTokenUrl(const Aws::String &value)
AWS_APPFLOW_API OAuth2Properties(Aws::Utils::Json::JsonView jsonValue)
OAuth2Properties & AddTokenUrlCustomProperties(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTokenUrlCustomProperties() const
void SetTokenUrl(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