AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
HomeRegionControl.h
1
6#pragma once
7#include <aws/migrationhub-config/MigrationHubConfig_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/migrationhub-config/model/Target.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MigrationHubConfig
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_MIGRATIONHUBCONFIG_API HomeRegionControl() = default;
40 AWS_MIGRATIONHUBCONFIG_API HomeRegionControl(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MIGRATIONHUBCONFIG_API HomeRegionControl& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MIGRATIONHUBCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const Aws::String& GetControlId() const { return m_controlId; }
52 inline bool ControlIdHasBeenSet() const { return m_controlIdHasBeenSet; }
53 template<typename ControlIdT = Aws::String>
54 void SetControlId(ControlIdT&& value) { m_controlIdHasBeenSet = true; m_controlId = std::forward<ControlIdT>(value); }
55 template<typename ControlIdT = Aws::String>
56 HomeRegionControl& WithControlId(ControlIdT&& value) { SetControlId(std::forward<ControlIdT>(value)); return *this;}
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) { m_homeRegionHasBeenSet = true; m_homeRegion = std::forward<HomeRegionT>(value); }
68 template<typename HomeRegionT = Aws::String>
69 HomeRegionControl& WithHomeRegion(HomeRegionT&& value) { SetHomeRegion(std::forward<HomeRegionT>(value)); return *this;}
71
73
78 inline const Target& GetTarget() const { return m_target; }
79 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
80 template<typename TargetT = Target>
81 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
82 template<typename TargetT = Target>
83 HomeRegionControl& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
85
87
92 inline const Aws::Utils::DateTime& GetRequestedTime() const { return m_requestedTime; }
93 inline bool RequestedTimeHasBeenSet() const { return m_requestedTimeHasBeenSet; }
94 template<typename RequestedTimeT = Aws::Utils::DateTime>
95 void SetRequestedTime(RequestedTimeT&& value) { m_requestedTimeHasBeenSet = true; m_requestedTime = std::forward<RequestedTimeT>(value); }
96 template<typename RequestedTimeT = Aws::Utils::DateTime>
97 HomeRegionControl& WithRequestedTime(RequestedTimeT&& value) { SetRequestedTime(std::forward<RequestedTimeT>(value)); return *this;}
99 private:
100
101 Aws::String m_controlId;
102 bool m_controlIdHasBeenSet = false;
103
104 Aws::String m_homeRegion;
105 bool m_homeRegionHasBeenSet = false;
106
107 Target m_target;
108 bool m_targetHasBeenSet = false;
109
110 Aws::Utils::DateTime m_requestedTime{};
111 bool m_requestedTimeHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace MigrationHubConfig
116} // 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