AWS SDK for C++  1.9.15
AWS SDK for C++
GetTransitGatewayAttachmentPropagationsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.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 
24  {
25  public:
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.
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 
44  inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
45 
49  inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
50 
54  inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
55 
59  inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
60 
64  inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
65 
69  inline GetTransitGatewayAttachmentPropagationsRequest& WithTransitGatewayAttachmentId(const Aws::String& value) { SetTransitGatewayAttachmentId(value); return *this;}
70 
74  inline GetTransitGatewayAttachmentPropagationsRequest& WithTransitGatewayAttachmentId(Aws::String&& value) { SetTransitGatewayAttachmentId(std::move(value)); return *this;}
75 
79  inline GetTransitGatewayAttachmentPropagationsRequest& WithTransitGatewayAttachmentId(const char* value) { SetTransitGatewayAttachmentId(value); return *this;}
80 
81 
87  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
88 
94  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
95 
101  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
102 
108  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
109 
115  inline GetTransitGatewayAttachmentPropagationsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
116 
122  inline GetTransitGatewayAttachmentPropagationsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
123 
129  inline GetTransitGatewayAttachmentPropagationsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
130 
136  inline GetTransitGatewayAttachmentPropagationsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
137 
138 
144  inline int GetMaxResults() const{ return m_maxResults; }
145 
151  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
152 
158  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
159 
165  inline GetTransitGatewayAttachmentPropagationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
166 
167 
171  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
172 
176  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
177 
181  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
182 
186  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
187 
191  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
192 
196  inline GetTransitGatewayAttachmentPropagationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
197 
201  inline GetTransitGatewayAttachmentPropagationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
202 
206  inline GetTransitGatewayAttachmentPropagationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
207 
208 
215  inline bool GetDryRun() const{ return m_dryRun; }
216 
223  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
224 
231  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
232 
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
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:87
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::WithFilters
GetTransitGatewayAttachmentPropagationsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:122
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:186
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::WithDryRun
GetTransitGatewayAttachmentPropagationsRequest & WithDryRun(bool value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:239
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::AddFilters
GetTransitGatewayAttachmentPropagationsRequest & AddFilters(Filter &&value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:136
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::TransitGatewayAttachmentIdHasBeenSet
bool TransitGatewayAttachmentIdHasBeenSet() const
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:49
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::GetTransitGatewayAttachmentPropagationsRequest
GetTransitGatewayAttachmentPropagationsRequest()
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const char *value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:64
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const Aws::String &value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:54
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:191
AWSVector.h
Filter.h
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:171
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:223
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(Aws::String &&value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:59
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::WithNextToken
GetTransitGatewayAttachmentPropagationsRequest & WithNextToken(const Aws::String &value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:196
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::GetTransitGatewayAttachmentId
const Aws::String & GetTransitGatewayAttachmentId() const
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:44
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::GetDryRun
bool GetDryRun() const
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:215
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::WithNextToken
GetTransitGatewayAttachmentPropagationsRequest & WithNextToken(Aws::String &&value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:201
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:94
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::WithNextToken
GetTransitGatewayAttachmentPropagationsRequest & WithNextToken(const char *value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:206
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::SetDryRun
void SetDryRun(bool value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:231
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:158
EC2Request.h
AWSString.h
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:101
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:151
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::WithFilters
GetTransitGatewayAttachmentPropagationsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:115
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:24
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:176
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::WithTransitGatewayAttachmentId
GetTransitGatewayAttachmentPropagationsRequest & WithTransitGatewayAttachmentId(const Aws::String &value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:69
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::GetMaxResults
int GetMaxResults() const
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:144
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:108
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::WithMaxResults
GetTransitGatewayAttachmentPropagationsRequest & WithMaxResults(int value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:165
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::WithTransitGatewayAttachmentId
GetTransitGatewayAttachmentPropagationsRequest & WithTransitGatewayAttachmentId(const char *value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:79
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:181
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::AddFilters
GetTransitGatewayAttachmentPropagationsRequest & AddFilters(const Filter &value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:129
EC2_EXPORTS.h
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::WithTransitGatewayAttachmentId
GetTransitGatewayAttachmentPropagationsRequest & WithTransitGatewayAttachmentId(Aws::String &&value)
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:74
Aws::EC2::Model::GetTransitGatewayAttachmentPropagationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetTransitGatewayAttachmentPropagationsRequest.h:32