AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ParticipatingServer.h
1
6#pragma once
7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/drs/model/LaunchActionsStatus.h>
9#include <aws/drs/model/LaunchStatus.h>
10#include <aws/core/utils/memory/stl/AWSString.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 drs
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_DRS_API ParticipatingServer();
41
42
44
47 inline const LaunchActionsStatus& GetLaunchActionsStatus() const{ return m_launchActionsStatus; }
48 inline bool LaunchActionsStatusHasBeenSet() const { return m_launchActionsStatusHasBeenSet; }
49 inline void SetLaunchActionsStatus(const LaunchActionsStatus& value) { m_launchActionsStatusHasBeenSet = true; m_launchActionsStatus = value; }
50 inline void SetLaunchActionsStatus(LaunchActionsStatus&& value) { m_launchActionsStatusHasBeenSet = true; m_launchActionsStatus = std::move(value); }
54
56
59 inline const LaunchStatus& GetLaunchStatus() const{ return m_launchStatus; }
60 inline bool LaunchStatusHasBeenSet() const { return m_launchStatusHasBeenSet; }
61 inline void SetLaunchStatus(const LaunchStatus& value) { m_launchStatusHasBeenSet = true; m_launchStatus = value; }
62 inline void SetLaunchStatus(LaunchStatus&& value) { m_launchStatusHasBeenSet = true; m_launchStatus = std::move(value); }
63 inline ParticipatingServer& WithLaunchStatus(const LaunchStatus& value) { SetLaunchStatus(value); return *this;}
64 inline ParticipatingServer& WithLaunchStatus(LaunchStatus&& value) { SetLaunchStatus(std::move(value)); return *this;}
66
68
71 inline const Aws::String& GetRecoveryInstanceID() const{ return m_recoveryInstanceID; }
72 inline bool RecoveryInstanceIDHasBeenSet() const { return m_recoveryInstanceIDHasBeenSet; }
73 inline void SetRecoveryInstanceID(const Aws::String& value) { m_recoveryInstanceIDHasBeenSet = true; m_recoveryInstanceID = value; }
74 inline void SetRecoveryInstanceID(Aws::String&& value) { m_recoveryInstanceIDHasBeenSet = true; m_recoveryInstanceID = std::move(value); }
75 inline void SetRecoveryInstanceID(const char* value) { m_recoveryInstanceIDHasBeenSet = true; m_recoveryInstanceID.assign(value); }
76 inline ParticipatingServer& WithRecoveryInstanceID(const Aws::String& value) { SetRecoveryInstanceID(value); return *this;}
77 inline ParticipatingServer& WithRecoveryInstanceID(Aws::String&& value) { SetRecoveryInstanceID(std::move(value)); return *this;}
78 inline ParticipatingServer& WithRecoveryInstanceID(const char* value) { SetRecoveryInstanceID(value); return *this;}
80
82
85 inline const Aws::String& GetSourceServerID() const{ return m_sourceServerID; }
86 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
87 inline void SetSourceServerID(const Aws::String& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = value; }
88 inline void SetSourceServerID(Aws::String&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::move(value); }
89 inline void SetSourceServerID(const char* value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID.assign(value); }
90 inline ParticipatingServer& WithSourceServerID(const Aws::String& value) { SetSourceServerID(value); return *this;}
91 inline ParticipatingServer& WithSourceServerID(Aws::String&& value) { SetSourceServerID(std::move(value)); return *this;}
92 inline ParticipatingServer& WithSourceServerID(const char* value) { SetSourceServerID(value); return *this;}
94 private:
95
96 LaunchActionsStatus m_launchActionsStatus;
97 bool m_launchActionsStatusHasBeenSet = false;
98
99 LaunchStatus m_launchStatus;
100 bool m_launchStatusHasBeenSet = false;
101
102 Aws::String m_recoveryInstanceID;
103 bool m_recoveryInstanceIDHasBeenSet = false;
104
105 Aws::String m_sourceServerID;
106 bool m_sourceServerIDHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace drs
111} // namespace Aws
AWS_DRS_API ParticipatingServer(Aws::Utils::Json::JsonView jsonValue)
ParticipatingServer & WithSourceServerID(const char *value)
AWS_DRS_API ParticipatingServer & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSourceServerID() const
ParticipatingServer & WithRecoveryInstanceID(const Aws::String &value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
ParticipatingServer & WithLaunchActionsStatus(LaunchActionsStatus &&value)
void SetSourceServerID(Aws::String &&value)
ParticipatingServer & WithSourceServerID(Aws::String &&value)
void SetLaunchStatus(LaunchStatus &&value)
ParticipatingServer & WithLaunchStatus(LaunchStatus &&value)
void SetRecoveryInstanceID(Aws::String &&value)
ParticipatingServer & WithLaunchStatus(const LaunchStatus &value)
void SetLaunchActionsStatus(const LaunchActionsStatus &value)
void SetSourceServerID(const Aws::String &value)
void SetLaunchActionsStatus(LaunchActionsStatus &&value)
ParticipatingServer & WithRecoveryInstanceID(Aws::String &&value)
const LaunchActionsStatus & GetLaunchActionsStatus() const
void SetLaunchStatus(const LaunchStatus &value)
ParticipatingServer & WithLaunchActionsStatus(const LaunchActionsStatus &value)
ParticipatingServer & WithRecoveryInstanceID(const char *value)
void SetRecoveryInstanceID(const Aws::String &value)
ParticipatingServer & WithSourceServerID(const Aws::String &value)
const Aws::String & GetRecoveryInstanceID() const
const LaunchStatus & GetLaunchStatus() const
void SetRecoveryInstanceID(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue