AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AdvancedSecurityOptionsInput.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/es/model/MasterUserOptions.h>
9#include <aws/es/model/SAMLOptionsInput.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ElasticsearchService {
21namespace Model {
22
32 public:
33 AWS_ELASTICSEARCHSERVICE_API AdvancedSecurityOptionsInput() = default;
34 AWS_ELASTICSEARCHSERVICE_API AdvancedSecurityOptionsInput(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ELASTICSEARCHSERVICE_API AdvancedSecurityOptionsInput& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline bool GetEnabled() const { return m_enabled; }
43 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
44 inline void SetEnabled(bool value) {
45 m_enabledHasBeenSet = true;
46 m_enabled = value;
47 }
49 SetEnabled(value);
50 return *this;
51 }
53
55
58 inline bool GetInternalUserDatabaseEnabled() const { return m_internalUserDatabaseEnabled; }
59 inline bool InternalUserDatabaseEnabledHasBeenSet() const { return m_internalUserDatabaseEnabledHasBeenSet; }
60 inline void SetInternalUserDatabaseEnabled(bool value) {
61 m_internalUserDatabaseEnabledHasBeenSet = true;
62 m_internalUserDatabaseEnabled = value;
63 }
66 return *this;
67 }
69
71
74 inline const MasterUserOptions& GetMasterUserOptions() const { return m_masterUserOptions; }
75 inline bool MasterUserOptionsHasBeenSet() const { return m_masterUserOptionsHasBeenSet; }
76 template <typename MasterUserOptionsT = MasterUserOptions>
77 void SetMasterUserOptions(MasterUserOptionsT&& value) {
78 m_masterUserOptionsHasBeenSet = true;
79 m_masterUserOptions = std::forward<MasterUserOptionsT>(value);
80 }
81 template <typename MasterUserOptionsT = MasterUserOptions>
83 SetMasterUserOptions(std::forward<MasterUserOptionsT>(value));
84 return *this;
85 }
87
89
92 inline const SAMLOptionsInput& GetSAMLOptions() const { return m_sAMLOptions; }
93 inline bool SAMLOptionsHasBeenSet() const { return m_sAMLOptionsHasBeenSet; }
94 template <typename SAMLOptionsT = SAMLOptionsInput>
95 void SetSAMLOptions(SAMLOptionsT&& value) {
96 m_sAMLOptionsHasBeenSet = true;
97 m_sAMLOptions = std::forward<SAMLOptionsT>(value);
98 }
99 template <typename SAMLOptionsT = SAMLOptionsInput>
101 SetSAMLOptions(std::forward<SAMLOptionsT>(value));
102 return *this;
103 }
105
107
111 inline bool GetAnonymousAuthEnabled() const { return m_anonymousAuthEnabled; }
112 inline bool AnonymousAuthEnabledHasBeenSet() const { return m_anonymousAuthEnabledHasBeenSet; }
113 inline void SetAnonymousAuthEnabled(bool value) {
114 m_anonymousAuthEnabledHasBeenSet = true;
115 m_anonymousAuthEnabled = value;
116 }
119 return *this;
120 }
122 private:
123 bool m_enabled{false};
124
125 bool m_internalUserDatabaseEnabled{false};
126
127 MasterUserOptions m_masterUserOptions;
128
129 SAMLOptionsInput m_sAMLOptions;
130
131 bool m_anonymousAuthEnabled{false};
132 bool m_enabledHasBeenSet = false;
133 bool m_internalUserDatabaseEnabledHasBeenSet = false;
134 bool m_masterUserOptionsHasBeenSet = false;
135 bool m_sAMLOptionsHasBeenSet = false;
136 bool m_anonymousAuthEnabledHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace ElasticsearchService
141} // namespace Aws
AdvancedSecurityOptionsInput & WithSAMLOptions(SAMLOptionsT &&value)
AWS_ELASTICSEARCHSERVICE_API AdvancedSecurityOptionsInput(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ELASTICSEARCHSERVICE_API AdvancedSecurityOptionsInput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API AdvancedSecurityOptionsInput()=default
AdvancedSecurityOptionsInput & WithMasterUserOptions(MasterUserOptionsT &&value)
Aws::Utils::Json::JsonValue JsonValue