AWS SDK for C++

AWS SDK for C++ Version 1.11.752

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
91 inline const Aws::String& GetPublicKey() const { return m_publicKey; }
92 inline bool PublicKeyHasBeenSet() const { return m_publicKeyHasBeenSet; }
93 template <typename PublicKeyT = Aws::String>
94 void SetPublicKey(PublicKeyT&& value) {
95 m_publicKeyHasBeenSet = true;
96 m_publicKey = std::forward<PublicKeyT>(value);
97 }
98 template <typename PublicKeyT = Aws::String>
99 JWTOptionsOutput& WithPublicKey(PublicKeyT&& value) {
100 SetPublicKey(std::forward<PublicKeyT>(value));
101 return *this;
102 }
104 private:
105 bool m_enabled{false};
106
107 Aws::String m_subjectKey;
108
109 Aws::String m_rolesKey;
110
111 Aws::String m_publicKey;
112 bool m_enabledHasBeenSet = false;
113 bool m_subjectKeyHasBeenSet = false;
114 bool m_rolesKeyHasBeenSet = false;
115 bool m_publicKeyHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace OpenSearchService
120} // 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 & 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