/** * 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 GetEC2InstanceRecommendationsResult { public: AWS_COMPUTEOPTIMIZER_API GetEC2InstanceRecommendationsResult(); AWS_COMPUTEOPTIMIZER_API GetEC2InstanceRecommendationsResult(const Aws::AmazonWebServiceResult& result); AWS_COMPUTEOPTIMIZER_API GetEC2InstanceRecommendationsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The token to use to advance to the next page of instance recommendations.

*

This value is null when there are no more pages of instance recommendations * to return.

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

The token to use to advance to the next page of instance recommendations.

*

This value is null when there are no more pages of instance recommendations * to return.

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

The token to use to advance to the next page of instance recommendations.

*

This value is null when there are no more pages of instance recommendations * to return.

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

The token to use to advance to the next page of instance recommendations.

*

This value is null when there are no more pages of instance recommendations * to return.

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

The token to use to advance to the next page of instance recommendations.

*

This value is null when there are no more pages of instance recommendations * to return.

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

The token to use to advance to the next page of instance recommendations.

*

This value is null when there are no more pages of instance recommendations * to return.

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

The token to use to advance to the next page of instance recommendations.

*

This value is null when there are no more pages of instance recommendations * to return.

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

An array of objects that describe instance recommendations.

*/ inline const Aws::Vector& GetInstanceRecommendations() const{ return m_instanceRecommendations; } /** *

An array of objects that describe instance recommendations.

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

An array of objects that describe instance recommendations.

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

An array of objects that describe instance recommendations.

*/ inline GetEC2InstanceRecommendationsResult& WithInstanceRecommendations(const Aws::Vector& value) { SetInstanceRecommendations(value); return *this;} /** *

An array of objects that describe instance recommendations.

*/ inline GetEC2InstanceRecommendationsResult& WithInstanceRecommendations(Aws::Vector&& value) { SetInstanceRecommendations(std::move(value)); return *this;} /** *

An array of objects that describe instance recommendations.

*/ inline GetEC2InstanceRecommendationsResult& AddInstanceRecommendations(const InstanceRecommendation& value) { m_instanceRecommendations.push_back(value); return *this; } /** *

An array of objects that describe instance recommendations.

*/ inline GetEC2InstanceRecommendationsResult& AddInstanceRecommendations(InstanceRecommendation&& value) { m_instanceRecommendations.push_back(std::move(value)); return *this; } /** *

An array of objects that describe errors of the request.

For example, * an error is returned if you request recommendations for an instance of an * unsupported instance family.

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

An array of objects that describe errors of the request.

For example, * an error is returned if you request recommendations for an instance of an * unsupported instance family.

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

An array of objects that describe errors of the request.

For example, * an error is returned if you request recommendations for an instance of an * unsupported instance family.

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

An array of objects that describe errors of the request.

For example, * an error is returned if you request recommendations for an instance of an * unsupported instance family.

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

An array of objects that describe errors of the request.

For example, * an error is returned if you request recommendations for an instance of an * unsupported instance family.

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

An array of objects that describe errors of the request.

For example, * an error is returned if you request recommendations for an instance of an * unsupported instance family.

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

An array of objects that describe errors of the request.

For example, * an error is returned if you request recommendations for an instance of an * unsupported instance family.

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