AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
JWTOptionsOutput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace OpenSearchService {
20namespace Model {
21
29 public:
30 AWS_OPENSEARCHSERVICE_API JWTOptionsOutput() = default;
31 AWS_OPENSEARCHSERVICE_API JWTOptionsOutput(Aws::Utils::Json::JsonView jsonValue);
32 AWS_OPENSEARCHSERVICE_API JWTOptionsOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline bool GetEnabled() const { return m_enabled; }
40 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
41 inline void SetEnabled(bool value) {
42 m_enabledHasBeenSet = true;
43 m_enabled = value;
44 }
45 inline JWTOptionsOutput& WithEnabled(bool value) {
46 SetEnabled(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetSubjectKey() const { return m_subjectKey; }
56 inline bool SubjectKeyHasBeenSet() const { return m_subjectKeyHasBeenSet; }
57 template <typename SubjectKeyT = Aws::String>
58 void SetSubjectKey(SubjectKeyT&& value) {
59 m_subjectKeyHasBeenSet = true;
60 m_subjectKey = std::forward<SubjectKeyT>(value);
61 }
62 template <typename SubjectKeyT = Aws::String>
63 JWTOptionsOutput& WithSubjectKey(SubjectKeyT&& value) {
64 SetSubjectKey(std::forward<SubjectKeyT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetRolesKey() const { return m_rolesKey; }
74 inline bool RolesKeyHasBeenSet() const { return m_rolesKeyHasBeenSet; }
75 template <typename RolesKeyT = Aws::String>
76 void SetRolesKey(RolesKeyT&& value) {
77 m_rolesKeyHasBeenSet = true;
78 m_rolesKey = std::forward<RolesKeyT>(value);
79 }
80 template <typename RolesKeyT = Aws::String>
81 JWTOptionsOutput& WithRolesKey(RolesKeyT&& value) {
82 SetRolesKey(std::forward<RolesKeyT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::String& GetJwksUrl() const { return m_jwksUrl; }
93 inline bool JwksUrlHasBeenSet() const { return m_jwksUrlHasBeenSet; }
94 template <typename JwksUrlT = Aws::String>
95 void SetJwksUrl(JwksUrlT&& value) {
96 m_jwksUrlHasBeenSet = true;
97 m_jwksUrl = std::forward<JwksUrlT>(value);
98 }
99 template <typename JwksUrlT = Aws::String>
100 JWTOptionsOutput& WithJwksUrl(JwksUrlT&& value) {
101 SetJwksUrl(std::forward<JwksUrlT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetPublicKey() const { return m_publicKey; }
111 inline bool PublicKeyHasBeenSet() const { return m_publicKeyHasBeenSet; }
112 template <typename PublicKeyT = Aws::String>
113 void SetPublicKey(PublicKeyT&& value) {
114 m_publicKeyHasBeenSet = true;
115 m_publicKey = std::forward<PublicKeyT>(value);
116 }
117 template <typename PublicKeyT = Aws::String>
118 JWTOptionsOutput& WithPublicKey(PublicKeyT&& value) {
119 SetPublicKey(std::forward<PublicKeyT>(value));
120 return *this;
121 }
123 private:
124 bool m_enabled{false};
125
126 Aws::String m_subjectKey;
127
128 Aws::String m_rolesKey;
129
130 Aws::String m_jwksUrl;
131
132 Aws::String m_publicKey;
133 bool m_enabledHasBeenSet = false;
134 bool m_subjectKeyHasBeenSet = false;
135 bool m_rolesKeyHasBeenSet = false;
136 bool m_jwksUrlHasBeenSet = false;
137 bool m_publicKeyHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace OpenSearchService
142} // namespace Aws
AWS_OPENSEARCHSERVICE_API JWTOptionsOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API JWTOptionsOutput()=default
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
JWTOptionsOutput & WithRolesKey(RolesKeyT &&value)
JWTOptionsOutput & WithJwksUrl(JwksUrlT &&value)
JWTOptionsOutput & WithPublicKey(PublicKeyT &&value)
AWS_OPENSEARCHSERVICE_API JWTOptionsOutput(Aws::Utils::Json::JsonView jsonValue)
JWTOptionsOutput & WithSubjectKey(SubjectKeyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue