AWS SDK for C++  1.9.68
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 
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
Aws::MigrationHubConfig::Model::Target
Definition: Target.h:35
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::HomeRegionHasBeenSet
bool HomeRegionHasBeenSet() const
Definition: CreateHomeRegionControlRequest.h:46
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::SetHomeRegion
void SetHomeRegion(const char *value)
Definition: CreateHomeRegionControlRequest.h:61
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::CreateHomeRegionControlRequest
CreateHomeRegionControlRequest()
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::WithHomeRegion
CreateHomeRegionControlRequest & WithHomeRegion(Aws::String &&value)
Definition: CreateHomeRegionControlRequest.h:71
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AWS_MIGRATIONHUBCONFIG_API
#define AWS_MIGRATIONHUBCONFIG_API
Definition: MigrationHubConfig_EXPORTS.h:28
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::SetTarget
void SetTarget(const Target &value)
Definition: CreateHomeRegionControlRequest.h:95
Aws::MigrationHubConfig::MigrationHubConfigRequest
Definition: MigrationHubConfigRequest.h:17
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::WithHomeRegion
CreateHomeRegionControlRequest & WithHomeRegion(const char *value)
Definition: CreateHomeRegionControlRequest.h:76
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest
Definition: CreateHomeRegionControlRequest.h:23
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::TargetHasBeenSet
bool TargetHasBeenSet() const
Definition: CreateHomeRegionControlRequest.h:89
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::WithTarget
CreateHomeRegionControlRequest & WithTarget(const Target &value)
Definition: CreateHomeRegionControlRequest.h:107
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::GetHomeRegion
const Aws::String & GetHomeRegion() const
Definition: CreateHomeRegionControlRequest.h:41
AWSString.h
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::GetDryRun
bool GetDryRun() const
Definition: CreateHomeRegionControlRequest.h:120
MigrationHubConfigRequest.h
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::WithDryRun
CreateHomeRegionControlRequest & WithDryRun(bool value)
Definition: CreateHomeRegionControlRequest.h:138
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::WithTarget
CreateHomeRegionControlRequest & WithTarget(Target &&value)
Definition: CreateHomeRegionControlRequest.h:113
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::SetHomeRegion
void SetHomeRegion(Aws::String &&value)
Definition: CreateHomeRegionControlRequest.h:56
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::WithHomeRegion
CreateHomeRegionControlRequest & WithHomeRegion(const Aws::String &value)
Definition: CreateHomeRegionControlRequest.h:66
Aws
Definition: AccessManagementClient.h:15
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateHomeRegionControlRequest.h:126
Target.h
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::SetTarget
void SetTarget(Target &&value)
Definition: CreateHomeRegionControlRequest.h:101
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateHomeRegionControlRequest.h:132
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::SetHomeRegion
void SetHomeRegion(const Aws::String &value)
Definition: CreateHomeRegionControlRequest.h:51
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateHomeRegionControlRequest.h:31
Aws::MigrationHubConfig::Model::CreateHomeRegionControlRequest::GetTarget
const Target & GetTarget() const
Definition: CreateHomeRegionControlRequest.h:83
MigrationHubConfig_EXPORTS.h