AWS SDK for C++  1.8.95
AWS SDK for C++
DescribeHomeRegionControlsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace MigrationHubConfig
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DescribeHomeRegionControls"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
37 
42  inline const Aws::String& GetControlId() const{ return m_controlId; }
43 
48  inline bool ControlIdHasBeenSet() const { return m_controlIdHasBeenSet; }
49 
54  inline void SetControlId(const Aws::String& value) { m_controlIdHasBeenSet = true; m_controlId = value; }
55 
60  inline void SetControlId(Aws::String&& value) { m_controlIdHasBeenSet = true; m_controlId = std::move(value); }
61 
66  inline void SetControlId(const char* value) { m_controlIdHasBeenSet = true; m_controlId.assign(value); }
67 
72  inline DescribeHomeRegionControlsRequest& WithControlId(const Aws::String& value) { SetControlId(value); return *this;}
73 
78  inline DescribeHomeRegionControlsRequest& WithControlId(Aws::String&& value) { SetControlId(std::move(value)); return *this;}
79 
84  inline DescribeHomeRegionControlsRequest& WithControlId(const char* value) { SetControlId(value); return *this;}
85 
86 
90  inline const Aws::String& GetHomeRegion() const{ return m_homeRegion; }
91 
95  inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
96 
100  inline void SetHomeRegion(const Aws::String& value) { m_homeRegionHasBeenSet = true; m_homeRegion = value; }
101 
105  inline void SetHomeRegion(Aws::String&& value) { m_homeRegionHasBeenSet = true; m_homeRegion = std::move(value); }
106 
110  inline void SetHomeRegion(const char* value) { m_homeRegionHasBeenSet = true; m_homeRegion.assign(value); }
111 
115  inline DescribeHomeRegionControlsRequest& WithHomeRegion(const Aws::String& value) { SetHomeRegion(value); return *this;}
116 
120  inline DescribeHomeRegionControlsRequest& WithHomeRegion(Aws::String&& value) { SetHomeRegion(std::move(value)); return *this;}
121 
125  inline DescribeHomeRegionControlsRequest& WithHomeRegion(const char* value) { SetHomeRegion(value); return *this;}
126 
127 
133  inline const Target& GetTarget() const{ return m_target; }
134 
140  inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
141 
147  inline void SetTarget(const Target& value) { m_targetHasBeenSet = true; m_target = value; }
148 
154  inline void SetTarget(Target&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
155 
161  inline DescribeHomeRegionControlsRequest& WithTarget(const Target& value) { SetTarget(value); return *this;}
162 
168  inline DescribeHomeRegionControlsRequest& WithTarget(Target&& value) { SetTarget(std::move(value)); return *this;}
169 
170 
174  inline int GetMaxResults() const{ return m_maxResults; }
175 
179  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
180 
184  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
185 
189  inline DescribeHomeRegionControlsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
190 
191 
197  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
198 
204  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
205 
211  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
212 
218  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
219 
225  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
226 
232  inline DescribeHomeRegionControlsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
233 
239  inline DescribeHomeRegionControlsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
240 
246  inline DescribeHomeRegionControlsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
247 
248  private:
249 
250  Aws::String m_controlId;
251  bool m_controlIdHasBeenSet;
252 
253  Aws::String m_homeRegion;
254  bool m_homeRegionHasBeenSet;
255 
256  Target m_target;
257  bool m_targetHasBeenSet;
258 
259  int m_maxResults;
260  bool m_maxResultsHasBeenSet;
261 
262  Aws::String m_nextToken;
263  bool m_nextTokenHasBeenSet;
264  };
265 
266 } // namespace Model
267 } // namespace MigrationHubConfig
268 } // namespace Aws
DescribeHomeRegionControlsRequest & WithNextToken(Aws::String &&value)
DescribeHomeRegionControlsRequest & WithControlId(const Aws::String &value)
#define AWS_MIGRATIONHUBCONFIG_API
DescribeHomeRegionControlsRequest & WithControlId(const char *value)
DescribeHomeRegionControlsRequest & WithControlId(Aws::String &&value)
DescribeHomeRegionControlsRequest & WithTarget(const Target &value)
DescribeHomeRegionControlsRequest & WithHomeRegion(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
DescribeHomeRegionControlsRequest & WithNextToken(const char *value)
DescribeHomeRegionControlsRequest & WithHomeRegion(const char *value)
DescribeHomeRegionControlsRequest & WithNextToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeHomeRegionControlsRequest & WithHomeRegion(const Aws::String &value)