/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Personalize { namespace Model { class ListMetricAttributionsResult { public: AWS_PERSONALIZE_API ListMetricAttributionsResult(); AWS_PERSONALIZE_API ListMetricAttributionsResult(const Aws::AmazonWebServiceResult& result); AWS_PERSONALIZE_API ListMetricAttributionsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The list of metric attributions.

*/ inline const Aws::Vector& GetMetricAttributions() const{ return m_metricAttributions; } /** *

The list of metric attributions.

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

The list of metric attributions.

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

The list of metric attributions.

*/ inline ListMetricAttributionsResult& WithMetricAttributions(const Aws::Vector& value) { SetMetricAttributions(value); return *this;} /** *

The list of metric attributions.

*/ inline ListMetricAttributionsResult& WithMetricAttributions(Aws::Vector&& value) { SetMetricAttributions(std::move(value)); return *this;} /** *

The list of metric attributions.

*/ inline ListMetricAttributionsResult& AddMetricAttributions(const MetricAttributionSummary& value) { m_metricAttributions.push_back(value); return *this; } /** *

The list of metric attributions.

*/ inline ListMetricAttributionsResult& AddMetricAttributions(MetricAttributionSummary&& value) { m_metricAttributions.push_back(std::move(value)); return *this; } /** *

Specify the pagination token from a previous request to retrieve the next * page of results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

Specify the pagination token from a previous request to retrieve the next * page of results.

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

Specify the pagination token from a previous request to retrieve the next * page of results.

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

Specify the pagination token from a previous request to retrieve the next * page of results.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

Specify the pagination token from a previous request to retrieve the next * page of results.

*/ inline ListMetricAttributionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

Specify the pagination token from a previous request to retrieve the next * page of results.

*/ inline ListMetricAttributionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

Specify the pagination token from a previous request to retrieve the next * page of results.

*/ inline ListMetricAttributionsResult& WithNextToken(const char* value) { SetNextToken(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 ListMetricAttributionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListMetricAttributionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListMetricAttributionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_metricAttributions; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace Personalize } // namespace Aws