/** * 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 Connect { namespace Model { /** *

Contains information about the identity of a user.

See Also:

* AWS * API Reference

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

The first name. This is required if you are using Amazon Connect or SAML for * identity management.

*/ inline const Aws::String& GetFirstName() const{ return m_firstName; } /** *

The first name. This is required if you are using Amazon Connect or SAML for * identity management.

*/ inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; } /** *

The first name. This is required if you are using Amazon Connect or SAML for * identity management.

*/ inline void SetFirstName(const Aws::String& value) { m_firstNameHasBeenSet = true; m_firstName = value; } /** *

The first name. This is required if you are using Amazon Connect or SAML for * identity management.

*/ inline void SetFirstName(Aws::String&& value) { m_firstNameHasBeenSet = true; m_firstName = std::move(value); } /** *

The first name. This is required if you are using Amazon Connect or SAML for * identity management.

*/ inline void SetFirstName(const char* value) { m_firstNameHasBeenSet = true; m_firstName.assign(value); } /** *

The first name. This is required if you are using Amazon Connect or SAML for * identity management.

*/ inline UserIdentityInfo& WithFirstName(const Aws::String& value) { SetFirstName(value); return *this;} /** *

The first name. This is required if you are using Amazon Connect or SAML for * identity management.

*/ inline UserIdentityInfo& WithFirstName(Aws::String&& value) { SetFirstName(std::move(value)); return *this;} /** *

The first name. This is required if you are using Amazon Connect or SAML for * identity management.

*/ inline UserIdentityInfo& WithFirstName(const char* value) { SetFirstName(value); return *this;} /** *

The last name. This is required if you are using Amazon Connect or SAML for * identity management.

*/ inline const Aws::String& GetLastName() const{ return m_lastName; } /** *

The last name. This is required if you are using Amazon Connect or SAML for * identity management.

*/ inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; } /** *

The last name. This is required if you are using Amazon Connect or SAML for * identity management.

*/ inline void SetLastName(const Aws::String& value) { m_lastNameHasBeenSet = true; m_lastName = value; } /** *

The last name. This is required if you are using Amazon Connect or SAML for * identity management.

*/ inline void SetLastName(Aws::String&& value) { m_lastNameHasBeenSet = true; m_lastName = std::move(value); } /** *

The last name. This is required if you are using Amazon Connect or SAML for * identity management.

*/ inline void SetLastName(const char* value) { m_lastNameHasBeenSet = true; m_lastName.assign(value); } /** *

The last name. This is required if you are using Amazon Connect or SAML for * identity management.

*/ inline UserIdentityInfo& WithLastName(const Aws::String& value) { SetLastName(value); return *this;} /** *

The last name. This is required if you are using Amazon Connect or SAML for * identity management.

*/ inline UserIdentityInfo& WithLastName(Aws::String&& value) { SetLastName(std::move(value)); return *this;} /** *

The last name. This is required if you are using Amazon Connect or SAML for * identity management.

*/ inline UserIdentityInfo& WithLastName(const char* value) { SetLastName(value); return *this;} /** *

The email address. If you are using SAML for identity management and include * this parameter, an error is returned.

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

The email address. If you are using SAML for identity management and include * this parameter, an error is returned.

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

The email address. If you are using SAML for identity management and include * this parameter, an error is returned.

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

The email address. If you are using SAML for identity management and include * this parameter, an error is returned.

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

The email address. If you are using SAML for identity management and include * this parameter, an error is returned.

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

The email address. If you are using SAML for identity management and include * this parameter, an error is returned.

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

The email address. If you are using SAML for identity management and include * this parameter, an error is returned.

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

The email address. If you are using SAML for identity management and include * this parameter, an error is returned.

*/ inline UserIdentityInfo& WithEmail(const char* value) { SetEmail(value); return *this;} private: Aws::String m_firstName; bool m_firstNameHasBeenSet; Aws::String m_lastName; bool m_lastNameHasBeenSet; Aws::String m_email; bool m_emailHasBeenSet; }; } // namespace Model } // namespace Connect } // namespace Aws