/** * 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 OpenSearchService { namespace Model { /** *

Container for the response returned by the GetUpgradeHistory * operation.

See Also:

AWS * API Reference

*/ class GetUpgradeHistoryResult { public: AWS_OPENSEARCHSERVICE_API GetUpgradeHistoryResult(); AWS_OPENSEARCHSERVICE_API GetUpgradeHistoryResult(const Aws::AmazonWebServiceResult& result); AWS_OPENSEARCHSERVICE_API GetUpgradeHistoryResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of objects corresponding to each upgrade or upgrade eligibility check * performed on a domain.

*/ inline const Aws::Vector& GetUpgradeHistories() const{ return m_upgradeHistories; } /** *

A list of objects corresponding to each upgrade or upgrade eligibility check * performed on a domain.

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

A list of objects corresponding to each upgrade or upgrade eligibility check * performed on a domain.

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

A list of objects corresponding to each upgrade or upgrade eligibility check * performed on a domain.

*/ inline GetUpgradeHistoryResult& WithUpgradeHistories(const Aws::Vector& value) { SetUpgradeHistories(value); return *this;} /** *

A list of objects corresponding to each upgrade or upgrade eligibility check * performed on a domain.

*/ inline GetUpgradeHistoryResult& WithUpgradeHistories(Aws::Vector&& value) { SetUpgradeHistories(std::move(value)); return *this;} /** *

A list of objects corresponding to each upgrade or upgrade eligibility check * performed on a domain.

*/ inline GetUpgradeHistoryResult& AddUpgradeHistories(const UpgradeHistory& value) { m_upgradeHistories.push_back(value); return *this; } /** *

A list of objects corresponding to each upgrade or upgrade eligibility check * performed on a domain.

*/ inline GetUpgradeHistoryResult& AddUpgradeHistories(UpgradeHistory&& value) { m_upgradeHistories.push_back(std::move(value)); return *this; } /** *

When nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page.

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

When nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page.

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

When nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page.

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

When nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page.

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

When nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page.

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

When nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page.

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

When nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page.

*/ inline GetUpgradeHistoryResult& WithNextToken(const char* value) { SetNextToken(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 GetUpgradeHistoryResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetUpgradeHistoryResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetUpgradeHistoryResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_upgradeHistories; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws