AWS SDK for C++

AWS SDK for C++ Version 1.11.845

Loading...
Searching...
No Matches
RemoteAgentAuthorizationConfig.h
1
6#pragma once
7#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
8#include <aws/devops-agent/model/RemoteAgentAPIKeyConfig.h>
9#include <aws/devops-agent/model/RemoteAgentBearerTokenConfig.h>
10#include <aws/devops-agent/model/RemoteAgentOAuthClientCredentialsConfig.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DevOpsAgent {
22namespace Model {
23
31 public:
32 AWS_DEVOPSAGENT_API RemoteAgentAuthorizationConfig() = default;
35 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const RemoteAgentAPIKeyConfig& GetApiKey() const { return m_apiKey; }
42 inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
43 template <typename ApiKeyT = RemoteAgentAPIKeyConfig>
44 void SetApiKey(ApiKeyT&& value) {
45 m_apiKeyHasBeenSet = true;
46 m_apiKey = std::forward<ApiKeyT>(value);
47 }
48 template <typename ApiKeyT = RemoteAgentAPIKeyConfig>
50 SetApiKey(std::forward<ApiKeyT>(value));
51 return *this;
52 }
54
56
59 inline const RemoteAgentOAuthClientCredentialsConfig& GetOAuthClientCredentials() const { return m_oAuthClientCredentials; }
60 inline bool OAuthClientCredentialsHasBeenSet() const { return m_oAuthClientCredentialsHasBeenSet; }
61 template <typename OAuthClientCredentialsT = RemoteAgentOAuthClientCredentialsConfig>
62 void SetOAuthClientCredentials(OAuthClientCredentialsT&& value) {
63 m_oAuthClientCredentialsHasBeenSet = true;
64 m_oAuthClientCredentials = std::forward<OAuthClientCredentialsT>(value);
65 }
66 template <typename OAuthClientCredentialsT = RemoteAgentOAuthClientCredentialsConfig>
68 SetOAuthClientCredentials(std::forward<OAuthClientCredentialsT>(value));
69 return *this;
70 }
72
74
77 inline const RemoteAgentBearerTokenConfig& GetBearerToken() const { return m_bearerToken; }
78 inline bool BearerTokenHasBeenSet() const { return m_bearerTokenHasBeenSet; }
79 template <typename BearerTokenT = RemoteAgentBearerTokenConfig>
80 void SetBearerToken(BearerTokenT&& value) {
81 m_bearerTokenHasBeenSet = true;
82 m_bearerToken = std::forward<BearerTokenT>(value);
83 }
84 template <typename BearerTokenT = RemoteAgentBearerTokenConfig>
86 SetBearerToken(std::forward<BearerTokenT>(value));
87 return *this;
88 }
90 private:
92
93 RemoteAgentOAuthClientCredentialsConfig m_oAuthClientCredentials;
94
95 RemoteAgentBearerTokenConfig m_bearerToken;
96 bool m_apiKeyHasBeenSet = false;
97 bool m_oAuthClientCredentialsHasBeenSet = false;
98 bool m_bearerTokenHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace DevOpsAgent
103} // namespace Aws
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
RemoteAgentAuthorizationConfig & WithOAuthClientCredentials(OAuthClientCredentialsT &&value)
RemoteAgentAuthorizationConfig & WithBearerToken(BearerTokenT &&value)
RemoteAgentAuthorizationConfig & WithApiKey(ApiKeyT &&value)
const RemoteAgentOAuthClientCredentialsConfig & GetOAuthClientCredentials() const
AWS_DEVOPSAGENT_API RemoteAgentAuthorizationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSAGENT_API RemoteAgentAuthorizationConfig()=default
AWS_DEVOPSAGENT_API RemoteAgentAuthorizationConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue