AWS SDK for C++  1.8.95
AWS SDK for C++
CreateHomeRegionControlRequest.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 "CreateHomeRegionControl"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
37 
41  inline const Aws::String& GetHomeRegion() const{ return m_homeRegion; }
42 
46  inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
47 
51  inline void SetHomeRegion(const Aws::String& value) { m_homeRegionHasBeenSet = true; m_homeRegion = value; }
52 
56  inline void SetHomeRegion(Aws::String&& value) { m_homeRegionHasBeenSet = true; m_homeRegion = std::move(value); }
57 
61  inline void SetHomeRegion(const char* value) { m_homeRegionHasBeenSet = true; m_homeRegion.assign(value); }
62 
66  inline CreateHomeRegionControlRequest& WithHomeRegion(const Aws::String& value) { SetHomeRegion(value); return *this;}
67 
71  inline CreateHomeRegionControlRequest& WithHomeRegion(Aws::String&& value) { SetHomeRegion(std::move(value)); return *this;}
72 
76  inline CreateHomeRegionControlRequest& WithHomeRegion(const char* value) { SetHomeRegion(value); return *this;}
77 
78 
83  inline const Target& GetTarget() const{ return m_target; }
84 
89  inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
90 
95  inline void SetTarget(const Target& value) { m_targetHasBeenSet = true; m_target = value; }
96 
101  inline void SetTarget(Target&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
102 
107  inline CreateHomeRegionControlRequest& WithTarget(const Target& value) { SetTarget(value); return *this;}
108 
113  inline CreateHomeRegionControlRequest& WithTarget(Target&& value) { SetTarget(std::move(value)); return *this;}
114 
115 
120  inline bool GetDryRun() const{ return m_dryRun; }
121 
126  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
127 
132  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
133 
138  inline CreateHomeRegionControlRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
139 
140  private:
141 
142  Aws::String m_homeRegion;
143  bool m_homeRegionHasBeenSet;
144 
145  Target m_target;
146  bool m_targetHasBeenSet;
147 
148  bool m_dryRun;
149  bool m_dryRunHasBeenSet;
150  };
151 
152 } // namespace Model
153 } // namespace MigrationHubConfig
154 } // namespace Aws
#define AWS_MIGRATIONHUBCONFIG_API
CreateHomeRegionControlRequest & WithHomeRegion(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreateHomeRegionControlRequest & WithHomeRegion(const char *value)
CreateHomeRegionControlRequest & WithTarget(const Target &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateHomeRegionControlRequest & WithHomeRegion(Aws::String &&value)