AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
JwtKey.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pcs/PCS_EXPORTS.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 JwtKey {
29 public:
30 AWS_PCS_API JwtKey() = default;
31 AWS_PCS_API JwtKey(Aws::Utils::Json::JsonView jsonValue);
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>
48 JwtKey& WithSecretArn(SecretArnT&& value) {
49 SetSecretArn(std::forward<SecretArnT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetSecretVersion() const { return m_secretVersion; }
60 inline bool SecretVersionHasBeenSet() const { return m_secretVersionHasBeenSet; }
61 template <typename SecretVersionT = Aws::String>
62 void SetSecretVersion(SecretVersionT&& value) {
63 m_secretVersionHasBeenSet = true;
64 m_secretVersion = std::forward<SecretVersionT>(value);
65 }
66 template <typename SecretVersionT = Aws::String>
67 JwtKey& WithSecretVersion(SecretVersionT&& value) {
68 SetSecretVersion(std::forward<SecretVersionT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_secretArn;
74
75 Aws::String m_secretVersion;
76 bool m_secretArnHasBeenSet = false;
77 bool m_secretVersionHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace PCS
82} // namespace Aws
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
JwtKey & WithSecretArn(SecretArnT &&value)
Definition JwtKey.h:48
void SetSecretArn(SecretArnT &&value)
Definition JwtKey.h:43
void SetSecretVersion(SecretVersionT &&value)
Definition JwtKey.h:62
const Aws::String & GetSecretVersion() const
Definition JwtKey.h:59
AWS_PCS_API JwtKey & operator=(Aws::Utils::Json::JsonView jsonValue)
JwtKey & WithSecretVersion(SecretVersionT &&value)
Definition JwtKey.h:67
const Aws::String & GetSecretArn() const
Definition JwtKey.h:40
bool SecretArnHasBeenSet() const
Definition JwtKey.h:41
AWS_PCS_API JwtKey(Aws::Utils::Json::JsonView jsonValue)
AWS_PCS_API JwtKey()=default
bool SecretVersionHasBeenSet() const
Definition JwtKey.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue