1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/es/ElasticsearchService_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <aws/core/utils/memory/stl/AWSVector.h>
10 #include <aws/es/model/PackageVersionHistory.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22   class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace ElasticsearchService
26 {
27 namespace Model
28 {
29   /**
30    * <p> Container for response returned by <code> <a>GetPackageVersionHistory</a>
31    * </code> operation. </p><p><h3>See Also:</h3>   <a
32    * href="http://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/GetPackageVersionHistoryResponse">AWS
33    * API Reference</a></p>
34    */
35   class AWS_ELASTICSEARCHSERVICE_API GetPackageVersionHistoryResult
36   {
37   public:
38     GetPackageVersionHistoryResult();
39     GetPackageVersionHistoryResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
40     GetPackageVersionHistoryResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
41 
42 
43 
GetPackageID()44     inline const Aws::String& GetPackageID() const{ return m_packageID; }
45 
46 
SetPackageID(const Aws::String & value)47     inline void SetPackageID(const Aws::String& value) { m_packageID = value; }
48 
49 
SetPackageID(Aws::String && value)50     inline void SetPackageID(Aws::String&& value) { m_packageID = std::move(value); }
51 
52 
SetPackageID(const char * value)53     inline void SetPackageID(const char* value) { m_packageID.assign(value); }
54 
55 
WithPackageID(const Aws::String & value)56     inline GetPackageVersionHistoryResult& WithPackageID(const Aws::String& value) { SetPackageID(value); return *this;}
57 
58 
WithPackageID(Aws::String && value)59     inline GetPackageVersionHistoryResult& WithPackageID(Aws::String&& value) { SetPackageID(std::move(value)); return *this;}
60 
61 
WithPackageID(const char * value)62     inline GetPackageVersionHistoryResult& WithPackageID(const char* value) { SetPackageID(value); return *this;}
63 
64 
65     /**
66      * <p>List of <code>PackageVersionHistory</code> objects.</p>
67      */
GetPackageVersionHistoryList()68     inline const Aws::Vector<PackageVersionHistory>& GetPackageVersionHistoryList() const{ return m_packageVersionHistoryList; }
69 
70     /**
71      * <p>List of <code>PackageVersionHistory</code> objects.</p>
72      */
SetPackageVersionHistoryList(const Aws::Vector<PackageVersionHistory> & value)73     inline void SetPackageVersionHistoryList(const Aws::Vector<PackageVersionHistory>& value) { m_packageVersionHistoryList = value; }
74 
75     /**
76      * <p>List of <code>PackageVersionHistory</code> objects.</p>
77      */
SetPackageVersionHistoryList(Aws::Vector<PackageVersionHistory> && value)78     inline void SetPackageVersionHistoryList(Aws::Vector<PackageVersionHistory>&& value) { m_packageVersionHistoryList = std::move(value); }
79 
80     /**
81      * <p>List of <code>PackageVersionHistory</code> objects.</p>
82      */
WithPackageVersionHistoryList(const Aws::Vector<PackageVersionHistory> & value)83     inline GetPackageVersionHistoryResult& WithPackageVersionHistoryList(const Aws::Vector<PackageVersionHistory>& value) { SetPackageVersionHistoryList(value); return *this;}
84 
85     /**
86      * <p>List of <code>PackageVersionHistory</code> objects.</p>
87      */
WithPackageVersionHistoryList(Aws::Vector<PackageVersionHistory> && value)88     inline GetPackageVersionHistoryResult& WithPackageVersionHistoryList(Aws::Vector<PackageVersionHistory>&& value) { SetPackageVersionHistoryList(std::move(value)); return *this;}
89 
90     /**
91      * <p>List of <code>PackageVersionHistory</code> objects.</p>
92      */
AddPackageVersionHistoryList(const PackageVersionHistory & value)93     inline GetPackageVersionHistoryResult& AddPackageVersionHistoryList(const PackageVersionHistory& value) { m_packageVersionHistoryList.push_back(value); return *this; }
94 
95     /**
96      * <p>List of <code>PackageVersionHistory</code> objects.</p>
97      */
AddPackageVersionHistoryList(PackageVersionHistory && value)98     inline GetPackageVersionHistoryResult& AddPackageVersionHistoryList(PackageVersionHistory&& value) { m_packageVersionHistoryList.push_back(std::move(value)); return *this; }
99 
100 
101 
GetNextToken()102     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
103 
104 
SetNextToken(const Aws::String & value)105     inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
106 
107 
SetNextToken(Aws::String && value)108     inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
109 
110 
SetNextToken(const char * value)111     inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
112 
113 
WithNextToken(const Aws::String & value)114     inline GetPackageVersionHistoryResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
115 
116 
WithNextToken(Aws::String && value)117     inline GetPackageVersionHistoryResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
118 
119 
WithNextToken(const char * value)120     inline GetPackageVersionHistoryResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122   private:
123 
124     Aws::String m_packageID;
125 
126     Aws::Vector<PackageVersionHistory> m_packageVersionHistoryList;
127 
128     Aws::String m_nextToken;
129   };
130 
131 } // namespace Model
132 } // namespace ElasticsearchService
133 } // namespace Aws
134