AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
JWTOptionsInput.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 JWTOptionsInput() = default;
31 AWS_OPENSEARCHSERVICE_API JWTOptionsInput(Aws::Utils::Json::JsonView jsonValue);
32 AWS_OPENSEARCHSERVICE_API JWTOptionsInput& 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 JWTOptionsInput& 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 JWTOptionsInput& 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 JWTOptionsInput& WithRolesKey(RolesKeyT&& value) {
82 SetRolesKey(std::forward<RolesKeyT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::String& GetPublicKey() const { return m_publicKey; }
93 inline bool PublicKeyHasBeenSet() const { return m_publicKeyHasBeenSet; }
94 template <typename PublicKeyT = Aws::String>
95 void SetPublicKey(PublicKeyT&& value) {
96 m_publicKeyHasBeenSet = true;
97 m_publicKey = std::forward<PublicKeyT>(value);
98 }
99 template <typename PublicKeyT = Aws::String>
100 JWTOptionsInput& WithPublicKey(PublicKeyT&& value) {
101 SetPublicKey(std::forward<PublicKeyT>(value));
102 return *this;
103 }
105 private:
106 bool m_enabled{false};
107
108 Aws::String m_subjectKey;
109
110 Aws::String m_rolesKey;
111
112 Aws::String m_publicKey;
113 bool m_enabledHasBeenSet = false;
114 bool m_subjectKeyHasBeenSet = false;
115 bool m_rolesKeyHasBeenSet = false;
116 bool m_publicKeyHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace OpenSearchService
121} // namespace Aws
JWTOptionsInput & WithSubjectKey(SubjectKeyT &&value)
AWS_OPENSEARCHSERVICE_API JWTOptionsInput(Aws::Utils::Json::JsonView jsonValue)
JWTOptionsInput & WithRolesKey(RolesKeyT &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API JWTOptionsInput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API JWTOptionsInput()=default
JWTOptionsInput & WithPublicKey(PublicKeyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue