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/connect/Connect_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSVector.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <aws/connect/model/InstanceSummary.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 Connect
26 {
27 namespace Model
28 {
29   class AWS_CONNECT_API ListInstancesResult
30   {
31   public:
32     ListInstancesResult();
33     ListInstancesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34     ListInstancesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
35 
36 
37     /**
38      * <p>Information about the instances.</p>
39      */
GetInstanceSummaryList()40     inline const Aws::Vector<InstanceSummary>& GetInstanceSummaryList() const{ return m_instanceSummaryList; }
41 
42     /**
43      * <p>Information about the instances.</p>
44      */
SetInstanceSummaryList(const Aws::Vector<InstanceSummary> & value)45     inline void SetInstanceSummaryList(const Aws::Vector<InstanceSummary>& value) { m_instanceSummaryList = value; }
46 
47     /**
48      * <p>Information about the instances.</p>
49      */
SetInstanceSummaryList(Aws::Vector<InstanceSummary> && value)50     inline void SetInstanceSummaryList(Aws::Vector<InstanceSummary>&& value) { m_instanceSummaryList = std::move(value); }
51 
52     /**
53      * <p>Information about the instances.</p>
54      */
WithInstanceSummaryList(const Aws::Vector<InstanceSummary> & value)55     inline ListInstancesResult& WithInstanceSummaryList(const Aws::Vector<InstanceSummary>& value) { SetInstanceSummaryList(value); return *this;}
56 
57     /**
58      * <p>Information about the instances.</p>
59      */
WithInstanceSummaryList(Aws::Vector<InstanceSummary> && value)60     inline ListInstancesResult& WithInstanceSummaryList(Aws::Vector<InstanceSummary>&& value) { SetInstanceSummaryList(std::move(value)); return *this;}
61 
62     /**
63      * <p>Information about the instances.</p>
64      */
AddInstanceSummaryList(const InstanceSummary & value)65     inline ListInstancesResult& AddInstanceSummaryList(const InstanceSummary& value) { m_instanceSummaryList.push_back(value); return *this; }
66 
67     /**
68      * <p>Information about the instances.</p>
69      */
AddInstanceSummaryList(InstanceSummary && value)70     inline ListInstancesResult& AddInstanceSummaryList(InstanceSummary&& value) { m_instanceSummaryList.push_back(std::move(value)); return *this; }
71 
72 
73     /**
74      * <p>If there are additional results, this is the token for the next set of
75      * results.</p>
76      */
GetNextToken()77     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
78 
79     /**
80      * <p>If there are additional results, this is the token for the next set of
81      * results.</p>
82      */
SetNextToken(const Aws::String & value)83     inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
84 
85     /**
86      * <p>If there are additional results, this is the token for the next set of
87      * results.</p>
88      */
SetNextToken(Aws::String && value)89     inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
90 
91     /**
92      * <p>If there are additional results, this is the token for the next set of
93      * results.</p>
94      */
SetNextToken(const char * value)95     inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
96 
97     /**
98      * <p>If there are additional results, this is the token for the next set of
99      * results.</p>
100      */
WithNextToken(const Aws::String & value)101     inline ListInstancesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 
103     /**
104      * <p>If there are additional results, this is the token for the next set of
105      * results.</p>
106      */
WithNextToken(Aws::String && value)107     inline ListInstancesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
108 
109     /**
110      * <p>If there are additional results, this is the token for the next set of
111      * results.</p>
112      */
WithNextToken(const char * value)113     inline ListInstancesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
114 
115   private:
116 
117     Aws::Vector<InstanceSummary> m_instanceSummaryList;
118 
119     Aws::String m_nextToken;
120   };
121 
122 } // namespace Model
123 } // namespace Connect
124 } // namespace Aws
125