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

The same solution version ARN as specified in the request.

*/ inline const Aws::String& GetSolutionVersionArn() const{ return m_solutionVersionArn; } /** *

The same solution version ARN as specified in the request.

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

The same solution version ARN as specified in the request.

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

The same solution version ARN as specified in the request.

*/ inline void SetSolutionVersionArn(const char* value) { m_solutionVersionArn.assign(value); } /** *

The same solution version ARN as specified in the request.

*/ inline GetSolutionMetricsResult& WithSolutionVersionArn(const Aws::String& value) { SetSolutionVersionArn(value); return *this;} /** *

The same solution version ARN as specified in the request.

*/ inline GetSolutionMetricsResult& WithSolutionVersionArn(Aws::String&& value) { SetSolutionVersionArn(std::move(value)); return *this;} /** *

The same solution version ARN as specified in the request.

*/ inline GetSolutionMetricsResult& WithSolutionVersionArn(const char* value) { SetSolutionVersionArn(value); return *this;} /** *

The metrics for the solution version. For more information, see * Evaluating a solution version with metrics .

*/ inline const Aws::Map& GetMetrics() const{ return m_metrics; } /** *

The metrics for the solution version. For more information, see * Evaluating a solution version with metrics .

*/ inline void SetMetrics(const Aws::Map& value) { m_metrics = value; } /** *

The metrics for the solution version. For more information, see * Evaluating a solution version with metrics .

*/ inline void SetMetrics(Aws::Map&& value) { m_metrics = std::move(value); } /** *

The metrics for the solution version. For more information, see * Evaluating a solution version with metrics .

*/ inline GetSolutionMetricsResult& WithMetrics(const Aws::Map& value) { SetMetrics(value); return *this;} /** *

The metrics for the solution version. For more information, see * Evaluating a solution version with metrics .

*/ inline GetSolutionMetricsResult& WithMetrics(Aws::Map&& value) { SetMetrics(std::move(value)); return *this;} /** *

The metrics for the solution version. For more information, see * Evaluating a solution version with metrics .

*/ inline GetSolutionMetricsResult& AddMetrics(const Aws::String& key, double value) { m_metrics.emplace(key, value); return *this; } /** *

The metrics for the solution version. For more information, see * Evaluating a solution version with metrics .

*/ inline GetSolutionMetricsResult& AddMetrics(Aws::String&& key, double value) { m_metrics.emplace(std::move(key), value); return *this; } /** *

The metrics for the solution version. For more information, see * Evaluating a solution version with metrics .

*/ inline GetSolutionMetricsResult& AddMetrics(const char* key, double value) { m_metrics.emplace(key, 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 GetSolutionMetricsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetSolutionMetricsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetSolutionMetricsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_solutionVersionArn; Aws::Map m_metrics; Aws::String m_requestId; }; } // namespace Model } // namespace Personalize } // namespace Aws