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

A list of cost anomalies.

*/ inline const Aws::Vector& GetAnomalies() const{ return m_anomalies; } /** *

A list of cost anomalies.

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

A list of cost anomalies.

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

A list of cost anomalies.

*/ inline GetAnomaliesResult& WithAnomalies(const Aws::Vector& value) { SetAnomalies(value); return *this;} /** *

A list of cost anomalies.

*/ inline GetAnomaliesResult& WithAnomalies(Aws::Vector&& value) { SetAnomalies(std::move(value)); return *this;} /** *

A list of cost anomalies.

*/ inline GetAnomaliesResult& AddAnomalies(const Anomaly& value) { m_anomalies.push_back(value); return *this; } /** *

A list of cost anomalies.

*/ inline GetAnomaliesResult& AddAnomalies(Anomaly&& value) { m_anomalies.push_back(std::move(value)); return *this; } /** *

The token to retrieve the next set of results. Amazon Web Services provides * the token when the response from a previous call has more results than the * maximum page size.

*/ inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; } /** *

The token to retrieve the next set of results. Amazon Web Services provides * the token when the response from a previous call has more results than the * maximum page size.

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

The token to retrieve the next set of results. Amazon Web Services provides * the token when the response from a previous call has more results than the * maximum page size.

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

The token to retrieve the next set of results. Amazon Web Services provides * the token when the response from a previous call has more results than the * maximum page size.

*/ inline void SetNextPageToken(const char* value) { m_nextPageToken.assign(value); } /** *

The token to retrieve the next set of results. Amazon Web Services provides * the token when the response from a previous call has more results than the * maximum page size.

*/ inline GetAnomaliesResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;} /** *

The token to retrieve the next set of results. Amazon Web Services provides * the token when the response from a previous call has more results than the * maximum page size.

*/ inline GetAnomaliesResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;} /** *

The token to retrieve the next set of results. Amazon Web Services provides * the token when the response from a previous call has more results than the * maximum page size.

*/ inline GetAnomaliesResult& WithNextPageToken(const char* value) { SetNextPageToken(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 GetAnomaliesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetAnomaliesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetAnomaliesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_anomalies; Aws::String m_nextPageToken; Aws::String m_requestId; }; } // namespace Model } // namespace CostExplorer } // namespace Aws