AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SAMLOptionsInput.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/SAMLIdp.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpenSearchService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_OPENSEARCHSERVICE_API SAMLOptionsInput() = default;
37 AWS_OPENSEARCHSERVICE_API SAMLOptionsInput(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVICE_API SAMLOptionsInput& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline bool GetEnabled() const { return m_enabled; }
47 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
48 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
49 inline SAMLOptionsInput& WithEnabled(bool value) { SetEnabled(value); return *this;}
51
53
56 inline const SAMLIdp& GetIdp() const { return m_idp; }
57 inline bool IdpHasBeenSet() const { return m_idpHasBeenSet; }
58 template<typename IdpT = SAMLIdp>
59 void SetIdp(IdpT&& value) { m_idpHasBeenSet = true; m_idp = std::forward<IdpT>(value); }
60 template<typename IdpT = SAMLIdp>
61 SAMLOptionsInput& WithIdp(IdpT&& value) { SetIdp(std::forward<IdpT>(value)); return *this;}
63
65
69 inline const Aws::String& GetMasterUserName() const { return m_masterUserName; }
70 inline bool MasterUserNameHasBeenSet() const { return m_masterUserNameHasBeenSet; }
71 template<typename MasterUserNameT = Aws::String>
72 void SetMasterUserName(MasterUserNameT&& value) { m_masterUserNameHasBeenSet = true; m_masterUserName = std::forward<MasterUserNameT>(value); }
73 template<typename MasterUserNameT = Aws::String>
74 SAMLOptionsInput& WithMasterUserName(MasterUserNameT&& value) { SetMasterUserName(std::forward<MasterUserNameT>(value)); return *this;}
76
78
81 inline const Aws::String& GetMasterBackendRole() const { return m_masterBackendRole; }
82 inline bool MasterBackendRoleHasBeenSet() const { return m_masterBackendRoleHasBeenSet; }
83 template<typename MasterBackendRoleT = Aws::String>
84 void SetMasterBackendRole(MasterBackendRoleT&& value) { m_masterBackendRoleHasBeenSet = true; m_masterBackendRole = std::forward<MasterBackendRoleT>(value); }
85 template<typename MasterBackendRoleT = Aws::String>
86 SAMLOptionsInput& WithMasterBackendRole(MasterBackendRoleT&& value) { SetMasterBackendRole(std::forward<MasterBackendRoleT>(value)); return *this;}
88
90
94 inline const Aws::String& GetSubjectKey() const { return m_subjectKey; }
95 inline bool SubjectKeyHasBeenSet() const { return m_subjectKeyHasBeenSet; }
96 template<typename SubjectKeyT = Aws::String>
97 void SetSubjectKey(SubjectKeyT&& value) { m_subjectKeyHasBeenSet = true; m_subjectKey = std::forward<SubjectKeyT>(value); }
98 template<typename SubjectKeyT = Aws::String>
99 SAMLOptionsInput& WithSubjectKey(SubjectKeyT&& value) { SetSubjectKey(std::forward<SubjectKeyT>(value)); return *this;}
101
103
107 inline const Aws::String& GetRolesKey() const { return m_rolesKey; }
108 inline bool RolesKeyHasBeenSet() const { return m_rolesKeyHasBeenSet; }
109 template<typename RolesKeyT = Aws::String>
110 void SetRolesKey(RolesKeyT&& value) { m_rolesKeyHasBeenSet = true; m_rolesKey = std::forward<RolesKeyT>(value); }
111 template<typename RolesKeyT = Aws::String>
112 SAMLOptionsInput& WithRolesKey(RolesKeyT&& value) { SetRolesKey(std::forward<RolesKeyT>(value)); return *this;}
114
116
120 inline int GetSessionTimeoutMinutes() const { return m_sessionTimeoutMinutes; }
121 inline bool SessionTimeoutMinutesHasBeenSet() const { return m_sessionTimeoutMinutesHasBeenSet; }
122 inline void SetSessionTimeoutMinutes(int value) { m_sessionTimeoutMinutesHasBeenSet = true; m_sessionTimeoutMinutes = value; }
123 inline SAMLOptionsInput& WithSessionTimeoutMinutes(int value) { SetSessionTimeoutMinutes(value); return *this;}
125 private:
126
127 bool m_enabled{false};
128 bool m_enabledHasBeenSet = false;
129
130 SAMLIdp m_idp;
131 bool m_idpHasBeenSet = false;
132
133 Aws::String m_masterUserName;
134 bool m_masterUserNameHasBeenSet = false;
135
136 Aws::String m_masterBackendRole;
137 bool m_masterBackendRoleHasBeenSet = false;
138
139 Aws::String m_subjectKey;
140 bool m_subjectKeyHasBeenSet = false;
141
142 Aws::String m_rolesKey;
143 bool m_rolesKeyHasBeenSet = false;
144
145 int m_sessionTimeoutMinutes{0};
146 bool m_sessionTimeoutMinutesHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace OpenSearchService
151} // namespace Aws
SAMLOptionsInput & WithRolesKey(RolesKeyT &&value)
SAMLOptionsInput & WithSubjectKey(SubjectKeyT &&value)
AWS_OPENSEARCHSERVICE_API SAMLOptionsInput(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API SAMLOptionsInput & operator=(Aws::Utils::Json::JsonView jsonValue)
SAMLOptionsInput & WithMasterUserName(MasterUserNameT &&value)
SAMLOptionsInput & WithMasterBackendRole(MasterBackendRoleT &&value)
AWS_OPENSEARCHSERVICE_API SAMLOptionsInput()=default
void SetMasterUserName(MasterUserNameT &&value)
SAMLOptionsInput & WithSessionTimeoutMinutes(int value)
void SetMasterBackendRole(MasterBackendRoleT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue