AWS SDK for C++

AWS SDK for C++ Version 1.11.845

Loading...
Searching...
No Matches
RemoteAgentBearerTokenConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DevOpsAgent {
20namespace Model {
21
29 public:
30 AWS_DEVOPSAGENT_API RemoteAgentBearerTokenConfig() = default;
33 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetTokenName() const { return m_tokenName; }
40 inline bool TokenNameHasBeenSet() const { return m_tokenNameHasBeenSet; }
41 template <typename TokenNameT = Aws::String>
42 void SetTokenName(TokenNameT&& value) {
43 m_tokenNameHasBeenSet = true;
44 m_tokenName = std::forward<TokenNameT>(value);
45 }
46 template <typename TokenNameT = Aws::String>
48 SetTokenName(std::forward<TokenNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetTokenValue() const { return m_tokenValue; }
58 inline bool TokenValueHasBeenSet() const { return m_tokenValueHasBeenSet; }
59 template <typename TokenValueT = Aws::String>
60 void SetTokenValue(TokenValueT&& value) {
61 m_tokenValueHasBeenSet = true;
62 m_tokenValue = std::forward<TokenValueT>(value);
63 }
64 template <typename TokenValueT = Aws::String>
66 SetTokenValue(std::forward<TokenValueT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetAuthorizationHeader() const { return m_authorizationHeader; }
77 inline bool AuthorizationHeaderHasBeenSet() const { return m_authorizationHeaderHasBeenSet; }
78 template <typename AuthorizationHeaderT = Aws::String>
79 void SetAuthorizationHeader(AuthorizationHeaderT&& value) {
80 m_authorizationHeaderHasBeenSet = true;
81 m_authorizationHeader = std::forward<AuthorizationHeaderT>(value);
82 }
83 template <typename AuthorizationHeaderT = Aws::String>
85 SetAuthorizationHeader(std::forward<AuthorizationHeaderT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_tokenName;
91
92 Aws::String m_tokenValue;
93
94 Aws::String m_authorizationHeader;
95 bool m_tokenNameHasBeenSet = false;
96 bool m_tokenValueHasBeenSet = false;
97 bool m_authorizationHeaderHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace DevOpsAgent
102} // namespace Aws
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVOPSAGENT_API RemoteAgentBearerTokenConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSAGENT_API RemoteAgentBearerTokenConfig()=default
RemoteAgentBearerTokenConfig & WithAuthorizationHeader(AuthorizationHeaderT &&value)
RemoteAgentBearerTokenConfig & WithTokenName(TokenNameT &&value)
AWS_DEVOPSAGENT_API RemoteAgentBearerTokenConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
RemoteAgentBearerTokenConfig & WithTokenValue(TokenValueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue