AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetPackageVersionHistoryResult.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/opensearch/model/PackageVersionHistory.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 OpenSearchService
26{
27namespace Model
28{
36 {
37 public:
38 AWS_OPENSEARCHSERVICE_API GetPackageVersionHistoryResult();
41
42
44
47 inline const Aws::String& GetPackageID() const{ return m_packageID; }
48 inline void SetPackageID(const Aws::String& value) { m_packageID = value; }
49 inline void SetPackageID(Aws::String&& value) { m_packageID = std::move(value); }
50 inline void SetPackageID(const char* value) { m_packageID.assign(value); }
51 inline GetPackageVersionHistoryResult& WithPackageID(const Aws::String& value) { SetPackageID(value); return *this;}
52 inline GetPackageVersionHistoryResult& WithPackageID(Aws::String&& value) { SetPackageID(std::move(value)); return *this;}
53 inline GetPackageVersionHistoryResult& WithPackageID(const char* value) { SetPackageID(value); return *this;}
55
57
61 inline const Aws::Vector<PackageVersionHistory>& GetPackageVersionHistoryList() const{ return m_packageVersionHistoryList; }
62 inline void SetPackageVersionHistoryList(const Aws::Vector<PackageVersionHistory>& value) { m_packageVersionHistoryList = value; }
63 inline void SetPackageVersionHistoryList(Aws::Vector<PackageVersionHistory>&& value) { m_packageVersionHistoryList = std::move(value); }
66 inline GetPackageVersionHistoryResult& AddPackageVersionHistoryList(const PackageVersionHistory& value) { m_packageVersionHistoryList.push_back(value); return *this; }
67 inline GetPackageVersionHistoryResult& AddPackageVersionHistoryList(PackageVersionHistory&& value) { m_packageVersionHistoryList.push_back(std::move(value)); return *this; }
69
71
76 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
77 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
78 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
79 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
80 inline GetPackageVersionHistoryResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
81 inline GetPackageVersionHistoryResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
82 inline GetPackageVersionHistoryResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
84
86
87 inline const Aws::String& GetRequestId() const{ return m_requestId; }
88 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
89 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
90 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
91 inline GetPackageVersionHistoryResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
92 inline GetPackageVersionHistoryResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
93 inline GetPackageVersionHistoryResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
95 private:
96
97 Aws::String m_packageID;
98
99 Aws::Vector<PackageVersionHistory> m_packageVersionHistoryList;
100
101 Aws::String m_nextToken;
102
103 Aws::String m_requestId;
104 };
105
106} // namespace Model
107} // namespace OpenSearchService
108} // namespace Aws
GetPackageVersionHistoryResult & WithRequestId(Aws::String &&value)
GetPackageVersionHistoryResult & WithNextToken(const char *value)
void SetPackageVersionHistoryList(const Aws::Vector< PackageVersionHistory > &value)
GetPackageVersionHistoryResult & WithPackageID(const char *value)
AWS_OPENSEARCHSERVICE_API GetPackageVersionHistoryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPackageVersionHistoryResult & AddPackageVersionHistoryList(PackageVersionHistory &&value)
AWS_OPENSEARCHSERVICE_API GetPackageVersionHistoryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPackageVersionHistoryResult & WithRequestId(const Aws::String &value)
GetPackageVersionHistoryResult & WithNextToken(const Aws::String &value)
const Aws::Vector< PackageVersionHistory > & GetPackageVersionHistoryList() const
GetPackageVersionHistoryResult & WithPackageVersionHistoryList(Aws::Vector< PackageVersionHistory > &&value)
GetPackageVersionHistoryResult & WithPackageID(Aws::String &&value)
GetPackageVersionHistoryResult & WithNextToken(Aws::String &&value)
void SetPackageVersionHistoryList(Aws::Vector< PackageVersionHistory > &&value)
GetPackageVersionHistoryResult & WithPackageVersionHistoryList(const Aws::Vector< PackageVersionHistory > &value)
GetPackageVersionHistoryResult & WithPackageID(const Aws::String &value)
GetPackageVersionHistoryResult & AddPackageVersionHistoryList(const PackageVersionHistory &value)
GetPackageVersionHistoryResult & WithRequestId(const char *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