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/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <aws/core/utils/memory/stl/AWSVector.h>
11 #include <aws/ec2/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
21   /**
22    */
23   class AWS_EC2_API GetTransitGatewayAttachmentPropagationsRequest : public EC2Request
24   {
25   public:
26     GetTransitGatewayAttachmentPropagationsRequest();
27 
28     // Service request name is the Operation name which will send this request out,
29     // each operation should has unique request name, so that we can get operation's name from this request.
30     // Note: this is not true for response, multiple operations may have the same response name,
31     // so we can not get operation's name from response.
GetServiceRequestName()32     inline virtual const char* GetServiceRequestName() const override { return "GetTransitGatewayAttachmentPropagations"; }
33 
34     Aws::String SerializePayload() const override;
35 
36   protected:
37     void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39   public:
40 
41     /**
42      * <p>The ID of the attachment.</p>
43      */
GetTransitGatewayAttachmentId()44     inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
45 
46     /**
47      * <p>The ID of the attachment.</p>
48      */
TransitGatewayAttachmentIdHasBeenSet()49     inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
50 
51     /**
52      * <p>The ID of the attachment.</p>
53      */
SetTransitGatewayAttachmentId(const Aws::String & value)54     inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
55 
56     /**
57      * <p>The ID of the attachment.</p>
58      */
SetTransitGatewayAttachmentId(Aws::String && value)59     inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
60 
61     /**
62      * <p>The ID of the attachment.</p>
63      */
SetTransitGatewayAttachmentId(const char * value)64     inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
65 
66     /**
67      * <p>The ID of the attachment.</p>
68      */
WithTransitGatewayAttachmentId(const Aws::String & value)69     inline GetTransitGatewayAttachmentPropagationsRequest& WithTransitGatewayAttachmentId(const Aws::String& value) { SetTransitGatewayAttachmentId(value); return *this;}
70 
71     /**
72      * <p>The ID of the attachment.</p>
73      */
WithTransitGatewayAttachmentId(Aws::String && value)74     inline GetTransitGatewayAttachmentPropagationsRequest& WithTransitGatewayAttachmentId(Aws::String&& value) { SetTransitGatewayAttachmentId(std::move(value)); return *this;}
75 
76     /**
77      * <p>The ID of the attachment.</p>
78      */
WithTransitGatewayAttachmentId(const char * value)79     inline GetTransitGatewayAttachmentPropagationsRequest& WithTransitGatewayAttachmentId(const char* value) { SetTransitGatewayAttachmentId(value); return *this;}
80 
81 
82     /**
83      * <p>One or more filters. The possible values are:</p> <ul> <li> <p>
84      * <code>transit-gateway-route-table-id</code> - The ID of the transit gateway
85      * route table.</p> </li> </ul>
86      */
GetFilters()87     inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
88 
89     /**
90      * <p>One or more filters. The possible values are:</p> <ul> <li> <p>
91      * <code>transit-gateway-route-table-id</code> - The ID of the transit gateway
92      * route table.</p> </li> </ul>
93      */
FiltersHasBeenSet()94     inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
95 
96     /**
97      * <p>One or more filters. The possible values are:</p> <ul> <li> <p>
98      * <code>transit-gateway-route-table-id</code> - The ID of the transit gateway
99      * route table.</p> </li> </ul>
100      */
SetFilters(const Aws::Vector<Filter> & value)101     inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
102 
103     /**
104      * <p>One or more filters. The possible values are:</p> <ul> <li> <p>
105      * <code>transit-gateway-route-table-id</code> - The ID of the transit gateway
106      * route table.</p> </li> </ul>
107      */
SetFilters(Aws::Vector<Filter> && value)108     inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
109 
110     /**
111      * <p>One or more filters. The possible values are:</p> <ul> <li> <p>
112      * <code>transit-gateway-route-table-id</code> - The ID of the transit gateway
113      * route table.</p> </li> </ul>
114      */
WithFilters(const Aws::Vector<Filter> & value)115     inline GetTransitGatewayAttachmentPropagationsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
116 
117     /**
118      * <p>One or more filters. The possible values are:</p> <ul> <li> <p>
119      * <code>transit-gateway-route-table-id</code> - The ID of the transit gateway
120      * route table.</p> </li> </ul>
121      */
WithFilters(Aws::Vector<Filter> && value)122     inline GetTransitGatewayAttachmentPropagationsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
123 
124     /**
125      * <p>One or more filters. The possible values are:</p> <ul> <li> <p>
126      * <code>transit-gateway-route-table-id</code> - The ID of the transit gateway
127      * route table.</p> </li> </ul>
128      */
AddFilters(const Filter & value)129     inline GetTransitGatewayAttachmentPropagationsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
130 
131     /**
132      * <p>One or more filters. The possible values are:</p> <ul> <li> <p>
133      * <code>transit-gateway-route-table-id</code> - The ID of the transit gateway
134      * route table.</p> </li> </ul>
135      */
AddFilters(Filter && value)136     inline GetTransitGatewayAttachmentPropagationsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
137 
138 
139     /**
140      * <p>The maximum number of results to return with a single call. To retrieve the
141      * remaining results, make another call with the returned <code>nextToken</code>
142      * value.</p>
143      */
GetMaxResults()144     inline int GetMaxResults() const{ return m_maxResults; }
145 
146     /**
147      * <p>The maximum number of results to return with a single call. To retrieve the
148      * remaining results, make another call with the returned <code>nextToken</code>
149      * value.</p>
150      */
MaxResultsHasBeenSet()151     inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
152 
153     /**
154      * <p>The maximum number of results to return with a single call. To retrieve the
155      * remaining results, make another call with the returned <code>nextToken</code>
156      * value.</p>
157      */
SetMaxResults(int value)158     inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
159 
160     /**
161      * <p>The maximum number of results to return with a single call. To retrieve the
162      * remaining results, make another call with the returned <code>nextToken</code>
163      * value.</p>
164      */
WithMaxResults(int value)165     inline GetTransitGatewayAttachmentPropagationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
166 
167 
168     /**
169      * <p>The token for the next page of results.</p>
170      */
GetNextToken()171     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
172 
173     /**
174      * <p>The token for the next page of results.</p>
175      */
NextTokenHasBeenSet()176     inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
177 
178     /**
179      * <p>The token for the next page of results.</p>
180      */
SetNextToken(const Aws::String & value)181     inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
182 
183     /**
184      * <p>The token for the next page of results.</p>
185      */
SetNextToken(Aws::String && value)186     inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
187 
188     /**
189      * <p>The token for the next page of results.</p>
190      */
SetNextToken(const char * value)191     inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
192 
193     /**
194      * <p>The token for the next page of results.</p>
195      */
WithNextToken(const Aws::String & value)196     inline GetTransitGatewayAttachmentPropagationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
197 
198     /**
199      * <p>The token for the next page of results.</p>
200      */
WithNextToken(Aws::String && value)201     inline GetTransitGatewayAttachmentPropagationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
202 
203     /**
204      * <p>The token for the next page of results.</p>
205      */
WithNextToken(const char * value)206     inline GetTransitGatewayAttachmentPropagationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
207 
208 
209     /**
210      * <p>Checks whether you have the required permissions for the action, without
211      * actually making the request, and provides an error response. If you have the
212      * required permissions, the error response is <code>DryRunOperation</code>.
213      * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
214      */
GetDryRun()215     inline bool GetDryRun() const{ return m_dryRun; }
216 
217     /**
218      * <p>Checks whether you have the required permissions for the action, without
219      * actually making the request, and provides an error response. If you have the
220      * required permissions, the error response is <code>DryRunOperation</code>.
221      * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
222      */
DryRunHasBeenSet()223     inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
224 
225     /**
226      * <p>Checks whether you have the required permissions for the action, without
227      * actually making the request, and provides an error response. If you have the
228      * required permissions, the error response is <code>DryRunOperation</code>.
229      * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
230      */
SetDryRun(bool value)231     inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
232 
233     /**
234      * <p>Checks whether you have the required permissions for the action, without
235      * actually making the request, and provides an error response. If you have the
236      * required permissions, the error response is <code>DryRunOperation</code>.
237      * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
238      */
WithDryRun(bool value)239     inline GetTransitGatewayAttachmentPropagationsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
240 
241   private:
242 
243     Aws::String m_transitGatewayAttachmentId;
244     bool m_transitGatewayAttachmentIdHasBeenSet;
245 
246     Aws::Vector<Filter> m_filters;
247     bool m_filtersHasBeenSet;
248 
249     int m_maxResults;
250     bool m_maxResultsHasBeenSet;
251 
252     Aws::String m_nextToken;
253     bool m_nextTokenHasBeenSet;
254 
255     bool m_dryRun;
256     bool m_dryRunHasBeenSet;
257   };
258 
259 } // namespace Model
260 } // namespace EC2
261 } // namespace Aws
262