AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
OAuth2ClientCredentialConfiguration.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QBusiness
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_QBUSINESS_API OAuth2ClientCredentialConfiguration() = default;
38 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
47 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
48 template<typename SecretArnT = Aws::String>
49 void SetSecretArn(SecretArnT&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::forward<SecretArnT>(value); }
50 template<typename SecretArnT = Aws::String>
51 OAuth2ClientCredentialConfiguration& WithSecretArn(SecretArnT&& value) { SetSecretArn(std::forward<SecretArnT>(value)); return *this;}
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) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
63 template<typename RoleArnT = Aws::String>
64 OAuth2ClientCredentialConfiguration& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
66
68
72 inline const Aws::String& GetAuthorizationUrl() const { return m_authorizationUrl; }
73 inline bool AuthorizationUrlHasBeenSet() const { return m_authorizationUrlHasBeenSet; }
74 template<typename AuthorizationUrlT = Aws::String>
75 void SetAuthorizationUrl(AuthorizationUrlT&& value) { m_authorizationUrlHasBeenSet = true; m_authorizationUrl = std::forward<AuthorizationUrlT>(value); }
76 template<typename AuthorizationUrlT = Aws::String>
77 OAuth2ClientCredentialConfiguration& WithAuthorizationUrl(AuthorizationUrlT&& value) { SetAuthorizationUrl(std::forward<AuthorizationUrlT>(value)); return *this;}
79
81
85 inline const Aws::String& GetTokenUrl() const { return m_tokenUrl; }
86 inline bool TokenUrlHasBeenSet() const { return m_tokenUrlHasBeenSet; }
87 template<typename TokenUrlT = Aws::String>
88 void SetTokenUrl(TokenUrlT&& value) { m_tokenUrlHasBeenSet = true; m_tokenUrl = std::forward<TokenUrlT>(value); }
89 template<typename TokenUrlT = Aws::String>
90 OAuth2ClientCredentialConfiguration& WithTokenUrl(TokenUrlT&& value) { SetTokenUrl(std::forward<TokenUrlT>(value)); return *this;}
92 private:
93
94 Aws::String m_secretArn;
95 bool m_secretArnHasBeenSet = false;
96
97 Aws::String m_roleArn;
98 bool m_roleArnHasBeenSet = false;
99
100 Aws::String m_authorizationUrl;
101 bool m_authorizationUrlHasBeenSet = false;
102
103 Aws::String m_tokenUrl;
104 bool m_tokenUrlHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace QBusiness
109} // 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