AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GetUpgradeHistoryResult.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/es/model/UpgradeHistory.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace ElasticsearchService
26{
27namespace Model
28{
36 {
37 public:
38 AWS_ELASTICSEARCHSERVICE_API GetUpgradeHistoryResult() = default;
41
42
44
49 inline const Aws::Vector<UpgradeHistory>& GetUpgradeHistories() const { return m_upgradeHistories; }
50 template<typename UpgradeHistoriesT = Aws::Vector<UpgradeHistory>>
51 void SetUpgradeHistories(UpgradeHistoriesT&& value) { m_upgradeHistoriesHasBeenSet = true; m_upgradeHistories = std::forward<UpgradeHistoriesT>(value); }
52 template<typename UpgradeHistoriesT = Aws::Vector<UpgradeHistory>>
53 GetUpgradeHistoryResult& WithUpgradeHistories(UpgradeHistoriesT&& value) { SetUpgradeHistories(std::forward<UpgradeHistoriesT>(value)); return *this;}
54 template<typename UpgradeHistoriesT = UpgradeHistory>
55 GetUpgradeHistoryResult& AddUpgradeHistories(UpgradeHistoriesT&& value) { m_upgradeHistoriesHasBeenSet = true; m_upgradeHistories.emplace_back(std::forward<UpgradeHistoriesT>(value)); return *this; }
57
59
63 inline const Aws::String& GetNextToken() const { return m_nextToken; }
64 template<typename NextTokenT = Aws::String>
65 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
66 template<typename NextTokenT = Aws::String>
67 GetUpgradeHistoryResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
69
71
72 inline const Aws::String& GetRequestId() const { return m_requestId; }
73 template<typename RequestIdT = Aws::String>
74 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
75 template<typename RequestIdT = Aws::String>
76 GetUpgradeHistoryResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
78 private:
79
80 Aws::Vector<UpgradeHistory> m_upgradeHistories;
81 bool m_upgradeHistoriesHasBeenSet = false;
82
83 Aws::String m_nextToken;
84 bool m_nextTokenHasBeenSet = false;
85
86 Aws::String m_requestId;
87 bool m_requestIdHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace ElasticsearchService
92} // namespace Aws
AWS_ELASTICSEARCHSERVICE_API GetUpgradeHistoryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetUpgradeHistoryResult & AddUpgradeHistories(UpgradeHistoriesT &&value)
GetUpgradeHistoryResult & WithRequestId(RequestIdT &&value)
GetUpgradeHistoryResult & WithUpgradeHistories(UpgradeHistoriesT &&value)
const Aws::Vector< UpgradeHistory > & GetUpgradeHistories() const
AWS_ELASTICSEARCHSERVICE_API GetUpgradeHistoryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_ELASTICSEARCHSERVICE_API GetUpgradeHistoryResult()=default
GetUpgradeHistoryResult & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue