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/mgn/Mgn_EXPORTS.h>
8#include <aws/mgn/model/LaunchStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mgn/model/PostLaunchActionsStatus.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 mgn
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_MGN_API ParticipatingServer();
40
41
43
46 inline const LaunchStatus& GetLaunchStatus() const{ return m_launchStatus; }
47 inline bool LaunchStatusHasBeenSet() const { return m_launchStatusHasBeenSet; }
48 inline void SetLaunchStatus(const LaunchStatus& value) { m_launchStatusHasBeenSet = true; m_launchStatus = value; }
49 inline void SetLaunchStatus(LaunchStatus&& value) { m_launchStatusHasBeenSet = true; m_launchStatus = std::move(value); }
50 inline ParticipatingServer& WithLaunchStatus(const LaunchStatus& value) { SetLaunchStatus(value); return *this;}
51 inline ParticipatingServer& WithLaunchStatus(LaunchStatus&& value) { SetLaunchStatus(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetLaunchedEc2InstanceID() const{ return m_launchedEc2InstanceID; }
59 inline bool LaunchedEc2InstanceIDHasBeenSet() const { return m_launchedEc2InstanceIDHasBeenSet; }
60 inline void SetLaunchedEc2InstanceID(const Aws::String& value) { m_launchedEc2InstanceIDHasBeenSet = true; m_launchedEc2InstanceID = value; }
61 inline void SetLaunchedEc2InstanceID(Aws::String&& value) { m_launchedEc2InstanceIDHasBeenSet = true; m_launchedEc2InstanceID = std::move(value); }
62 inline void SetLaunchedEc2InstanceID(const char* value) { m_launchedEc2InstanceIDHasBeenSet = true; m_launchedEc2InstanceID.assign(value); }
64 inline ParticipatingServer& WithLaunchedEc2InstanceID(Aws::String&& value) { SetLaunchedEc2InstanceID(std::move(value)); return *this;}
65 inline ParticipatingServer& WithLaunchedEc2InstanceID(const char* value) { SetLaunchedEc2InstanceID(value); return *this;}
67
69
72 inline const PostLaunchActionsStatus& GetPostLaunchActionsStatus() const{ return m_postLaunchActionsStatus; }
73 inline bool PostLaunchActionsStatusHasBeenSet() const { return m_postLaunchActionsStatusHasBeenSet; }
74 inline void SetPostLaunchActionsStatus(const PostLaunchActionsStatus& value) { m_postLaunchActionsStatusHasBeenSet = true; m_postLaunchActionsStatus = value; }
75 inline void SetPostLaunchActionsStatus(PostLaunchActionsStatus&& value) { m_postLaunchActionsStatusHasBeenSet = true; m_postLaunchActionsStatus = std::move(value); }
79
81
84 inline const Aws::String& GetSourceServerID() const{ return m_sourceServerID; }
85 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
86 inline void SetSourceServerID(const Aws::String& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = value; }
87 inline void SetSourceServerID(Aws::String&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::move(value); }
88 inline void SetSourceServerID(const char* value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID.assign(value); }
89 inline ParticipatingServer& WithSourceServerID(const Aws::String& value) { SetSourceServerID(value); return *this;}
90 inline ParticipatingServer& WithSourceServerID(Aws::String&& value) { SetSourceServerID(std::move(value)); return *this;}
91 inline ParticipatingServer& WithSourceServerID(const char* value) { SetSourceServerID(value); return *this;}
93 private:
94
95 LaunchStatus m_launchStatus;
96 bool m_launchStatusHasBeenSet = false;
97
98 Aws::String m_launchedEc2InstanceID;
99 bool m_launchedEc2InstanceIDHasBeenSet = false;
100
101 PostLaunchActionsStatus m_postLaunchActionsStatus;
102 bool m_postLaunchActionsStatusHasBeenSet = false;
103
104 Aws::String m_sourceServerID;
105 bool m_sourceServerIDHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace mgn
110} // namespace Aws
AWS_MGN_API ParticipatingServer & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLaunchedEc2InstanceID(const char *value)
ParticipatingServer & WithLaunchedEc2InstanceID(Aws::String &&value)
const LaunchStatus & GetLaunchStatus() const
const Aws::String & GetLaunchedEc2InstanceID() const
void SetPostLaunchActionsStatus(PostLaunchActionsStatus &&value)
ParticipatingServer & WithSourceServerID(const Aws::String &value)
void SetSourceServerID(Aws::String &&value)
AWS_MGN_API ParticipatingServer(Aws::Utils::Json::JsonView jsonValue)
ParticipatingServer & WithSourceServerID(const char *value)
void SetLaunchStatus(const LaunchStatus &value)
const Aws::String & GetSourceServerID() const
void SetPostLaunchActionsStatus(const PostLaunchActionsStatus &value)
ParticipatingServer & WithLaunchedEc2InstanceID(const Aws::String &value)
ParticipatingServer & WithSourceServerID(Aws::String &&value)
void SetLaunchedEc2InstanceID(Aws::String &&value)
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSourceServerID(const Aws::String &value)
void SetLaunchStatus(LaunchStatus &&value)
const PostLaunchActionsStatus & GetPostLaunchActionsStatus() const
ParticipatingServer & WithLaunchStatus(LaunchStatus &&value)
ParticipatingServer & WithPostLaunchActionsStatus(PostLaunchActionsStatus &&value)
void SetLaunchedEc2InstanceID(const Aws::String &value)
ParticipatingServer & WithLaunchedEc2InstanceID(const char *value)
ParticipatingServer & WithLaunchStatus(const LaunchStatus &value)
ParticipatingServer & WithPostLaunchActionsStatus(const PostLaunchActionsStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue