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

The token to advance to the next page of Amazon ECS service recommendations. *

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

The token to advance to the next page of Amazon ECS service recommendations. *

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

The token to advance to the next page of Amazon ECS service recommendations. *

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

The token to advance to the next page of Amazon ECS service recommendations. *

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

The token to advance to the next page of Amazon ECS service recommendations. *

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

The token to advance to the next page of Amazon ECS service recommendations. *

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

The token to advance to the next page of Amazon ECS service recommendations. *

*/ inline GetECSServiceRecommendationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

An array of objects that describe the Amazon ECS service recommendations. *

*/ inline const Aws::Vector& GetEcsServiceRecommendations() const{ return m_ecsServiceRecommendations; } /** *

An array of objects that describe the Amazon ECS service recommendations. *

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

An array of objects that describe the Amazon ECS service recommendations. *

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

An array of objects that describe the Amazon ECS service recommendations. *

*/ inline GetECSServiceRecommendationsResult& WithEcsServiceRecommendations(const Aws::Vector& value) { SetEcsServiceRecommendations(value); return *this;} /** *

An array of objects that describe the Amazon ECS service recommendations. *

*/ inline GetECSServiceRecommendationsResult& WithEcsServiceRecommendations(Aws::Vector&& value) { SetEcsServiceRecommendations(std::move(value)); return *this;} /** *

An array of objects that describe the Amazon ECS service recommendations. *

*/ inline GetECSServiceRecommendationsResult& AddEcsServiceRecommendations(const ECSServiceRecommendation& value) { m_ecsServiceRecommendations.push_back(value); return *this; } /** *

An array of objects that describe the Amazon ECS service recommendations. *

*/ inline GetECSServiceRecommendationsResult& AddEcsServiceRecommendations(ECSServiceRecommendation&& value) { m_ecsServiceRecommendations.push_back(std::move(value)); return *this; } /** *

An array of objects that describe errors of the request.

*/ inline const Aws::Vector& GetErrors() const{ return m_errors; } /** *

An array of objects that describe errors of the request.

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

An array of objects that describe errors of the request.

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

An array of objects that describe errors of the request.

*/ inline GetECSServiceRecommendationsResult& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} /** *

An array of objects that describe errors of the request.

*/ inline GetECSServiceRecommendationsResult& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} /** *

An array of objects that describe errors of the request.

*/ inline GetECSServiceRecommendationsResult& AddErrors(const GetRecommendationError& value) { m_errors.push_back(value); return *this; } /** *

An array of objects that describe errors of the request.

*/ inline GetECSServiceRecommendationsResult& AddErrors(GetRecommendationError&& value) { m_errors.push_back(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 GetECSServiceRecommendationsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetECSServiceRecommendationsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetECSServiceRecommendationsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_nextToken; Aws::Vector m_ecsServiceRecommendations; Aws::Vector m_errors; Aws::String m_requestId; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws