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

Summary information for a set of featured results. Featured results are * placed above all other results for certain queries. If there's an exact match of * a query, then one or more specific documents are featured in the search * results.

See Also:

AWS * API Reference

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

The identifier of the set of featured results.

*/ inline const Aws::String& GetFeaturedResultsSetId() const{ return m_featuredResultsSetId; } /** *

The identifier of the set of featured results.

*/ inline bool FeaturedResultsSetIdHasBeenSet() const { return m_featuredResultsSetIdHasBeenSet; } /** *

The identifier of the set of featured results.

*/ inline void SetFeaturedResultsSetId(const Aws::String& value) { m_featuredResultsSetIdHasBeenSet = true; m_featuredResultsSetId = value; } /** *

The identifier of the set of featured results.

*/ inline void SetFeaturedResultsSetId(Aws::String&& value) { m_featuredResultsSetIdHasBeenSet = true; m_featuredResultsSetId = std::move(value); } /** *

The identifier of the set of featured results.

*/ inline void SetFeaturedResultsSetId(const char* value) { m_featuredResultsSetIdHasBeenSet = true; m_featuredResultsSetId.assign(value); } /** *

The identifier of the set of featured results.

*/ inline FeaturedResultsSetSummary& WithFeaturedResultsSetId(const Aws::String& value) { SetFeaturedResultsSetId(value); return *this;} /** *

The identifier of the set of featured results.

*/ inline FeaturedResultsSetSummary& WithFeaturedResultsSetId(Aws::String&& value) { SetFeaturedResultsSetId(std::move(value)); return *this;} /** *

The identifier of the set of featured results.

*/ inline FeaturedResultsSetSummary& WithFeaturedResultsSetId(const char* value) { SetFeaturedResultsSetId(value); return *this;} /** *

The name for the set of featured results.

*/ inline const Aws::String& GetFeaturedResultsSetName() const{ return m_featuredResultsSetName; } /** *

The name for the set of featured results.

*/ inline bool FeaturedResultsSetNameHasBeenSet() const { return m_featuredResultsSetNameHasBeenSet; } /** *

The name for the set of featured results.

*/ inline void SetFeaturedResultsSetName(const Aws::String& value) { m_featuredResultsSetNameHasBeenSet = true; m_featuredResultsSetName = value; } /** *

The name for the set of featured results.

*/ inline void SetFeaturedResultsSetName(Aws::String&& value) { m_featuredResultsSetNameHasBeenSet = true; m_featuredResultsSetName = std::move(value); } /** *

The name for the set of featured results.

*/ inline void SetFeaturedResultsSetName(const char* value) { m_featuredResultsSetNameHasBeenSet = true; m_featuredResultsSetName.assign(value); } /** *

The name for the set of featured results.

*/ inline FeaturedResultsSetSummary& WithFeaturedResultsSetName(const Aws::String& value) { SetFeaturedResultsSetName(value); return *this;} /** *

The name for the set of featured results.

*/ inline FeaturedResultsSetSummary& WithFeaturedResultsSetName(Aws::String&& value) { SetFeaturedResultsSetName(std::move(value)); return *this;} /** *

The name for the set of featured results.

*/ inline FeaturedResultsSetSummary& WithFeaturedResultsSetName(const char* value) { SetFeaturedResultsSetName(value); return *this;} /** *

The current status of the set of featured results. When the value is * ACTIVE, featured results are ready for use. You can still configure * your settings before setting the status to ACTIVE. You can set the * status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet * API. The queries you specify for featured results must be unique per featured * results set for each index, whether the status is ACTIVE or * INACTIVE.

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

The current status of the set of featured results. When the value is * ACTIVE, featured results are ready for use. You can still configure * your settings before setting the status to ACTIVE. You can set the * status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet * API. The queries you specify for featured results must be unique per featured * results set for each index, whether the status is ACTIVE or * INACTIVE.

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

The current status of the set of featured results. When the value is * ACTIVE, featured results are ready for use. You can still configure * your settings before setting the status to ACTIVE. You can set the * status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet * API. The queries you specify for featured results must be unique per featured * results set for each index, whether the status is ACTIVE or * INACTIVE.

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

The current status of the set of featured results. When the value is * ACTIVE, featured results are ready for use. You can still configure * your settings before setting the status to ACTIVE. You can set the * status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet * API. The queries you specify for featured results must be unique per featured * results set for each index, whether the status is ACTIVE or * INACTIVE.

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

The current status of the set of featured results. When the value is * ACTIVE, featured results are ready for use. You can still configure * your settings before setting the status to ACTIVE. You can set the * status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet * API. The queries you specify for featured results must be unique per featured * results set for each index, whether the status is ACTIVE or * INACTIVE.

*/ inline FeaturedResultsSetSummary& WithStatus(const FeaturedResultsSetStatus& value) { SetStatus(value); return *this;} /** *

The current status of the set of featured results. When the value is * ACTIVE, featured results are ready for use. You can still configure * your settings before setting the status to ACTIVE. You can set the * status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet * API. The queries you specify for featured results must be unique per featured * results set for each index, whether the status is ACTIVE or * INACTIVE.

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

The Unix timestamp when the set of featured results was last updated.

*/ inline long long GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; } /** *

The Unix timestamp when the set of featured results was last updated.

*/ inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; } /** *

The Unix timestamp when the set of featured results was last updated.

*/ inline void SetLastUpdatedTimestamp(long long value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = value; } /** *

The Unix timestamp when the set of featured results was last updated.

*/ inline FeaturedResultsSetSummary& WithLastUpdatedTimestamp(long long value) { SetLastUpdatedTimestamp(value); return *this;} /** *

The Unix timestamp when the set of featured results was created.

*/ inline long long GetCreationTimestamp() const{ return m_creationTimestamp; } /** *

The Unix timestamp when the set of featured results was created.

*/ inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; } /** *

The Unix timestamp when the set of featured results was created.

*/ inline void SetCreationTimestamp(long long value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = value; } /** *

The Unix timestamp when the set of featured results was created.

*/ inline FeaturedResultsSetSummary& WithCreationTimestamp(long long value) { SetCreationTimestamp(value); return *this;} private: Aws::String m_featuredResultsSetId; bool m_featuredResultsSetIdHasBeenSet = false; Aws::String m_featuredResultsSetName; bool m_featuredResultsSetNameHasBeenSet = false; FeaturedResultsSetStatus m_status; bool m_statusHasBeenSet = false; long long m_lastUpdatedTimestamp; bool m_lastUpdatedTimestampHasBeenSet = false; long long m_creationTimestamp; bool m_creationTimestampHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws