/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace DynamoDB { namespace Model { class DescribeContributorInsightsResult { public: AWS_DYNAMODB_API DescribeContributorInsightsResult(); AWS_DYNAMODB_API DescribeContributorInsightsResult(const Aws::AmazonWebServiceResult& result); AWS_DYNAMODB_API DescribeContributorInsightsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the table being described.

*/ inline const Aws::String& GetTableName() const{ return m_tableName; } /** *

The name of the table being described.

*/ inline void SetTableName(const Aws::String& value) { m_tableName = value; } /** *

The name of the table being described.

*/ inline void SetTableName(Aws::String&& value) { m_tableName = std::move(value); } /** *

The name of the table being described.

*/ inline void SetTableName(const char* value) { m_tableName.assign(value); } /** *

The name of the table being described.

*/ inline DescribeContributorInsightsResult& WithTableName(const Aws::String& value) { SetTableName(value); return *this;} /** *

The name of the table being described.

*/ inline DescribeContributorInsightsResult& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;} /** *

The name of the table being described.

*/ inline DescribeContributorInsightsResult& WithTableName(const char* value) { SetTableName(value); return *this;} /** *

The name of the global secondary index being described.

*/ inline const Aws::String& GetIndexName() const{ return m_indexName; } /** *

The name of the global secondary index being described.

*/ inline void SetIndexName(const Aws::String& value) { m_indexName = value; } /** *

The name of the global secondary index being described.

*/ inline void SetIndexName(Aws::String&& value) { m_indexName = std::move(value); } /** *

The name of the global secondary index being described.

*/ inline void SetIndexName(const char* value) { m_indexName.assign(value); } /** *

The name of the global secondary index being described.

*/ inline DescribeContributorInsightsResult& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;} /** *

The name of the global secondary index being described.

*/ inline DescribeContributorInsightsResult& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;} /** *

The name of the global secondary index being described.

*/ inline DescribeContributorInsightsResult& WithIndexName(const char* value) { SetIndexName(value); return *this;} /** *

List of names of the associated contributor insights rules.

*/ inline const Aws::Vector& GetContributorInsightsRuleList() const{ return m_contributorInsightsRuleList; } /** *

List of names of the associated contributor insights rules.

*/ inline void SetContributorInsightsRuleList(const Aws::Vector& value) { m_contributorInsightsRuleList = value; } /** *

List of names of the associated contributor insights rules.

*/ inline void SetContributorInsightsRuleList(Aws::Vector&& value) { m_contributorInsightsRuleList = std::move(value); } /** *

List of names of the associated contributor insights rules.

*/ inline DescribeContributorInsightsResult& WithContributorInsightsRuleList(const Aws::Vector& value) { SetContributorInsightsRuleList(value); return *this;} /** *

List of names of the associated contributor insights rules.

*/ inline DescribeContributorInsightsResult& WithContributorInsightsRuleList(Aws::Vector&& value) { SetContributorInsightsRuleList(std::move(value)); return *this;} /** *

List of names of the associated contributor insights rules.

*/ inline DescribeContributorInsightsResult& AddContributorInsightsRuleList(const Aws::String& value) { m_contributorInsightsRuleList.push_back(value); return *this; } /** *

List of names of the associated contributor insights rules.

*/ inline DescribeContributorInsightsResult& AddContributorInsightsRuleList(Aws::String&& value) { m_contributorInsightsRuleList.push_back(std::move(value)); return *this; } /** *

List of names of the associated contributor insights rules.

*/ inline DescribeContributorInsightsResult& AddContributorInsightsRuleList(const char* value) { m_contributorInsightsRuleList.push_back(value); return *this; } /** *

Current status of contributor insights.

*/ inline const ContributorInsightsStatus& GetContributorInsightsStatus() const{ return m_contributorInsightsStatus; } /** *

Current status of contributor insights.

*/ inline void SetContributorInsightsStatus(const ContributorInsightsStatus& value) { m_contributorInsightsStatus = value; } /** *

Current status of contributor insights.

*/ inline void SetContributorInsightsStatus(ContributorInsightsStatus&& value) { m_contributorInsightsStatus = std::move(value); } /** *

Current status of contributor insights.

*/ inline DescribeContributorInsightsResult& WithContributorInsightsStatus(const ContributorInsightsStatus& value) { SetContributorInsightsStatus(value); return *this;} /** *

Current status of contributor insights.

*/ inline DescribeContributorInsightsResult& WithContributorInsightsStatus(ContributorInsightsStatus&& value) { SetContributorInsightsStatus(std::move(value)); return *this;} /** *

Timestamp of the last time the status was changed.

*/ inline const Aws::Utils::DateTime& GetLastUpdateDateTime() const{ return m_lastUpdateDateTime; } /** *

Timestamp of the last time the status was changed.

*/ inline void SetLastUpdateDateTime(const Aws::Utils::DateTime& value) { m_lastUpdateDateTime = value; } /** *

Timestamp of the last time the status was changed.

*/ inline void SetLastUpdateDateTime(Aws::Utils::DateTime&& value) { m_lastUpdateDateTime = std::move(value); } /** *

Timestamp of the last time the status was changed.

*/ inline DescribeContributorInsightsResult& WithLastUpdateDateTime(const Aws::Utils::DateTime& value) { SetLastUpdateDateTime(value); return *this;} /** *

Timestamp of the last time the status was changed.

*/ inline DescribeContributorInsightsResult& WithLastUpdateDateTime(Aws::Utils::DateTime&& value) { SetLastUpdateDateTime(std::move(value)); return *this;} /** *

Returns information about the last failure that was encountered.

The * most common exceptions for a FAILED status are:

  • *

    LimitExceededException - Per-account Amazon CloudWatch Contributor Insights * rule limit reached. Please disable Contributor Insights for other tables/indexes * OR disable Contributor Insights rules before retrying.

  • *

    AccessDeniedException - Amazon CloudWatch Contributor Insights rules cannot * be modified due to insufficient permissions.

  • *

    AccessDeniedException - Failed to create service-linked role for Contributor * Insights due to insufficient permissions.

  • InternalServerError * - Failed to create Amazon CloudWatch Contributor Insights rules. Please retry * request.

*/ inline const FailureException& GetFailureException() const{ return m_failureException; } /** *

Returns information about the last failure that was encountered.

The * most common exceptions for a FAILED status are:

  • *

    LimitExceededException - Per-account Amazon CloudWatch Contributor Insights * rule limit reached. Please disable Contributor Insights for other tables/indexes * OR disable Contributor Insights rules before retrying.

  • *

    AccessDeniedException - Amazon CloudWatch Contributor Insights rules cannot * be modified due to insufficient permissions.

  • *

    AccessDeniedException - Failed to create service-linked role for Contributor * Insights due to insufficient permissions.

  • InternalServerError * - Failed to create Amazon CloudWatch Contributor Insights rules. Please retry * request.

*/ inline void SetFailureException(const FailureException& value) { m_failureException = value; } /** *

Returns information about the last failure that was encountered.

The * most common exceptions for a FAILED status are:

  • *

    LimitExceededException - Per-account Amazon CloudWatch Contributor Insights * rule limit reached. Please disable Contributor Insights for other tables/indexes * OR disable Contributor Insights rules before retrying.

  • *

    AccessDeniedException - Amazon CloudWatch Contributor Insights rules cannot * be modified due to insufficient permissions.

  • *

    AccessDeniedException - Failed to create service-linked role for Contributor * Insights due to insufficient permissions.

  • InternalServerError * - Failed to create Amazon CloudWatch Contributor Insights rules. Please retry * request.

*/ inline void SetFailureException(FailureException&& value) { m_failureException = std::move(value); } /** *

Returns information about the last failure that was encountered.

The * most common exceptions for a FAILED status are:

  • *

    LimitExceededException - Per-account Amazon CloudWatch Contributor Insights * rule limit reached. Please disable Contributor Insights for other tables/indexes * OR disable Contributor Insights rules before retrying.

  • *

    AccessDeniedException - Amazon CloudWatch Contributor Insights rules cannot * be modified due to insufficient permissions.

  • *

    AccessDeniedException - Failed to create service-linked role for Contributor * Insights due to insufficient permissions.

  • InternalServerError * - Failed to create Amazon CloudWatch Contributor Insights rules. Please retry * request.

*/ inline DescribeContributorInsightsResult& WithFailureException(const FailureException& value) { SetFailureException(value); return *this;} /** *

Returns information about the last failure that was encountered.

The * most common exceptions for a FAILED status are:

  • *

    LimitExceededException - Per-account Amazon CloudWatch Contributor Insights * rule limit reached. Please disable Contributor Insights for other tables/indexes * OR disable Contributor Insights rules before retrying.

  • *

    AccessDeniedException - Amazon CloudWatch Contributor Insights rules cannot * be modified due to insufficient permissions.

  • *

    AccessDeniedException - Failed to create service-linked role for Contributor * Insights due to insufficient permissions.

  • InternalServerError * - Failed to create Amazon CloudWatch Contributor Insights rules. Please retry * request.

*/ inline DescribeContributorInsightsResult& WithFailureException(FailureException&& value) { SetFailureException(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeContributorInsightsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeContributorInsightsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeContributorInsightsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_tableName; Aws::String m_indexName; Aws::Vector m_contributorInsightsRuleList; ContributorInsightsStatus m_contributorInsightsStatus; Aws::Utils::DateTime m_lastUpdateDateTime; FailureException m_failureException; Aws::String m_requestId; }; } // namespace Model } // namespace DynamoDB } // namespace Aws