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

The token to use to advance to the next page of Auto Scaling group * recommendations.

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

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

The token to use to advance to the next page of Auto Scaling group * recommendations.

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

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

The token to use to advance to the next page of Auto Scaling group * recommendations.

This value is null when there are no more pages of Auto * Scaling group 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 Auto Scaling group * recommendations.

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

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

The token to use to advance to the next page of Auto Scaling group * recommendations.

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

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

The token to use to advance to the next page of Auto Scaling group * recommendations.

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

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

The token to use to advance to the next page of Auto Scaling group * recommendations.

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

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

An array of objects that describe Auto Scaling group recommendations.

*/ inline const Aws::Vector& GetAutoScalingGroupRecommendations() const{ return m_autoScalingGroupRecommendations; } /** *

An array of objects that describe Auto Scaling group recommendations.

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

An array of objects that describe Auto Scaling group recommendations.

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

An array of objects that describe Auto Scaling group recommendations.

*/ inline GetAutoScalingGroupRecommendationsResult& WithAutoScalingGroupRecommendations(const Aws::Vector& value) { SetAutoScalingGroupRecommendations(value); return *this;} /** *

An array of objects that describe Auto Scaling group recommendations.

*/ inline GetAutoScalingGroupRecommendationsResult& WithAutoScalingGroupRecommendations(Aws::Vector&& value) { SetAutoScalingGroupRecommendations(std::move(value)); return *this;} /** *

An array of objects that describe Auto Scaling group recommendations.

*/ inline GetAutoScalingGroupRecommendationsResult& AddAutoScalingGroupRecommendations(const AutoScalingGroupRecommendation& value) { m_autoScalingGroupRecommendations.push_back(value); return *this; } /** *

An array of objects that describe Auto Scaling group recommendations.

*/ inline GetAutoScalingGroupRecommendationsResult& AddAutoScalingGroupRecommendations(AutoScalingGroupRecommendation&& value) { m_autoScalingGroupRecommendations.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 unsupported Auto * Scaling group.

*/ 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 unsupported Auto * Scaling group.

*/ 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 unsupported Auto * Scaling group.

*/ 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 unsupported Auto * Scaling group.

*/ inline GetAutoScalingGroupRecommendationsResult& 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 unsupported Auto * Scaling group.

*/ inline GetAutoScalingGroupRecommendationsResult& 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 unsupported Auto * Scaling group.

*/ inline GetAutoScalingGroupRecommendationsResult& 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 unsupported Auto * Scaling group.

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