/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The SAML authentication configuration for an Amazon OpenSearch Service
* domain.See Also:
AWS
* API Reference
True to enable SAML authentication for a domain.
*/ inline bool GetEnabled() const{ return m_enabled; } /** *True to enable SAML authentication for a domain.
*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *True to enable SAML authentication for a domain.
*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *True to enable SAML authentication for a domain.
*/ inline SAMLOptionsInput& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *The SAML Identity Provider's information.
*/ inline const SAMLIdp& GetIdp() const{ return m_idp; } /** *The SAML Identity Provider's information.
*/ inline bool IdpHasBeenSet() const { return m_idpHasBeenSet; } /** *The SAML Identity Provider's information.
*/ inline void SetIdp(const SAMLIdp& value) { m_idpHasBeenSet = true; m_idp = value; } /** *The SAML Identity Provider's information.
*/ inline void SetIdp(SAMLIdp&& value) { m_idpHasBeenSet = true; m_idp = std::move(value); } /** *The SAML Identity Provider's information.
*/ inline SAMLOptionsInput& WithIdp(const SAMLIdp& value) { SetIdp(value); return *this;} /** *The SAML Identity Provider's information.
*/ inline SAMLOptionsInput& WithIdp(SAMLIdp&& value) { SetIdp(std::move(value)); return *this;} /** *The SAML master user name, which is stored in the domain's internal user * database.
*/ inline const Aws::String& GetMasterUserName() const{ return m_masterUserName; } /** *The SAML master user name, which is stored in the domain's internal user * database.
*/ inline bool MasterUserNameHasBeenSet() const { return m_masterUserNameHasBeenSet; } /** *The SAML master user name, which is stored in the domain's internal user * database.
*/ inline void SetMasterUserName(const Aws::String& value) { m_masterUserNameHasBeenSet = true; m_masterUserName = value; } /** *The SAML master user name, which is stored in the domain's internal user * database.
*/ inline void SetMasterUserName(Aws::String&& value) { m_masterUserNameHasBeenSet = true; m_masterUserName = std::move(value); } /** *The SAML master user name, which is stored in the domain's internal user * database.
*/ inline void SetMasterUserName(const char* value) { m_masterUserNameHasBeenSet = true; m_masterUserName.assign(value); } /** *The SAML master user name, which is stored in the domain's internal user * database.
*/ inline SAMLOptionsInput& WithMasterUserName(const Aws::String& value) { SetMasterUserName(value); return *this;} /** *The SAML master user name, which is stored in the domain's internal user * database.
*/ inline SAMLOptionsInput& WithMasterUserName(Aws::String&& value) { SetMasterUserName(std::move(value)); return *this;} /** *The SAML master user name, which is stored in the domain's internal user * database.
*/ inline SAMLOptionsInput& WithMasterUserName(const char* value) { SetMasterUserName(value); return *this;} /** *The backend role that the SAML master user is mapped to.
*/ inline const Aws::String& GetMasterBackendRole() const{ return m_masterBackendRole; } /** *The backend role that the SAML master user is mapped to.
*/ inline bool MasterBackendRoleHasBeenSet() const { return m_masterBackendRoleHasBeenSet; } /** *The backend role that the SAML master user is mapped to.
*/ inline void SetMasterBackendRole(const Aws::String& value) { m_masterBackendRoleHasBeenSet = true; m_masterBackendRole = value; } /** *The backend role that the SAML master user is mapped to.
*/ inline void SetMasterBackendRole(Aws::String&& value) { m_masterBackendRoleHasBeenSet = true; m_masterBackendRole = std::move(value); } /** *The backend role that the SAML master user is mapped to.
*/ inline void SetMasterBackendRole(const char* value) { m_masterBackendRoleHasBeenSet = true; m_masterBackendRole.assign(value); } /** *The backend role that the SAML master user is mapped to.
*/ inline SAMLOptionsInput& WithMasterBackendRole(const Aws::String& value) { SetMasterBackendRole(value); return *this;} /** *The backend role that the SAML master user is mapped to.
*/ inline SAMLOptionsInput& WithMasterBackendRole(Aws::String&& value) { SetMasterBackendRole(std::move(value)); return *this;} /** *The backend role that the SAML master user is mapped to.
*/ inline SAMLOptionsInput& WithMasterBackendRole(const char* value) { SetMasterBackendRole(value); return *this;} /** *Element of the SAML assertion to use for the user name. Default is
* NameID
.
Element of the SAML assertion to use for the user name. Default is
* NameID
.
Element of the SAML assertion to use for the user name. Default is
* NameID
.
Element of the SAML assertion to use for the user name. Default is
* NameID
.
Element of the SAML assertion to use for the user name. Default is
* NameID
.
Element of the SAML assertion to use for the user name. Default is
* NameID
.
Element of the SAML assertion to use for the user name. Default is
* NameID
.
Element of the SAML assertion to use for the user name. Default is
* NameID
.
Element of the SAML assertion to use for backend roles. Default is
* roles
.
Element of the SAML assertion to use for backend roles. Default is
* roles
.
Element of the SAML assertion to use for backend roles. Default is
* roles
.
Element of the SAML assertion to use for backend roles. Default is
* roles
.
Element of the SAML assertion to use for backend roles. Default is
* roles
.
Element of the SAML assertion to use for backend roles. Default is
* roles
.
Element of the SAML assertion to use for backend roles. Default is
* roles
.
Element of the SAML assertion to use for backend roles. Default is
* roles
.
The duration, in minutes, after which a user session becomes inactive. * Acceptable values are between 1 and 1440, and the default value is 60.
*/ inline int GetSessionTimeoutMinutes() const{ return m_sessionTimeoutMinutes; } /** *The duration, in minutes, after which a user session becomes inactive. * Acceptable values are between 1 and 1440, and the default value is 60.
*/ inline bool SessionTimeoutMinutesHasBeenSet() const { return m_sessionTimeoutMinutesHasBeenSet; } /** *The duration, in minutes, after which a user session becomes inactive. * Acceptable values are between 1 and 1440, and the default value is 60.
*/ inline void SetSessionTimeoutMinutes(int value) { m_sessionTimeoutMinutesHasBeenSet = true; m_sessionTimeoutMinutes = value; } /** *The duration, in minutes, after which a user session becomes inactive. * Acceptable values are between 1 and 1440, and the default value is 60.
*/ inline SAMLOptionsInput& WithSessionTimeoutMinutes(int value) { SetSessionTimeoutMinutes(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; SAMLIdp m_idp; bool m_idpHasBeenSet = false; Aws::String m_masterUserName; bool m_masterUserNameHasBeenSet = false; Aws::String m_masterBackendRole; bool m_masterBackendRoleHasBeenSet = false; Aws::String m_subjectKey; bool m_subjectKeyHasBeenSet = false; Aws::String m_rolesKey; bool m_rolesKeyHasBeenSet = false; int m_sessionTimeoutMinutes; bool m_sessionTimeoutMinutesHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws