AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
CreateHomeRegionControlRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/migrationhub-config/MigrationHubConfigRequest.h>
9#include <aws/migrationhub-config/MigrationHubConfig_EXPORTS.h>
10#include <aws/migrationhub-config/model/Target.h>
11
12#include <utility>
13
14namespace Aws {
15namespace MigrationHubConfig {
16namespace Model {
17
21 public:
22 AWS_MIGRATIONHUBCONFIG_API CreateHomeRegionControlRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateHomeRegionControl"; }
29
30 AWS_MIGRATIONHUBCONFIG_API Aws::String SerializePayload() const override;
31
32 AWS_MIGRATIONHUBCONFIG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetHomeRegion() const { return m_homeRegion; }
39 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
40 template <typename HomeRegionT = Aws::String>
41 void SetHomeRegion(HomeRegionT&& value) {
42 m_homeRegionHasBeenSet = true;
43 m_homeRegion = std::forward<HomeRegionT>(value);
44 }
45 template <typename HomeRegionT = Aws::String>
47 SetHomeRegion(std::forward<HomeRegionT>(value));
48 return *this;
49 }
51
53
57 inline const Target& GetTarget() const { return m_target; }
58 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
59 template <typename TargetT = Target>
60 void SetTarget(TargetT&& value) {
61 m_targetHasBeenSet = true;
62 m_target = std::forward<TargetT>(value);
63 }
64 template <typename TargetT = Target>
66 SetTarget(std::forward<TargetT>(value));
67 return *this;
68 }
70
72
76 inline bool GetDryRun() const { return m_dryRun; }
77 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
78 inline void SetDryRun(bool value) {
79 m_dryRunHasBeenSet = true;
80 m_dryRun = value;
81 }
83 SetDryRun(value);
84 return *this;
85 }
87 private:
88 Aws::String m_homeRegion;
89
90 Target m_target;
91
92 bool m_dryRun{false};
93 bool m_homeRegionHasBeenSet = false;
94 bool m_targetHasBeenSet = false;
95 bool m_dryRunHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace MigrationHubConfig
100} // 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