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/es/ElasticsearchService_EXPORTS.h>
8#include <aws/es/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 ElasticsearchService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ELASTICSEARCHSERVICE_API SAMLOptionsInput() = default;
37 AWS_ELASTICSEARCHSERVICE_API SAMLOptionsInput(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ELASTICSEARCHSERVICE_API SAMLOptionsInput& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ELASTICSEARCHSERVICE_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
93 inline const Aws::String& GetSubjectKey() const { return m_subjectKey; }
94 inline bool SubjectKeyHasBeenSet() const { return m_subjectKeyHasBeenSet; }
95 template<typename SubjectKeyT = Aws::String>
96 void SetSubjectKey(SubjectKeyT&& value) { m_subjectKeyHasBeenSet = true; m_subjectKey = std::forward<SubjectKeyT>(value); }
97 template<typename SubjectKeyT = Aws::String>
98 SAMLOptionsInput& WithSubjectKey(SubjectKeyT&& value) { SetSubjectKey(std::forward<SubjectKeyT>(value)); return *this;}
100
102
105 inline const Aws::String& GetRolesKey() const { return m_rolesKey; }
106 inline bool RolesKeyHasBeenSet() const { return m_rolesKeyHasBeenSet; }
107 template<typename RolesKeyT = Aws::String>
108 void SetRolesKey(RolesKeyT&& value) { m_rolesKeyHasBeenSet = true; m_rolesKey = std::forward<RolesKeyT>(value); }
109 template<typename RolesKeyT = Aws::String>
110 SAMLOptionsInput& WithRolesKey(RolesKeyT&& value) { SetRolesKey(std::forward<RolesKeyT>(value)); return *this;}
112
114
118 inline int GetSessionTimeoutMinutes() const { return m_sessionTimeoutMinutes; }
119 inline bool SessionTimeoutMinutesHasBeenSet() const { return m_sessionTimeoutMinutesHasBeenSet; }
120 inline void SetSessionTimeoutMinutes(int value) { m_sessionTimeoutMinutesHasBeenSet = true; m_sessionTimeoutMinutes = value; }
121 inline SAMLOptionsInput& WithSessionTimeoutMinutes(int value) { SetSessionTimeoutMinutes(value); return *this;}
123 private:
124
125 bool m_enabled{false};
126 bool m_enabledHasBeenSet = false;
127
128 SAMLIdp m_idp;
129 bool m_idpHasBeenSet = false;
130
131 Aws::String m_masterUserName;
132 bool m_masterUserNameHasBeenSet = false;
133
134 Aws::String m_masterBackendRole;
135 bool m_masterBackendRoleHasBeenSet = false;
136
137 Aws::String m_subjectKey;
138 bool m_subjectKeyHasBeenSet = false;
139
140 Aws::String m_rolesKey;
141 bool m_rolesKeyHasBeenSet = false;
142
143 int m_sessionTimeoutMinutes{0};
144 bool m_sessionTimeoutMinutesHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace ElasticsearchService
149} // namespace Aws
SAMLOptionsInput & WithRolesKey(RolesKeyT &&value)
AWS_ELASTICSEARCHSERVICE_API SAMLOptionsInput & operator=(Aws::Utils::Json::JsonView jsonValue)
SAMLOptionsInput & WithMasterUserName(MasterUserNameT &&value)
void SetMasterBackendRole(MasterBackendRoleT &&value)
SAMLOptionsInput & WithSessionTimeoutMinutes(int value)
SAMLOptionsInput & WithSubjectKey(SubjectKeyT &&value)
AWS_ELASTICSEARCHSERVICE_API SAMLOptionsInput()=default
SAMLOptionsInput & WithMasterBackendRole(MasterBackendRoleT &&value)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ELASTICSEARCHSERVICE_API SAMLOptionsInput(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue