AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
JwtAuth.h
1
6#pragma once
7#include <aws/pcs/PCS_EXPORTS.h>
8#include <aws/pcs/model/JwtKey.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace PCS {
20namespace Model {
21
28class JwtAuth {
29 public:
30 AWS_PCS_API JwtAuth() = default;
31 AWS_PCS_API JwtAuth(Aws::Utils::Json::JsonView jsonValue);
34
36
39 inline const JwtKey& GetJwtKey() const { return m_jwtKey; }
40 inline bool JwtKeyHasBeenSet() const { return m_jwtKeyHasBeenSet; }
41 template <typename JwtKeyT = JwtKey>
42 void SetJwtKey(JwtKeyT&& value) {
43 m_jwtKeyHasBeenSet = true;
44 m_jwtKey = std::forward<JwtKeyT>(value);
45 }
46 template <typename JwtKeyT = JwtKey>
47 JwtAuth& WithJwtKey(JwtKeyT&& value) {
48 SetJwtKey(std::forward<JwtKeyT>(value));
49 return *this;
50 }
52 private:
53 JwtKey m_jwtKey;
54 bool m_jwtKeyHasBeenSet = false;
55};
56
57} // namespace Model
58} // namespace PCS
59} // namespace Aws
AWS_PCS_API JwtAuth(Aws::Utils::Json::JsonView jsonValue)
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
bool JwtKeyHasBeenSet() const
Definition JwtAuth.h:40
AWS_PCS_API JwtAuth & operator=(Aws::Utils::Json::JsonView jsonValue)
JwtAuth & WithJwtKey(JwtKeyT &&value)
Definition JwtAuth.h:47
const JwtKey & GetJwtKey() const
Definition JwtAuth.h:39
AWS_PCS_API JwtAuth()=default
void SetJwtKey(JwtKeyT &&value)
Definition JwtAuth.h:42
Aws::Utils::Json::JsonValue JsonValue