AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AdvancedSecurityOptions.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/SAMLOptionsOutput.h>
9#include <aws/opensearch/model/JWTOptionsOutput.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace OpenSearchService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_OPENSEARCHSERVICE_API AdvancedSecurityOptions();
38 AWS_OPENSEARCHSERVICE_API AdvancedSecurityOptions(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVICE_API AdvancedSecurityOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline bool GetEnabled() const{ return m_enabled; }
48 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
49 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
50 inline AdvancedSecurityOptions& WithEnabled(bool value) { SetEnabled(value); return *this;}
52
54
57 inline bool GetInternalUserDatabaseEnabled() const{ return m_internalUserDatabaseEnabled; }
58 inline bool InternalUserDatabaseEnabledHasBeenSet() const { return m_internalUserDatabaseEnabledHasBeenSet; }
59 inline void SetInternalUserDatabaseEnabled(bool value) { m_internalUserDatabaseEnabledHasBeenSet = true; m_internalUserDatabaseEnabled = value; }
62
64
68 inline const SAMLOptionsOutput& GetSAMLOptions() const{ return m_sAMLOptions; }
69 inline bool SAMLOptionsHasBeenSet() const { return m_sAMLOptionsHasBeenSet; }
70 inline void SetSAMLOptions(const SAMLOptionsOutput& value) { m_sAMLOptionsHasBeenSet = true; m_sAMLOptions = value; }
71 inline void SetSAMLOptions(SAMLOptionsOutput&& value) { m_sAMLOptionsHasBeenSet = true; m_sAMLOptions = std::move(value); }
72 inline AdvancedSecurityOptions& WithSAMLOptions(const SAMLOptionsOutput& value) { SetSAMLOptions(value); return *this;}
73 inline AdvancedSecurityOptions& WithSAMLOptions(SAMLOptionsOutput&& value) { SetSAMLOptions(std::move(value)); return *this;}
75
77
81 inline const JWTOptionsOutput& GetJWTOptions() const{ return m_jWTOptions; }
82 inline bool JWTOptionsHasBeenSet() const { return m_jWTOptionsHasBeenSet; }
83 inline void SetJWTOptions(const JWTOptionsOutput& value) { m_jWTOptionsHasBeenSet = true; m_jWTOptions = value; }
84 inline void SetJWTOptions(JWTOptionsOutput&& value) { m_jWTOptionsHasBeenSet = true; m_jWTOptions = std::move(value); }
85 inline AdvancedSecurityOptions& WithJWTOptions(const JWTOptionsOutput& value) { SetJWTOptions(value); return *this;}
86 inline AdvancedSecurityOptions& WithJWTOptions(JWTOptionsOutput&& value) { SetJWTOptions(std::move(value)); return *this;}
88
90
96 inline const Aws::Utils::DateTime& GetAnonymousAuthDisableDate() const{ return m_anonymousAuthDisableDate; }
97 inline bool AnonymousAuthDisableDateHasBeenSet() const { return m_anonymousAuthDisableDateHasBeenSet; }
98 inline void SetAnonymousAuthDisableDate(const Aws::Utils::DateTime& value) { m_anonymousAuthDisableDateHasBeenSet = true; m_anonymousAuthDisableDate = value; }
99 inline void SetAnonymousAuthDisableDate(Aws::Utils::DateTime&& value) { m_anonymousAuthDisableDateHasBeenSet = true; m_anonymousAuthDisableDate = std::move(value); }
103
105
111 inline bool GetAnonymousAuthEnabled() const{ return m_anonymousAuthEnabled; }
112 inline bool AnonymousAuthEnabledHasBeenSet() const { return m_anonymousAuthEnabledHasBeenSet; }
113 inline void SetAnonymousAuthEnabled(bool value) { m_anonymousAuthEnabledHasBeenSet = true; m_anonymousAuthEnabled = value; }
116 private:
117
118 bool m_enabled;
119 bool m_enabledHasBeenSet = false;
120
121 bool m_internalUserDatabaseEnabled;
122 bool m_internalUserDatabaseEnabledHasBeenSet = false;
123
124 SAMLOptionsOutput m_sAMLOptions;
125 bool m_sAMLOptionsHasBeenSet = false;
126
127 JWTOptionsOutput m_jWTOptions;
128 bool m_jWTOptionsHasBeenSet = false;
129
130 Aws::Utils::DateTime m_anonymousAuthDisableDate;
131 bool m_anonymousAuthDisableDateHasBeenSet = false;
132
133 bool m_anonymousAuthEnabled;
134 bool m_anonymousAuthEnabledHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace OpenSearchService
139} // namespace Aws
AWS_OPENSEARCHSERVICE_API AdvancedSecurityOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AdvancedSecurityOptions & WithSAMLOptions(const SAMLOptionsOutput &value)
AdvancedSecurityOptions & WithAnonymousAuthDisableDate(Aws::Utils::DateTime &&value)
void SetAnonymousAuthDisableDate(const Aws::Utils::DateTime &value)
AdvancedSecurityOptions & WithJWTOptions(const JWTOptionsOutput &value)
AdvancedSecurityOptions & WithSAMLOptions(SAMLOptionsOutput &&value)
const Aws::Utils::DateTime & GetAnonymousAuthDisableDate() const
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API AdvancedSecurityOptions(Aws::Utils::Json::JsonView jsonValue)
AdvancedSecurityOptions & WithJWTOptions(JWTOptionsOutput &&value)
AdvancedSecurityOptions & WithAnonymousAuthEnabled(bool value)
AdvancedSecurityOptions & WithAnonymousAuthDisableDate(const Aws::Utils::DateTime &value)
AdvancedSecurityOptions & WithInternalUserDatabaseEnabled(bool value)
Aws::Utils::Json::JsonValue JsonValue