AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ParticipatingServer.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/drs/Drs_EXPORTS.h>
9#include <aws/drs/model/LaunchActionsStatus.h>
10#include <aws/drs/model/LaunchStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace drs {
22namespace Model {
23
31 public:
32 AWS_DRS_API ParticipatingServer() = default;
36
38
41 inline const LaunchActionsStatus& GetLaunchActionsStatus() const { return m_launchActionsStatus; }
42 inline bool LaunchActionsStatusHasBeenSet() const { return m_launchActionsStatusHasBeenSet; }
43 template <typename LaunchActionsStatusT = LaunchActionsStatus>
44 void SetLaunchActionsStatus(LaunchActionsStatusT&& value) {
45 m_launchActionsStatusHasBeenSet = true;
46 m_launchActionsStatus = std::forward<LaunchActionsStatusT>(value);
47 }
48 template <typename LaunchActionsStatusT = LaunchActionsStatus>
49 ParticipatingServer& WithLaunchActionsStatus(LaunchActionsStatusT&& value) {
50 SetLaunchActionsStatus(std::forward<LaunchActionsStatusT>(value));
51 return *this;
52 }
54
56
59 inline LaunchStatus GetLaunchStatus() const { return m_launchStatus; }
60 inline bool LaunchStatusHasBeenSet() const { return m_launchStatusHasBeenSet; }
61 inline void SetLaunchStatus(LaunchStatus value) {
62 m_launchStatusHasBeenSet = true;
63 m_launchStatus = value;
64 }
66 SetLaunchStatus(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetRecoveryInstanceID() const { return m_recoveryInstanceID; }
76 inline bool RecoveryInstanceIDHasBeenSet() const { return m_recoveryInstanceIDHasBeenSet; }
77 template <typename RecoveryInstanceIDT = Aws::String>
78 void SetRecoveryInstanceID(RecoveryInstanceIDT&& value) {
79 m_recoveryInstanceIDHasBeenSet = true;
80 m_recoveryInstanceID = std::forward<RecoveryInstanceIDT>(value);
81 }
82 template <typename RecoveryInstanceIDT = Aws::String>
83 ParticipatingServer& WithRecoveryInstanceID(RecoveryInstanceIDT&& value) {
84 SetRecoveryInstanceID(std::forward<RecoveryInstanceIDT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
94 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
95 template <typename SourceServerIDT = Aws::String>
96 void SetSourceServerID(SourceServerIDT&& value) {
97 m_sourceServerIDHasBeenSet = true;
98 m_sourceServerID = std::forward<SourceServerIDT>(value);
99 }
100 template <typename SourceServerIDT = Aws::String>
101 ParticipatingServer& WithSourceServerID(SourceServerIDT&& value) {
102 SetSourceServerID(std::forward<SourceServerIDT>(value));
103 return *this;
104 }
106 private:
107 LaunchActionsStatus m_launchActionsStatus;
108
109 LaunchStatus m_launchStatus{LaunchStatus::NOT_SET};
110
111 Aws::String m_recoveryInstanceID;
112
113 Aws::String m_sourceServerID;
114 bool m_launchActionsStatusHasBeenSet = false;
115 bool m_launchStatusHasBeenSet = false;
116 bool m_recoveryInstanceIDHasBeenSet = false;
117 bool m_sourceServerIDHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace drs
122} // namespace Aws
AWS_DRS_API ParticipatingServer(Aws::Utils::Json::JsonView jsonValue)
void SetLaunchActionsStatus(LaunchActionsStatusT &&value)
AWS_DRS_API ParticipatingServer()=default
AWS_DRS_API ParticipatingServer & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSourceServerID() const
ParticipatingServer & WithRecoveryInstanceID(RecoveryInstanceIDT &&value)
ParticipatingServer & WithSourceServerID(SourceServerIDT &&value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
ParticipatingServer & WithLaunchActionsStatus(LaunchActionsStatusT &&value)
void SetRecoveryInstanceID(RecoveryInstanceIDT &&value)
ParticipatingServer & WithLaunchStatus(LaunchStatus value)
const LaunchActionsStatus & GetLaunchActionsStatus() const
void SetSourceServerID(SourceServerIDT &&value)
const Aws::String & GetRecoveryInstanceID() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue