AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
OAuth2ClientCredentialConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qbusiness/QBusiness_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace QBusiness {
20namespace Model {
21
29 public:
30 AWS_QBUSINESS_API OAuth2ClientCredentialConfiguration() = default;
33 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
41 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
42 template <typename SecretArnT = Aws::String>
43 void SetSecretArn(SecretArnT&& value) {
44 m_secretArnHasBeenSet = true;
45 m_secretArn = std::forward<SecretArnT>(value);
46 }
47 template <typename SecretArnT = Aws::String>
49 SetSecretArn(std::forward<SecretArnT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
60 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
61 template <typename RoleArnT = Aws::String>
62 void SetRoleArn(RoleArnT&& value) {
63 m_roleArnHasBeenSet = true;
64 m_roleArn = std::forward<RoleArnT>(value);
65 }
66 template <typename RoleArnT = Aws::String>
68 SetRoleArn(std::forward<RoleArnT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetAuthorizationUrl() const { return m_authorizationUrl; }
79 inline bool AuthorizationUrlHasBeenSet() const { return m_authorizationUrlHasBeenSet; }
80 template <typename AuthorizationUrlT = Aws::String>
82 m_authorizationUrlHasBeenSet = true;
83 m_authorizationUrl = std::forward<AuthorizationUrlT>(value);
84 }
85 template <typename AuthorizationUrlT = Aws::String>
87 SetAuthorizationUrl(std::forward<AuthorizationUrlT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetTokenUrl() const { return m_tokenUrl; }
98 inline bool TokenUrlHasBeenSet() const { return m_tokenUrlHasBeenSet; }
99 template <typename TokenUrlT = Aws::String>
100 void SetTokenUrl(TokenUrlT&& value) {
101 m_tokenUrlHasBeenSet = true;
102 m_tokenUrl = std::forward<TokenUrlT>(value);
103 }
104 template <typename TokenUrlT = Aws::String>
106 SetTokenUrl(std::forward<TokenUrlT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_secretArn;
112 bool m_secretArnHasBeenSet = false;
113
114 Aws::String m_roleArn;
115 bool m_roleArnHasBeenSet = false;
116
117 Aws::String m_authorizationUrl;
118 bool m_authorizationUrlHasBeenSet = false;
119
120 Aws::String m_tokenUrl;
121 bool m_tokenUrlHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace QBusiness
126} // namespace Aws
AWS_QBUSINESS_API OAuth2ClientCredentialConfiguration(Aws::Utils::Json::JsonView jsonValue)
OAuth2ClientCredentialConfiguration & WithSecretArn(SecretArnT &&value)
OAuth2ClientCredentialConfiguration & WithTokenUrl(TokenUrlT &&value)
OAuth2ClientCredentialConfiguration & WithAuthorizationUrl(AuthorizationUrlT &&value)
AWS_QBUSINESS_API OAuth2ClientCredentialConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
OAuth2ClientCredentialConfiguration & WithRoleArn(RoleArnT &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue