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

Container for response returned by GetUpgradeHistory * operation.

See Also:

AWS * API Reference

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

A list of UpgradeHistory objects corresponding to each * Upgrade or Upgrade Eligibility Check performed on a domain returned as part of * GetUpgradeHistoryResponse object.

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

A list of UpgradeHistory objects corresponding to each * Upgrade or Upgrade Eligibility Check performed on a domain returned as part of * GetUpgradeHistoryResponse object.

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

A list of UpgradeHistory objects corresponding to each * Upgrade or Upgrade Eligibility Check performed on a domain returned as part of * GetUpgradeHistoryResponse object.

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

A list of UpgradeHistory objects corresponding to each * Upgrade or Upgrade Eligibility Check performed on a domain returned as part of * GetUpgradeHistoryResponse object.

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

A list of UpgradeHistory objects corresponding to each * Upgrade or Upgrade Eligibility Check performed on a domain returned as part of * GetUpgradeHistoryResponse object.

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

A list of UpgradeHistory objects corresponding to each * Upgrade or Upgrade Eligibility Check performed on a domain returned as part of * GetUpgradeHistoryResponse object.

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

A list of UpgradeHistory objects corresponding to each * Upgrade or Upgrade Eligibility Check performed on a domain returned as part of * GetUpgradeHistoryResponse object.

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

Pagination token that needs to be supplied to the next call to get the next * page of results

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

Pagination token that needs to be supplied to the next call to get the next * page of results

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

Pagination token that needs to be supplied to the next call to get the next * page of results

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

Pagination token that needs to be supplied to the next call to get the next * page of results

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

Pagination token that needs to be supplied to the next call to get the next * page of results

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

Pagination token that needs to be supplied to the next call to get the next * page of results

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

Pagination token that needs to be supplied to the next call to get the next * page of results

*/ 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 ElasticsearchService } // namespace Aws