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/iotsecuretunneling/IoTSecureTunnelingRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace IoTSecureTunneling
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_IOTSECURETUNNELING_API ListTunnelsRequest : public IoTSecureTunnelingRequest
22   {
23   public:
24     ListTunnelsRequest();
25 
26     // Service request name is the Operation name which will send this request out,
27     // each operation should has unique request name, so that we can get operation's name from this request.
28     // Note: this is not true for response, multiple operations may have the same response name,
29     // so we can not get operation's name from response.
GetServiceRequestName()30     inline virtual const char* GetServiceRequestName() const override { return "ListTunnels"; }
31 
32     Aws::String SerializePayload() const override;
33 
34     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
37     /**
38      * <p>The name of the IoT thing associated with the destination device.</p>
39      */
GetThingName()40     inline const Aws::String& GetThingName() const{ return m_thingName; }
41 
42     /**
43      * <p>The name of the IoT thing associated with the destination device.</p>
44      */
ThingNameHasBeenSet()45     inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
46 
47     /**
48      * <p>The name of the IoT thing associated with the destination device.</p>
49      */
SetThingName(const Aws::String & value)50     inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
51 
52     /**
53      * <p>The name of the IoT thing associated with the destination device.</p>
54      */
SetThingName(Aws::String && value)55     inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
56 
57     /**
58      * <p>The name of the IoT thing associated with the destination device.</p>
59      */
SetThingName(const char * value)60     inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
61 
62     /**
63      * <p>The name of the IoT thing associated with the destination device.</p>
64      */
WithThingName(const Aws::String & value)65     inline ListTunnelsRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
66 
67     /**
68      * <p>The name of the IoT thing associated with the destination device.</p>
69      */
WithThingName(Aws::String && value)70     inline ListTunnelsRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
71 
72     /**
73      * <p>The name of the IoT thing associated with the destination device.</p>
74      */
WithThingName(const char * value)75     inline ListTunnelsRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
76 
77 
78     /**
79      * <p>The maximum number of results to return at once.</p>
80      */
GetMaxResults()81     inline int GetMaxResults() const{ return m_maxResults; }
82 
83     /**
84      * <p>The maximum number of results to return at once.</p>
85      */
MaxResultsHasBeenSet()86     inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
87 
88     /**
89      * <p>The maximum number of results to return at once.</p>
90      */
SetMaxResults(int value)91     inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
92 
93     /**
94      * <p>The maximum number of results to return at once.</p>
95      */
WithMaxResults(int value)96     inline ListTunnelsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
97 
98 
99     /**
100      * <p>A token to retrieve the next set of results.</p>
101      */
GetNextToken()102     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
103 
104     /**
105      * <p>A token to retrieve the next set of results.</p>
106      */
NextTokenHasBeenSet()107     inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
108 
109     /**
110      * <p>A token to retrieve the next set of results.</p>
111      */
SetNextToken(const Aws::String & value)112     inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
113 
114     /**
115      * <p>A token to retrieve the next set of results.</p>
116      */
SetNextToken(Aws::String && value)117     inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
118 
119     /**
120      * <p>A token to retrieve the next set of results.</p>
121      */
SetNextToken(const char * value)122     inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
123 
124     /**
125      * <p>A token to retrieve the next set of results.</p>
126      */
WithNextToken(const Aws::String & value)127     inline ListTunnelsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
128 
129     /**
130      * <p>A token to retrieve the next set of results.</p>
131      */
WithNextToken(Aws::String && value)132     inline ListTunnelsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
133 
134     /**
135      * <p>A token to retrieve the next set of results.</p>
136      */
WithNextToken(const char * value)137     inline ListTunnelsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
138 
139   private:
140 
141     Aws::String m_thingName;
142     bool m_thingNameHasBeenSet;
143 
144     int m_maxResults;
145     bool m_maxResultsHasBeenSet;
146 
147     Aws::String m_nextToken;
148     bool m_nextTokenHasBeenSet;
149   };
150 
151 } // namespace Model
152 } // namespace IoTSecureTunneling
153 } // namespace Aws
154