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

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

*

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

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

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

*

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

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

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

*

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

*

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

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

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

*

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

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

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

*

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

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

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

*

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

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

An array of objects that describe volume recommendations.

*/ inline const Aws::Vector& GetVolumeRecommendations() const{ return m_volumeRecommendations; } /** *

An array of objects that describe volume recommendations.

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

An array of objects that describe volume recommendations.

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

An array of objects that describe volume recommendations.

*/ inline GetEBSVolumeRecommendationsResult& WithVolumeRecommendations(const Aws::Vector& value) { SetVolumeRecommendations(value); return *this;} /** *

An array of objects that describe volume recommendations.

*/ inline GetEBSVolumeRecommendationsResult& WithVolumeRecommendations(Aws::Vector&& value) { SetVolumeRecommendations(std::move(value)); return *this;} /** *

An array of objects that describe volume recommendations.

*/ inline GetEBSVolumeRecommendationsResult& AddVolumeRecommendations(const VolumeRecommendation& value) { m_volumeRecommendations.push_back(value); return *this; } /** *

An array of objects that describe volume recommendations.

*/ inline GetEBSVolumeRecommendationsResult& AddVolumeRecommendations(VolumeRecommendation&& value) { m_volumeRecommendations.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 * volume.

*/ 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 * volume.

*/ 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 * volume.

*/ 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 * volume.

*/ inline GetEBSVolumeRecommendationsResult& 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 * volume.

*/ inline GetEBSVolumeRecommendationsResult& 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 * volume.

*/ inline GetEBSVolumeRecommendationsResult& 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 * volume.

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