/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ManagedGrafana { namespace Model { /** *

A structure that defines which attributes in the IdP assertion are to be used * to define information about the users authenticated by the IdP to use the * workspace.

See Also:

AWS * API Reference

*/ class AssertionAttributes { public: AWS_MANAGEDGRAFANA_API AssertionAttributes(); AWS_MANAGEDGRAFANA_API AssertionAttributes(Aws::Utils::Json::JsonView jsonValue); AWS_MANAGEDGRAFANA_API AssertionAttributes& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the attribute within the SAML assertion to use as the email names * for SAML users.

*/ inline const Aws::String& GetEmail() const{ return m_email; } /** *

The name of the attribute within the SAML assertion to use as the email names * for SAML users.

*/ inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; } /** *

The name of the attribute within the SAML assertion to use as the email names * for SAML users.

*/ inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; } /** *

The name of the attribute within the SAML assertion to use as the email names * for SAML users.

*/ inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); } /** *

The name of the attribute within the SAML assertion to use as the email names * for SAML users.

*/ inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); } /** *

The name of the attribute within the SAML assertion to use as the email names * for SAML users.

*/ inline AssertionAttributes& WithEmail(const Aws::String& value) { SetEmail(value); return *this;} /** *

The name of the attribute within the SAML assertion to use as the email names * for SAML users.

*/ inline AssertionAttributes& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;} /** *

The name of the attribute within the SAML assertion to use as the email names * for SAML users.

*/ inline AssertionAttributes& WithEmail(const char* value) { SetEmail(value); return *this;} /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for user groups.

*/ inline const Aws::String& GetGroups() const{ return m_groups; } /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for user groups.

*/ inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; } /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for user groups.

*/ inline void SetGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups = value; } /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for user groups.

*/ inline void SetGroups(Aws::String&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); } /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for user groups.

*/ inline void SetGroups(const char* value) { m_groupsHasBeenSet = true; m_groups.assign(value); } /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for user groups.

*/ inline AssertionAttributes& WithGroups(const Aws::String& value) { SetGroups(value); return *this;} /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for user groups.

*/ inline AssertionAttributes& WithGroups(Aws::String&& value) { SetGroups(std::move(value)); return *this;} /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for user groups.

*/ inline AssertionAttributes& WithGroups(const char* value) { SetGroups(value); return *this;} /** *

The name of the attribute within the SAML assertion to use as the login names * for SAML users.

*/ inline const Aws::String& GetLogin() const{ return m_login; } /** *

The name of the attribute within the SAML assertion to use as the login names * for SAML users.

*/ inline bool LoginHasBeenSet() const { return m_loginHasBeenSet; } /** *

The name of the attribute within the SAML assertion to use as the login names * for SAML users.

*/ inline void SetLogin(const Aws::String& value) { m_loginHasBeenSet = true; m_login = value; } /** *

The name of the attribute within the SAML assertion to use as the login names * for SAML users.

*/ inline void SetLogin(Aws::String&& value) { m_loginHasBeenSet = true; m_login = std::move(value); } /** *

The name of the attribute within the SAML assertion to use as the login names * for SAML users.

*/ inline void SetLogin(const char* value) { m_loginHasBeenSet = true; m_login.assign(value); } /** *

The name of the attribute within the SAML assertion to use as the login names * for SAML users.

*/ inline AssertionAttributes& WithLogin(const Aws::String& value) { SetLogin(value); return *this;} /** *

The name of the attribute within the SAML assertion to use as the login names * for SAML users.

*/ inline AssertionAttributes& WithLogin(Aws::String&& value) { SetLogin(std::move(value)); return *this;} /** *

The name of the attribute within the SAML assertion to use as the login names * for SAML users.

*/ inline AssertionAttributes& WithLogin(const char* value) { SetLogin(value); return *this;} /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for SAML users.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for SAML users.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for SAML users.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for SAML users.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for SAML users.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for SAML users.

*/ inline AssertionAttributes& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for SAML users.

*/ inline AssertionAttributes& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for SAML users.

*/ inline AssertionAttributes& WithName(const char* value) { SetName(value); return *this;} /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for the users' organizations.

*/ inline const Aws::String& GetOrg() const{ return m_org; } /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for the users' organizations.

*/ inline bool OrgHasBeenSet() const { return m_orgHasBeenSet; } /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for the users' organizations.

*/ inline void SetOrg(const Aws::String& value) { m_orgHasBeenSet = true; m_org = value; } /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for the users' organizations.

*/ inline void SetOrg(Aws::String&& value) { m_orgHasBeenSet = true; m_org = std::move(value); } /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for the users' organizations.

*/ inline void SetOrg(const char* value) { m_orgHasBeenSet = true; m_org.assign(value); } /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for the users' organizations.

*/ inline AssertionAttributes& WithOrg(const Aws::String& value) { SetOrg(value); return *this;} /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for the users' organizations.

*/ inline AssertionAttributes& WithOrg(Aws::String&& value) { SetOrg(std::move(value)); return *this;} /** *

The name of the attribute within the SAML assertion to use as the user full * "friendly" names for the users' organizations.

*/ inline AssertionAttributes& WithOrg(const char* value) { SetOrg(value); return *this;} /** *

The name of the attribute within the SAML assertion to use as the user * roles.

*/ inline const Aws::String& GetRole() const{ return m_role; } /** *

The name of the attribute within the SAML assertion to use as the user * roles.

*/ inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; } /** *

The name of the attribute within the SAML assertion to use as the user * roles.

*/ inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; } /** *

The name of the attribute within the SAML assertion to use as the user * roles.

*/ inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); } /** *

The name of the attribute within the SAML assertion to use as the user * roles.

*/ inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); } /** *

The name of the attribute within the SAML assertion to use as the user * roles.

*/ inline AssertionAttributes& WithRole(const Aws::String& value) { SetRole(value); return *this;} /** *

The name of the attribute within the SAML assertion to use as the user * roles.

*/ inline AssertionAttributes& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;} /** *

The name of the attribute within the SAML assertion to use as the user * roles.

*/ inline AssertionAttributes& WithRole(const char* value) { SetRole(value); return *this;} private: Aws::String m_email; bool m_emailHasBeenSet = false; Aws::String m_groups; bool m_groupsHasBeenSet = false; Aws::String m_login; bool m_loginHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_org; bool m_orgHasBeenSet = false; Aws::String m_role; bool m_roleHasBeenSet = false; }; } // namespace Model } // namespace ManagedGrafana } // namespace Aws