AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
JWTOptionsInput.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpenSearchService
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_OPENSEARCHSERVICE_API JWTOptionsInput() = default;
36 AWS_OPENSEARCHSERVICE_API JWTOptionsInput(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVICE_API JWTOptionsInput& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline bool GetEnabled() const { return m_enabled; }
46 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
47 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
48 inline JWTOptionsInput& WithEnabled(bool value) { SetEnabled(value); return *this;}
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) { m_subjectKeyHasBeenSet = true; m_subjectKey = std::forward<SubjectKeyT>(value); }
59 template<typename SubjectKeyT = Aws::String>
60 JWTOptionsInput& WithSubjectKey(SubjectKeyT&& value) { SetSubjectKey(std::forward<SubjectKeyT>(value)); return *this;}
62
64
67 inline const Aws::String& GetRolesKey() const { return m_rolesKey; }
68 inline bool RolesKeyHasBeenSet() const { return m_rolesKeyHasBeenSet; }
69 template<typename RolesKeyT = Aws::String>
70 void SetRolesKey(RolesKeyT&& value) { m_rolesKeyHasBeenSet = true; m_rolesKey = std::forward<RolesKeyT>(value); }
71 template<typename RolesKeyT = Aws::String>
72 JWTOptionsInput& WithRolesKey(RolesKeyT&& value) { SetRolesKey(std::forward<RolesKeyT>(value)); return *this;}
74
76
80 inline const Aws::String& GetPublicKey() const { return m_publicKey; }
81 inline bool PublicKeyHasBeenSet() const { return m_publicKeyHasBeenSet; }
82 template<typename PublicKeyT = Aws::String>
83 void SetPublicKey(PublicKeyT&& value) { m_publicKeyHasBeenSet = true; m_publicKey = std::forward<PublicKeyT>(value); }
84 template<typename PublicKeyT = Aws::String>
85 JWTOptionsInput& WithPublicKey(PublicKeyT&& value) { SetPublicKey(std::forward<PublicKeyT>(value)); return *this;}
87 private:
88
89 bool m_enabled{false};
90 bool m_enabledHasBeenSet = false;
91
92 Aws::String m_subjectKey;
93 bool m_subjectKeyHasBeenSet = false;
94
95 Aws::String m_rolesKey;
96 bool m_rolesKeyHasBeenSet = false;
97
98 Aws::String m_publicKey;
99 bool m_publicKeyHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace OpenSearchService
104} // 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