AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateHomeRegionControlRequest.h
1
6#pragma once
7#include <aws/migrationhub-config/MigrationHubConfig_EXPORTS.h>
8#include <aws/migrationhub-config/MigrationHubConfigRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/migrationhub-config/model/Target.h>
11#include <utility>
12
13namespace Aws
14{
15namespace MigrationHubConfig
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_MIGRATIONHUBCONFIG_API CreateHomeRegionControlRequest() = default;
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_MIGRATIONHUBCONFIG_API Aws::String SerializePayload() const override;
34
35 AWS_MIGRATIONHUBCONFIG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetHomeRegion() const { return m_homeRegion; }
43 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
44 template<typename HomeRegionT = Aws::String>
45 void SetHomeRegion(HomeRegionT&& value) { m_homeRegionHasBeenSet = true; m_homeRegion = std::forward<HomeRegionT>(value); }
46 template<typename HomeRegionT = Aws::String>
47 CreateHomeRegionControlRequest& WithHomeRegion(HomeRegionT&& value) { SetHomeRegion(std::forward<HomeRegionT>(value)); return *this;}
49
51
55 inline const Target& GetTarget() const { return m_target; }
56 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
57 template<typename TargetT = Target>
58 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
59 template<typename TargetT = Target>
60 CreateHomeRegionControlRequest& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
62
64
68 inline bool GetDryRun() const { return m_dryRun; }
69 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
70 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
71 inline CreateHomeRegionControlRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
73 private:
74
75 Aws::String m_homeRegion;
76 bool m_homeRegionHasBeenSet = false;
77
78 Target m_target;
79 bool m_targetHasBeenSet = false;
80
81 bool m_dryRun{false};
82 bool m_dryRunHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace MigrationHubConfig
87} // namespace Aws
CreateHomeRegionControlRequest & WithHomeRegion(HomeRegionT &&value)
AWS_MIGRATIONHUBCONFIG_API Aws::String SerializePayload() const override
AWS_MIGRATIONHUBCONFIG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_MIGRATIONHUBCONFIG_API CreateHomeRegionControlRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String