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

Provides information about a frequently asked questions and answer contained * in an index.

See Also:

AWS * API Reference

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

The unique identifier of the FAQ.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique identifier of the FAQ.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique identifier of the FAQ.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique identifier of the FAQ.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique identifier of the FAQ.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique identifier of the FAQ.

*/ inline FaqSummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier of the FAQ.

*/ inline FaqSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier of the FAQ.

*/ inline FaqSummary& WithId(const char* value) { SetId(value); return *this;} /** *

The name that you assigned the FAQ when you created or updated the FAQ.

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

The name that you assigned the FAQ when you created or updated the FAQ.

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

The name that you assigned the FAQ when you created or updated the FAQ.

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

The name that you assigned the FAQ when you created or updated the FAQ.

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

The name that you assigned the FAQ when you created or updated the FAQ.

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

The name that you assigned the FAQ when you created or updated the FAQ.

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

The name that you assigned the FAQ when you created or updated the FAQ.

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

The name that you assigned the FAQ when you created or updated the FAQ.

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

The current status of the FAQ. When the status is ACTIVE the FAQ * is ready for use.

*/ inline const FaqStatus& GetStatus() const{ return m_status; } /** *

The current status of the FAQ. When the status is ACTIVE the FAQ * is ready for use.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current status of the FAQ. When the status is ACTIVE the FAQ * is ready for use.

*/ inline void SetStatus(const FaqStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current status of the FAQ. When the status is ACTIVE the FAQ * is ready for use.

*/ inline void SetStatus(FaqStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current status of the FAQ. When the status is ACTIVE the FAQ * is ready for use.

*/ inline FaqSummary& WithStatus(const FaqStatus& value) { SetStatus(value); return *this;} /** *

The current status of the FAQ. When the status is ACTIVE the FAQ * is ready for use.

*/ inline FaqSummary& WithStatus(FaqStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The UNIX datetime that the FAQ was added to the index.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The UNIX datetime that the FAQ was added to the index.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The UNIX datetime that the FAQ was added to the index.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The UNIX datetime that the FAQ was added to the index.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The UNIX datetime that the FAQ was added to the index.

*/ inline FaqSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The UNIX datetime that the FAQ was added to the index.

*/ inline FaqSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The UNIX datetime that the FAQ was last updated.

*/ inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } /** *

The UNIX datetime that the FAQ was last updated.

*/ inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } /** *

The UNIX datetime that the FAQ was last updated.

*/ inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } /** *

The UNIX datetime that the FAQ was last updated.

*/ inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } /** *

The UNIX datetime that the FAQ was last updated.

*/ inline FaqSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} /** *

The UNIX datetime that the FAQ was last updated.

*/ inline FaqSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; FaqStatus m_status; bool m_statusHasBeenSet; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet; Aws::Utils::DateTime m_updatedAt; bool m_updatedAtHasBeenSet; }; } // namespace Model } // namespace kendra } // namespace Aws