AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
HomeRegionControl.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.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 Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MigrationHubConfig {
22namespace Model {
23
33 public:
34 AWS_MIGRATIONHUBCONFIG_API HomeRegionControl() = default;
35 AWS_MIGRATIONHUBCONFIG_API HomeRegionControl(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MIGRATIONHUBCONFIG_API HomeRegionControl& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MIGRATIONHUBCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline const Aws::String& GetControlId() const { return m_controlId; }
46 inline bool ControlIdHasBeenSet() const { return m_controlIdHasBeenSet; }
47 template <typename ControlIdT = Aws::String>
48 void SetControlId(ControlIdT&& value) {
49 m_controlIdHasBeenSet = true;
50 m_controlId = std::forward<ControlIdT>(value);
51 }
52 template <typename ControlIdT = Aws::String>
53 HomeRegionControl& WithControlId(ControlIdT&& value) {
54 SetControlId(std::forward<ControlIdT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetHomeRegion() const { return m_homeRegion; }
65 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
66 template <typename HomeRegionT = Aws::String>
67 void SetHomeRegion(HomeRegionT&& value) {
68 m_homeRegionHasBeenSet = true;
69 m_homeRegion = std::forward<HomeRegionT>(value);
70 }
71 template <typename HomeRegionT = Aws::String>
72 HomeRegionControl& WithHomeRegion(HomeRegionT&& value) {
73 SetHomeRegion(std::forward<HomeRegionT>(value));
74 return *this;
75 }
77
79
84 inline const Target& GetTarget() const { return m_target; }
85 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
86 template <typename TargetT = Target>
87 void SetTarget(TargetT&& value) {
88 m_targetHasBeenSet = true;
89 m_target = std::forward<TargetT>(value);
90 }
91 template <typename TargetT = Target>
92 HomeRegionControl& WithTarget(TargetT&& value) {
93 SetTarget(std::forward<TargetT>(value));
94 return *this;
95 }
97
99
104 inline const Aws::Utils::DateTime& GetRequestedTime() const { return m_requestedTime; }
105 inline bool RequestedTimeHasBeenSet() const { return m_requestedTimeHasBeenSet; }
106 template <typename RequestedTimeT = Aws::Utils::DateTime>
107 void SetRequestedTime(RequestedTimeT&& value) {
108 m_requestedTimeHasBeenSet = true;
109 m_requestedTime = std::forward<RequestedTimeT>(value);
110 }
111 template <typename RequestedTimeT = Aws::Utils::DateTime>
112 HomeRegionControl& WithRequestedTime(RequestedTimeT&& value) {
113 SetRequestedTime(std::forward<RequestedTimeT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_controlId;
119
120 Aws::String m_homeRegion;
121
122 Target m_target;
123
124 Aws::Utils::DateTime m_requestedTime{};
125 bool m_controlIdHasBeenSet = false;
126 bool m_homeRegionHasBeenSet = false;
127 bool m_targetHasBeenSet = false;
128 bool m_requestedTimeHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace MigrationHubConfig
133} // namespace Aws
AWS_MIGRATIONHUBCONFIG_API HomeRegionControl & operator=(Aws::Utils::Json::JsonView jsonValue)
HomeRegionControl & WithTarget(TargetT &&value)
AWS_MIGRATIONHUBCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MIGRATIONHUBCONFIG_API HomeRegionControl(Aws::Utils::Json::JsonView jsonValue)
HomeRegionControl & WithHomeRegion(HomeRegionT &&value)
AWS_MIGRATIONHUBCONFIG_API HomeRegionControl()=default
HomeRegionControl & WithControlId(ControlIdT &&value)
HomeRegionControl & WithRequestedTime(RequestedTimeT &&value)
const Aws::Utils::DateTime & GetRequestedTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue