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

Information on the users or groups in your IAM Identity Center identity * source that failed to properly configure with your Amazon Kendra * experience.

See Also:

AWS * API Reference

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

The identifier of the user or group in your IAM Identity Center identity * source. For example, a user ID could be an email.

*/ inline const Aws::String& GetEntityId() const{ return m_entityId; } /** *

The identifier of the user or group in your IAM Identity Center identity * source. For example, a user ID could be an email.

*/ inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; } /** *

The identifier of the user or group in your IAM Identity Center identity * source. For example, a user ID could be an email.

*/ inline void SetEntityId(const Aws::String& value) { m_entityIdHasBeenSet = true; m_entityId = value; } /** *

The identifier of the user or group in your IAM Identity Center identity * source. For example, a user ID could be an email.

*/ inline void SetEntityId(Aws::String&& value) { m_entityIdHasBeenSet = true; m_entityId = std::move(value); } /** *

The identifier of the user or group in your IAM Identity Center identity * source. For example, a user ID could be an email.

*/ inline void SetEntityId(const char* value) { m_entityIdHasBeenSet = true; m_entityId.assign(value); } /** *

The identifier of the user or group in your IAM Identity Center identity * source. For example, a user ID could be an email.

*/ inline FailedEntity& WithEntityId(const Aws::String& value) { SetEntityId(value); return *this;} /** *

The identifier of the user or group in your IAM Identity Center identity * source. For example, a user ID could be an email.

*/ inline FailedEntity& WithEntityId(Aws::String&& value) { SetEntityId(std::move(value)); return *this;} /** *

The identifier of the user or group in your IAM Identity Center identity * source. For example, a user ID could be an email.

*/ inline FailedEntity& WithEntityId(const char* value) { SetEntityId(value); return *this;} /** *

The reason the user or group in your IAM Identity Center identity source * failed to properly configure with your Amazon Kendra experience.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

The reason the user or group in your IAM Identity Center identity source * failed to properly configure with your Amazon Kendra experience.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

The reason the user or group in your IAM Identity Center identity source * failed to properly configure with your Amazon Kendra experience.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

The reason the user or group in your IAM Identity Center identity source * failed to properly configure with your Amazon Kendra experience.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

The reason the user or group in your IAM Identity Center identity source * failed to properly configure with your Amazon Kendra experience.

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

The reason the user or group in your IAM Identity Center identity source * failed to properly configure with your Amazon Kendra experience.

*/ inline FailedEntity& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

The reason the user or group in your IAM Identity Center identity source * failed to properly configure with your Amazon Kendra experience.

*/ inline FailedEntity& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

The reason the user or group in your IAM Identity Center identity source * failed to properly configure with your Amazon Kendra experience.

*/ inline FailedEntity& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_entityId; bool m_entityIdHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws