/** * 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 { /** *

Summary information on the processing of PUT and * DELETE actions for mapping users to their groups.

See * Also:

AWS * API Reference

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

The current processing status of actions for mapping users to their groups. * The status can be either PROCESSING, SUCCEEDED, * DELETING, DELETED, or FAILED.

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

The current processing status of actions for mapping users to their groups. * The status can be either PROCESSING, SUCCEEDED, * DELETING, DELETED, or FAILED.

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

The current processing status of actions for mapping users to their groups. * The status can be either PROCESSING, SUCCEEDED, * DELETING, DELETED, or FAILED.

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

The current processing status of actions for mapping users to their groups. * The status can be either PROCESSING, SUCCEEDED, * DELETING, DELETED, or FAILED.

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

The current processing status of actions for mapping users to their groups. * The status can be either PROCESSING, SUCCEEDED, * DELETING, DELETED, or FAILED.

*/ inline GroupOrderingIdSummary& WithStatus(const PrincipalMappingStatus& value) { SetStatus(value); return *this;} /** *

The current processing status of actions for mapping users to their groups. * The status can be either PROCESSING, SUCCEEDED, * DELETING, DELETED, or FAILED.

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

The Unix timestamp when an action was last updated. An action can be a * PUT or DELETE action for mapping users to their * groups.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *

The Unix timestamp when an action was last updated. An action can be a * PUT or DELETE action for mapping users to their * groups.

*/ inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } /** *

The Unix timestamp when an action was last updated. An action can be a * PUT or DELETE action for mapping users to their * groups.

*/ inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; } /** *

The Unix timestamp when an action was last updated. An action can be a * PUT or DELETE action for mapping users to their * groups.

*/ inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } /** *

The Unix timestamp when an action was last updated. An action can be a * PUT or DELETE action for mapping users to their * groups.

*/ inline GroupOrderingIdSummary& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *

The Unix timestamp when an action was last updated. An action can be a * PUT or DELETE action for mapping users to their * groups.

*/ inline GroupOrderingIdSummary& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} /** *

The Unix timestamp when an action was received by Amazon Kendra. An action * can be a PUT or DELETE action for mapping users to * their groups.

*/ inline const Aws::Utils::DateTime& GetReceivedAt() const{ return m_receivedAt; } /** *

The Unix timestamp when an action was received by Amazon Kendra. An action * can be a PUT or DELETE action for mapping users to * their groups.

*/ inline bool ReceivedAtHasBeenSet() const { return m_receivedAtHasBeenSet; } /** *

The Unix timestamp when an action was received by Amazon Kendra. An action * can be a PUT or DELETE action for mapping users to * their groups.

*/ inline void SetReceivedAt(const Aws::Utils::DateTime& value) { m_receivedAtHasBeenSet = true; m_receivedAt = value; } /** *

The Unix timestamp when an action was received by Amazon Kendra. An action * can be a PUT or DELETE action for mapping users to * their groups.

*/ inline void SetReceivedAt(Aws::Utils::DateTime&& value) { m_receivedAtHasBeenSet = true; m_receivedAt = std::move(value); } /** *

The Unix timestamp when an action was received by Amazon Kendra. An action * can be a PUT or DELETE action for mapping users to * their groups.

*/ inline GroupOrderingIdSummary& WithReceivedAt(const Aws::Utils::DateTime& value) { SetReceivedAt(value); return *this;} /** *

The Unix timestamp when an action was received by Amazon Kendra. An action * can be a PUT or DELETE action for mapping users to * their groups.

*/ inline GroupOrderingIdSummary& WithReceivedAt(Aws::Utils::DateTime&& value) { SetReceivedAt(std::move(value)); return *this;} /** *

The order in which actions should complete processing. An action can be a * PUT or DELETE action for mapping users to their * groups.

*/ inline long long GetOrderingId() const{ return m_orderingId; } /** *

The order in which actions should complete processing. An action can be a * PUT or DELETE action for mapping users to their * groups.

*/ inline bool OrderingIdHasBeenSet() const { return m_orderingIdHasBeenSet; } /** *

The order in which actions should complete processing. An action can be a * PUT or DELETE action for mapping users to their * groups.

*/ inline void SetOrderingId(long long value) { m_orderingIdHasBeenSet = true; m_orderingId = value; } /** *

The order in which actions should complete processing. An action can be a * PUT or DELETE action for mapping users to their * groups.

*/ inline GroupOrderingIdSummary& WithOrderingId(long long value) { SetOrderingId(value); return *this;} /** *

The reason an action could not be processed. An action can be a * PUT or DELETE action for mapping users to their * groups.

*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *

The reason an action could not be processed. An action can be a * PUT or DELETE action for mapping users to their * groups.

*/ inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; } /** *

The reason an action could not be processed. An action can be a * PUT or DELETE action for mapping users to their * groups.

*/ inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; } /** *

The reason an action could not be processed. An action can be a * PUT or DELETE action for mapping users to their * groups.

*/ inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); } /** *

The reason an action could not be processed. An action can be a * PUT or DELETE action for mapping users to their * groups.

*/ inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); } /** *

The reason an action could not be processed. An action can be a * PUT or DELETE action for mapping users to their * groups.

*/ inline GroupOrderingIdSummary& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *

The reason an action could not be processed. An action can be a * PUT or DELETE action for mapping users to their * groups.

*/ inline GroupOrderingIdSummary& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *

The reason an action could not be processed. An action can be a * PUT or DELETE action for mapping users to their * groups.

*/ inline GroupOrderingIdSummary& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} private: PrincipalMappingStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedAt; bool m_lastUpdatedAtHasBeenSet = false; Aws::Utils::DateTime m_receivedAt; bool m_receivedAtHasBeenSet = false; long long m_orderingId; bool m_orderingIdHasBeenSet = false; Aws::String m_failureReason; bool m_failureReasonHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws