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/iotsecuretunneling/IoTSecureTunneling_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSVector.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <aws/iotsecuretunneling/model/TunnelSummary.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 IoTSecureTunneling
26 {
27 namespace Model
28 {
29   class AWS_IOTSECURETUNNELING_API ListTunnelsResult
30   {
31   public:
32     ListTunnelsResult();
33     ListTunnelsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34     ListTunnelsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
35 
36 
37     /**
38      * <p>A short description of the tunnels in an AWS account.</p>
39      */
GetTunnelSummaries()40     inline const Aws::Vector<TunnelSummary>& GetTunnelSummaries() const{ return m_tunnelSummaries; }
41 
42     /**
43      * <p>A short description of the tunnels in an AWS account.</p>
44      */
SetTunnelSummaries(const Aws::Vector<TunnelSummary> & value)45     inline void SetTunnelSummaries(const Aws::Vector<TunnelSummary>& value) { m_tunnelSummaries = value; }
46 
47     /**
48      * <p>A short description of the tunnels in an AWS account.</p>
49      */
SetTunnelSummaries(Aws::Vector<TunnelSummary> && value)50     inline void SetTunnelSummaries(Aws::Vector<TunnelSummary>&& value) { m_tunnelSummaries = std::move(value); }
51 
52     /**
53      * <p>A short description of the tunnels in an AWS account.</p>
54      */
WithTunnelSummaries(const Aws::Vector<TunnelSummary> & value)55     inline ListTunnelsResult& WithTunnelSummaries(const Aws::Vector<TunnelSummary>& value) { SetTunnelSummaries(value); return *this;}
56 
57     /**
58      * <p>A short description of the tunnels in an AWS account.</p>
59      */
WithTunnelSummaries(Aws::Vector<TunnelSummary> && value)60     inline ListTunnelsResult& WithTunnelSummaries(Aws::Vector<TunnelSummary>&& value) { SetTunnelSummaries(std::move(value)); return *this;}
61 
62     /**
63      * <p>A short description of the tunnels in an AWS account.</p>
64      */
AddTunnelSummaries(const TunnelSummary & value)65     inline ListTunnelsResult& AddTunnelSummaries(const TunnelSummary& value) { m_tunnelSummaries.push_back(value); return *this; }
66 
67     /**
68      * <p>A short description of the tunnels in an AWS account.</p>
69      */
AddTunnelSummaries(TunnelSummary && value)70     inline ListTunnelsResult& AddTunnelSummaries(TunnelSummary&& value) { m_tunnelSummaries.push_back(std::move(value)); return *this; }
71 
72 
73     /**
74      * <p>A token to used to retrieve the next set of results.</p>
75      */
GetNextToken()76     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
77 
78     /**
79      * <p>A token to used to retrieve the next set of results.</p>
80      */
SetNextToken(const Aws::String & value)81     inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
82 
83     /**
84      * <p>A token to used to retrieve the next set of results.</p>
85      */
SetNextToken(Aws::String && value)86     inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
87 
88     /**
89      * <p>A token to used to retrieve the next set of results.</p>
90      */
SetNextToken(const char * value)91     inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
92 
93     /**
94      * <p>A token to used to retrieve the next set of results.</p>
95      */
WithNextToken(const Aws::String & value)96     inline ListTunnelsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
97 
98     /**
99      * <p>A token to used to retrieve the next set of results.</p>
100      */
WithNextToken(Aws::String && value)101     inline ListTunnelsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
102 
103     /**
104      * <p>A token to used to retrieve the next set of results.</p>
105      */
WithNextToken(const char * value)106     inline ListTunnelsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
107 
108   private:
109 
110     Aws::Vector<TunnelSummary> m_tunnelSummaries;
111 
112     Aws::String m_nextToken;
113   };
114 
115 } // namespace Model
116 } // namespace IoTSecureTunneling
117 } // namespace Aws
118