AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetUpgradeHistoryResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/model/UpgradeHistory.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace OpenSearchService {
24namespace Model {
32 public:
33 AWS_OPENSEARCHSERVICE_API GetUpgradeHistoryResult() = default;
36
38
42 inline const Aws::Vector<UpgradeHistory>& GetUpgradeHistories() const { return m_upgradeHistories; }
43 template <typename UpgradeHistoriesT = Aws::Vector<UpgradeHistory>>
44 void SetUpgradeHistories(UpgradeHistoriesT&& value) {
45 m_upgradeHistoriesHasBeenSet = true;
46 m_upgradeHistories = std::forward<UpgradeHistoriesT>(value);
47 }
48 template <typename UpgradeHistoriesT = Aws::Vector<UpgradeHistory>>
49 GetUpgradeHistoryResult& WithUpgradeHistories(UpgradeHistoriesT&& value) {
50 SetUpgradeHistories(std::forward<UpgradeHistoriesT>(value));
51 return *this;
52 }
53 template <typename UpgradeHistoriesT = UpgradeHistory>
54 GetUpgradeHistoryResult& AddUpgradeHistories(UpgradeHistoriesT&& value) {
55 m_upgradeHistoriesHasBeenSet = true;
56 m_upgradeHistories.emplace_back(std::forward<UpgradeHistoriesT>(value));
57 return *this;
58 }
60
62
67 inline const Aws::String& GetNextToken() const { return m_nextToken; }
68 template <typename NextTokenT = Aws::String>
69 void SetNextToken(NextTokenT&& value) {
70 m_nextTokenHasBeenSet = true;
71 m_nextToken = std::forward<NextTokenT>(value);
72 }
73 template <typename NextTokenT = Aws::String>
75 SetNextToken(std::forward<NextTokenT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 private:
95 Aws::Vector<UpgradeHistory> m_upgradeHistories;
96
97 Aws::String m_nextToken;
98
99 Aws::String m_requestId;
100 bool m_upgradeHistoriesHasBeenSet = false;
101 bool m_nextTokenHasBeenSet = false;
102 bool m_requestIdHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace OpenSearchService
107} // namespace Aws
AWS_OPENSEARCHSERVICE_API GetUpgradeHistoryResult()=default
GetUpgradeHistoryResult & WithUpgradeHistories(UpgradeHistoriesT &&value)
AWS_OPENSEARCHSERVICE_API GetUpgradeHistoryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_OPENSEARCHSERVICE_API GetUpgradeHistoryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetUpgradeHistoryResult & AddUpgradeHistories(UpgradeHistoriesT &&value)
const Aws::Vector< UpgradeHistory > & GetUpgradeHistories() const
GetUpgradeHistoryResult & WithRequestId(RequestIdT &&value)
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